Class: Dentaku::AST::Node
- Inherits:
-
Object
- Object
- Dentaku::AST::Node
show all
- Defined in:
- lib/dentaku/ast/node.rb
Direct Known Subclasses
Access, Array, Case, CaseConditional, CaseElse, CaseSwitchVariable, CaseThen, Function, Grouping, Identifier, Literal, Nil, Operation
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.arity ⇒ Object
8
9
10
|
# File 'lib/dentaku/ast/node.rb', line 8
def self.arity
nil
end
|
.precedence ⇒ Object
4
5
6
|
# File 'lib/dentaku/ast/node.rb', line 4
def self.precedence
0
end
|
.resolve_class ⇒ Object
12
13
14
|
# File 'lib/dentaku/ast/node.rb', line 12
def self.resolve_class(*)
self
end
|
Instance Method Details
#dependencies(context = {}) ⇒ Object
16
17
18
|
# File 'lib/dentaku/ast/node.rb', line 16
def dependencies(context = {})
[]
end
|
#name ⇒ Object
24
25
26
|
# File 'lib/dentaku/ast/node.rb', line 24
def name
self.class.name.to_s.split("::").last.upcase
end
|
#type ⇒ Object
20
21
22
|
# File 'lib/dentaku/ast/node.rb', line 20
def type
nil
end
|