Class: Vertigo::ArrayDecl

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(dim_decls = [], type = nil) ⇒ ArrayDecl

Returns a new instance of ArrayDecl.



379
380
381
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 379

def initialize dim_decls=[],type=nil
  @dim_decls,@type=dim_decls,type
end

Instance Attribute Details

#dim_declsObject

Returns the value of attribute dim_decls.



378
379
380
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 378

def dim_decls
  @dim_decls
end

#typeObject

Returns the value of attribute type.



378
379
380
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 378

def type
  @type
end