Class: MilkTea::AST::LocalDecl
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::LocalDecl
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#destructure_bindings ⇒ Object
readonly
Returns the value of attribute destructure_bindings.
-
#destructure_type_name ⇒ Object
readonly
Returns the value of attribute destructure_type_name.
-
#else_binding ⇒ Object
readonly
Returns the value of attribute else_binding.
-
#else_body ⇒ Object
readonly
Returns the value of attribute else_body.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#recovered_else ⇒ Object
readonly
Returns the value of attribute recovered_else.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(kind:, name:, type:, value:, else_binding: nil, else_body: nil, line: nil, column: nil, recovered_else: false, destructure_bindings: nil, destructure_type_name: nil) ⇒ LocalDecl
constructor
A new instance of LocalDecl.
Constructor Details
#initialize(kind:, name:, type:, value:, else_binding: nil, else_body: nil, line: nil, column: nil, recovered_else: false, destructure_bindings: nil, destructure_type_name: nil) ⇒ LocalDecl
Returns a new instance of LocalDecl.
125 |
# File 'lib/milk_tea/core/ast.rb', line 125 def initialize(kind:, name:, type:, value:, else_binding: nil, else_body: nil, line: nil, column: nil, recovered_else: false, destructure_bindings: nil, destructure_type_name: nil) = super |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column
124 125 126 |
# File 'lib/milk_tea/core/ast.rb', line 124 def column @column end |
#destructure_bindings ⇒ Object (readonly)
Returns the value of attribute destructure_bindings
124 125 126 |
# File 'lib/milk_tea/core/ast.rb', line 124 def destructure_bindings @destructure_bindings end |
#destructure_type_name ⇒ Object (readonly)
Returns the value of attribute destructure_type_name
124 125 126 |
# File 'lib/milk_tea/core/ast.rb', line 124 def destructure_type_name @destructure_type_name end |
#else_binding ⇒ Object (readonly)
Returns the value of attribute else_binding
124 125 126 |
# File 'lib/milk_tea/core/ast.rb', line 124 def else_binding @else_binding end |
#else_body ⇒ Object (readonly)
Returns the value of attribute else_body
124 125 126 |
# File 'lib/milk_tea/core/ast.rb', line 124 def else_body @else_body end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind
124 125 126 |
# File 'lib/milk_tea/core/ast.rb', line 124 def kind @kind end |
#line ⇒ Object (readonly)
Returns the value of attribute line
124 125 126 |
# File 'lib/milk_tea/core/ast.rb', line 124 def line @line end |
#name ⇒ Object (readonly)
Returns the value of attribute name
124 125 126 |
# File 'lib/milk_tea/core/ast.rb', line 124 def name @name end |
#recovered_else ⇒ Object (readonly)
Returns the value of attribute recovered_else
124 125 126 |
# File 'lib/milk_tea/core/ast.rb', line 124 def recovered_else @recovered_else end |
#type ⇒ Object (readonly)
Returns the value of attribute type
124 125 126 |
# File 'lib/milk_tea/core/ast.rb', line 124 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value
124 125 126 |
# File 'lib/milk_tea/core/ast.rb', line 124 def value @value end |