Class: MetaCommit::Contracts::ContextualAst
- Inherits:
-
Object
- Object
- MetaCommit::Contracts::ContextualAst
- Defined in:
- lib/meta_commit_contracts/contextual_ast.rb
Overview
Stores specific node from ast and all nodes bypassed on the way to target node Instances of this class are passed to Diff#supports_change
Instance Attribute Summary collapse
-
#context_nodes ⇒ Array<MetaCommit::Contracts::Ast>
Nodes bypassed on the way to target node.
-
#parser_class ⇒ Class
used to parse target node.
-
#target_node ⇒ MetaCommit::Contracts::Ast
Target node from AST.
-
#whole_file_change ⇒ Boolean
The current value of whole_file_change.
Instance Attribute Details
#context_nodes ⇒ Array<MetaCommit::Contracts::Ast>
Nodes bypassed on the way to target node
8 9 10 |
# File 'lib/meta_commit_contracts/contextual_ast.rb', line 8 def context_nodes @context_nodes end |
#parser_class ⇒ Class
used to parse target node
8 9 10 |
# File 'lib/meta_commit_contracts/contextual_ast.rb', line 8 def parser_class @parser_class end |
#target_node ⇒ MetaCommit::Contracts::Ast
Target node from AST
8 9 10 |
# File 'lib/meta_commit_contracts/contextual_ast.rb', line 8 def target_node @target_node end |
#whole_file_change ⇒ Boolean
Returns the current value of whole_file_change.
8 9 10 |
# File 'lib/meta_commit_contracts/contextual_ast.rb', line 8 def whole_file_change @whole_file_change end |