Class: Vertigo::FuncProtoDecl
- Defined in:
- lib/vertigo/ast_vertigo_rkgen.rb
Instance Attribute Summary collapse
-
#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) ⇒ FuncProtoDecl
constructor
A new instance of FuncProtoDecl.
Methods inherited from AstNode
Constructor Details
#initialize(name = nil, formal_args = [], return_type = nil) ⇒ FuncProtoDecl
Returns a new instance of FuncProtoDecl.
568 569 570 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 568 def initialize name=nil,formal_args=[],return_type=nil @name,@formal_args,@return_type=name,formal_args,return_type end |
Instance Attribute Details
#formal_args ⇒ Object
Returns the value of attribute formal_args.
567 568 569 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 567 def formal_args @formal_args end |
#name ⇒ Object
Returns the value of attribute name.
567 568 569 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 567 def name @name end |
#return_type ⇒ Object
Returns the value of attribute return_type.
567 568 569 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 567 def return_type @return_type end |