class SyntaxTree::Parser

def on_symbol_literal(value)

Experimental RBS support (using type sampling data from the type_fusion project).

def on_symbol_literal: (SyntaxTree::SymbolContent value) -> untyped

This signature was generated using 7 samples from 1 application.

) -> SymbolLiteral
) value
IVar | Kw | Op | SymbolContent
Backtick | Const | CVar | GVar | Ident |
(
on_symbol_literal: (
:call-seq:
def on_symbol_literal(value)
  if value.is_a?(SymbolContent)
    symbeg = consume_token(SymBeg)
    SymbolLiteral.new(
      value: value.value,
      location: symbeg.location.to(value.location)
    )
  else
    tokens.delete(value)
    SymbolLiteral.new(value: value, location: value.location)
  end
end