Class: Rlang::Parser::LVar
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#wtype ⇒ Object
Returns the value of attribute wtype.
Instance Method Summary collapse
-
#initialize(name, wtype = WType::DEFAULT) ⇒ LVar
constructor
A new instance of LVar.
- #wasm_name ⇒ Object
- #wasm_type ⇒ Object
Constructor Details
#initialize(name, wtype = WType::DEFAULT) ⇒ LVar
Returns a new instance of LVar.
14 15 16 17 18 19 |
# File 'lib/rlang/parser/lvar.rb', line 14 def initialize(name, wtype=WType::DEFAULT) @name = name # TODO: check if local/param value wtype # was explicitely declared @wtype = wtype end |