Class: Vertigo::FuncProtoDecl

Inherits:
AstNode
  • Object
show all
Defined in:
lib/vertigo/ast_vertigo_rkgen.rb

Instance Attribute Summary collapse

Attributes inherited from AstNode

#label, #pos

Instance Method Summary collapse

Methods inherited from AstNode

#accept, #str

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_argsObject

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

#nameObject

Returns the value of attribute name.



567
568
569
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 567

def name
  @name
end

#return_typeObject

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