class Omnium::Parser::AST::Identifier

This node represents a variable or an identifier, accepting an ID token.

Attributes

name[R]

Public Class Methods

new(token) click to toggle source
# File lib/omnium/parser/ast/identifier.rb, line 10
def initialize(token)
  @token = token # for convenience, though no getter for this
  @name = token.value
end