Class: Vertigo::ProcedureDecl
- Defined in:
- lib/vertigo/ast_vertigo_rkgen.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#decls ⇒ Object
Returns the value of attribute decls.
-
#formal_args ⇒ Object
Returns the value of attribute formal_args.
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from AstNode
Instance Method Summary collapse
-
#initialize(name = nil, formal_args = [], decls = [], body = nil) ⇒ ProcedureDecl
constructor
A new instance of ProcedureDecl.
Methods inherited from AstNode
Constructor Details
#initialize(name = nil, formal_args = [], decls = [], body = nil) ⇒ ProcedureDecl
Returns a new instance of ProcedureDecl.
99 100 101 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 99 def initialize name=nil,formal_args=[],decls=[],body=nil @name,@formal_args,@decls,@body=name,formal_args,decls,body end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
98 99 100 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 98 def body @body end |
#decls ⇒ Object
Returns the value of attribute decls.
98 99 100 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 98 def decls @decls end |
#formal_args ⇒ Object
Returns the value of attribute formal_args.
98 99 100 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 98 def formal_args @formal_args end |
#name ⇒ Object
Returns the value of attribute name.
98 99 100 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 98 def name @name end |