Class: MilkTea::AST::SourceFile
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::SourceFile
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#declarations ⇒ Object
readonly
Returns the value of attribute declarations.
-
#directives ⇒ Object
readonly
Returns the value of attribute directives.
-
#imports ⇒ Object
readonly
Returns the value of attribute imports.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#module_kind ⇒ Object
readonly
Returns the value of attribute module_kind.
-
#module_name ⇒ Object
readonly
Returns the value of attribute module_name.
-
#node_ids ⇒ Object
readonly
Returns the value of attribute node_ids.
-
#node_path_ids ⇒ Object
readonly
Returns the value of attribute node_path_ids.
Instance Method Summary collapse
-
#initialize(module_name:, module_kind:, imports:, directives:, declarations:, line: nil, column: nil, node_ids: {}, node_path_ids: {}) ⇒ SourceFile
constructor
A new instance of SourceFile.
Constructor Details
#initialize(module_name:, module_kind:, imports:, directives:, declarations:, line: nil, column: nil, node_ids: {}, node_path_ids: {}) ⇒ SourceFile
Returns a new instance of SourceFile.
58 |
# File 'lib/milk_tea/core/ast.rb', line 58 def initialize(module_name:, module_kind:, imports:, directives:, declarations:, line: nil, column: nil, node_ids: {}, node_path_ids: {}) = super |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column
57 58 59 |
# File 'lib/milk_tea/core/ast.rb', line 57 def column @column end |
#declarations ⇒ Object (readonly)
Returns the value of attribute declarations
57 58 59 |
# File 'lib/milk_tea/core/ast.rb', line 57 def declarations @declarations end |
#directives ⇒ Object (readonly)
Returns the value of attribute directives
57 58 59 |
# File 'lib/milk_tea/core/ast.rb', line 57 def directives @directives end |
#imports ⇒ Object (readonly)
Returns the value of attribute imports
57 58 59 |
# File 'lib/milk_tea/core/ast.rb', line 57 def imports @imports end |
#line ⇒ Object (readonly)
Returns the value of attribute line
57 58 59 |
# File 'lib/milk_tea/core/ast.rb', line 57 def line @line end |
#module_kind ⇒ Object (readonly)
Returns the value of attribute module_kind
57 58 59 |
# File 'lib/milk_tea/core/ast.rb', line 57 def module_kind @module_kind end |
#module_name ⇒ Object (readonly)
Returns the value of attribute module_name
57 58 59 |
# File 'lib/milk_tea/core/ast.rb', line 57 def module_name @module_name end |
#node_ids ⇒ Object (readonly)
Returns the value of attribute node_ids
57 58 59 |
# File 'lib/milk_tea/core/ast.rb', line 57 def node_ids @node_ids end |
#node_path_ids ⇒ Object (readonly)
Returns the value of attribute node_path_ids
57 58 59 |
# File 'lib/milk_tea/core/ast.rb', line 57 def node_path_ids @node_path_ids end |