class Drizzle::AST::Identifier
Overview
Node class representing an Identifier. An identifier is a name, be it for a function, variable, etc
An Identifier is classed as an Expression because of situations such as let x: int = y.
In this case, y is an identifier (a variable) that returns a value.
We could have separate identifier tokens for left and right sides of an = symbol but that overcomplicates things a bit.
Direct Known Subclasses
Defined in:
drizzle/ast/identifier.crConstructors
Instance Method Summary
- #literal : String
- #to_s : String
-
#token : Drizzle::Token
The token that caused the generation of this node
-
#value : String
The value of the identifier