Mirrors the C extension’s StringQuery::constant?
method.
Parse the enum result and return an appropriate boolean.
Whether or not this string is a valid constant name.
Compose an inspect string for the given node.
Compose the final string.
Accepts a visitor and calls back into the specialized visit function.
def accept: (Visitor
visitor) -> void
def copy: (?node_id: Integer
, ?location: Location
, ?flags: Integer
, ?new_name: GlobalVariableReadNode
| BackReferenceReadNode
| NumberedReferenceReadNode
, ?old_name: GlobalVariableReadNode
| BackReferenceReadNode
| NumberedReferenceReadNode
| SymbolNode
| MissingNode
, ?keyword_loc: Location
) -> AliasGlobalVariableNode
def deconstruct: () -> Array[nil | Node]
def accept: (Visitor
visitor) -> void
def copy: (?node_id: Integer
, ?location: Location
, ?flags: Integer
, ?new_name: SymbolNode
| InterpolatedSymbolNode
, ?old_name: SymbolNode
| InterpolatedSymbolNode
| GlobalVariableReadNode
| MissingNode
, ?keyword_loc: Location
) -> AliasMethodNode
def deconstruct: () -> Array[nil | Node]
def accept: (Visitor
visitor) -> void
def copy: (?node_id: Integer
, ?location: Location
, ?flags: Integer
, ?left: Prism::node, ?right: Prism::node, ?operator_loc: Location
) -> AlternationPatternNode
def deconstruct: () -> Array[nil | Node]
def accept: (Visitor
visitor) -> void
def copy: (?node_id: Integer
, ?location: Location
, ?flags: Integer
, ?left: Prism::node, ?right: Prism::node, ?operator_loc: Location
) -> AndNode
def deconstruct: () -> Array[nil | Node]
def accept: (Visitor
visitor) -> void
def copy: (?node_id: Integer
, ?location: Location
, ?flags: Integer
, ?arguments: Array) -> ArgumentsNode
def deconstruct: () -> Array[nil | Node]
def accept: (Visitor
visitor) -> void
def copy: (?node_id: Integer
, ?location: Location
, ?flags: Integer
, ?elements: Array, ?opening_loc: Location
?, ?closing_loc: Location
?) -> ArrayNode
def deconstruct: () -> Array[nil | Node]