Class: Faust2Ruby::AST::Node
- Inherits:
-
Object
- Object
- Faust2Ruby::AST::Node
- Defined in:
- lib/faust2ruby/ast.rb
Overview
Base class for all AST nodes
Direct Known Subclasses
Access, BinaryOp, CaseBranch, CaseExpr, Cut, Declare, Definition, FloatLiteral, FunctionCall, Identifier, Import, IntLiteral, Iteration, Lambda, Letrec, Paren, Prime, Program, QualifiedName, Route, StringLiteral, Table, UIElement, UIGroup, UnaryOp, Waveform, Wire, With
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
Instance Method Summary collapse
-
#initialize(line: nil, column: nil) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(line: nil, column: nil) ⇒ Node
Returns a new instance of Node.
11 12 13 14 |
# File 'lib/faust2ruby/ast.rb', line 11 def initialize(line: nil, column: nil) @line = line @column = column end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
9 10 11 |
# File 'lib/faust2ruby/ast.rb', line 9 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
9 10 11 |
# File 'lib/faust2ruby/ast.rb', line 9 def line @line end |