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