Class: Foxtail::Syntax::Parser::AST::Identifier

Inherits:
SyntaxNode show all
Defined in:
lib/foxtail/syntax/parser/ast/identifier.rb

Overview

Represents identifiers used for messages, terms, attributes, and function names

Instance Attribute Summary collapse

Attributes inherited from SyntaxNode

#span

Attributes inherited from BaseNode

#type

Instance Method Summary collapse

Methods inherited from SyntaxNode

#add_span

Methods inherited from BaseNode

#==, #accept, #children, #to_h

Constructor Details

#initialize(name) ⇒ Identifier

Returns a new instance of Identifier.



11
12
13
14
# File 'lib/foxtail/syntax/parser/ast/identifier.rb', line 11

def initialize(name)
  super()
  @name = name
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



9
10
11
# File 'lib/foxtail/syntax/parser/ast/identifier.rb', line 9

def name
  @name
end