class SyntaxTree::Parser

def on_symbeg(value)

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

def on_symbeg: (String value) -> untyped

This signature was generated using 6 samples from 1 application.

symbol being defined it will contain ":'" or ":\"".
most cases it will contain just ":" as in the value, but if its a dynamic
symbeg is a token that represents the beginning of a symbol literal. In
def on_symbeg(value)
  node =
    SymBeg.new(
      value: value,
      location:
        Location.token(
          line: lineno,
          char: char_pos,
          column: current_column,
          size: value.size
        )
    )
  tokens << node
  node
end