Class: Vertigo::FuncDecl
- 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.
-
#return_type ⇒ Object
Returns the value of attribute return_type.
Attributes inherited from AstNode
Instance Method Summary collapse
-
#initialize(name = nil, formal_args = [], return_type = nil, decls = nil, body = nil) ⇒ FuncDecl
constructor
A new instance of FuncDecl.
Methods inherited from AstNode
Constructor Details
#initialize(name = nil, formal_args = [], return_type = nil, decls = nil, body = nil) ⇒ FuncDecl
Returns a new instance of FuncDecl.
575 576 577 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 575 def initialize name=nil,formal_args=[],return_type=nil,decls=nil,body=nil @name,@formal_args,@return_type,@decls,@body=name,formal_args,return_type,decls,body end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
574 575 576 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 574 def body @body end |
#decls ⇒ Object
Returns the value of attribute decls.
574 575 576 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 574 def decls @decls end |
#formal_args ⇒ Object
Returns the value of attribute formal_args.
574 575 576 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 574 def formal_args @formal_args end |
#name ⇒ Object
Returns the value of attribute name.
574 575 576 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 574 def name @name end |
#return_type ⇒ Object
Returns the value of attribute return_type.
574 575 576 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 574 def return_type @return_type end |