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.



75
76
77
# File 'lib/crokus/ast.rb', line 75

def initialize t
  @type=t
end

Instance Attribute Details

#typeObject

Returns the value of attribute type.



74
75
76
# File 'lib/crokus/ast.rb', line 74

def type
  @type
end

Instance Method Details

#nameObject



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

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