Class: Crokus::PointerTo

Inherits:
Type
  • Object
show all
Defined in:
lib/crokus/ast.rb

Instance Attribute Summary collapse

Attributes inherited from Type

#precisions

Instance Method Summary collapse

Methods inherited from Ast

#accept, #str

Constructor Details

#initialize(t) ⇒ PointerTo

Returns a new instance of PointerTo.



79
80
81
# File 'lib/crokus/ast.rb', line 79

def initialize t
  @type=t
end

Instance Attribute Details

#typeObject

Returns the value of attribute type.



78
79
80
# File 'lib/crokus/ast.rb', line 78

def type
  @type
end

Instance Method Details

#nameObject



83
84
85
# File 'lib/crokus/ast.rb', line 83

def name
  "#{type.name} *"
end