@@ -34,11 +34,11 @@ public static Node CreateNode (this Ast _ast, int _depth, int _position, Node _p
34
34
case Ast a when _ast is CatchClauseAst :
35
35
return ( ( CatchClauseAst ) _ast ) . CreateNodeFromAst ( _depth , _position , _parent ) ;
36
36
case Ast a when _ast is BreakStatementAst :
37
- return ( ( BreakStatementAst ) _ast ) . CreateNodeFromAst ( _depth , _position , _parent ) ;
37
+ return ( ( BreakStatementAst ) _ast ) . CreateNodeFromAst ( _depth , _position , _parent , _tree ) ;
38
38
case Ast a when _ast is ContinueStatementAst :
39
- return ( ( ContinueStatementAst ) _ast ) . CreateNodeFromAst ( _depth , _position , _parent ) ;
39
+ return ( ( ContinueStatementAst ) _ast ) . CreateNodeFromAst ( _depth , _position , _parent , _tree ) ;
40
40
case Ast a when _ast is ExitStatementAst :
41
- return ( ( ExitStatementAst ) _ast ) . CreateNodeFromAst ( _depth , _position , _parent ) ;
41
+ return ( ( ExitStatementAst ) _ast ) . CreateNodeFromAst ( _depth , _position , _parent , _tree ) ;
42
42
case Ast a when _ast is PipelineAst :
43
43
return ( ( PipelineAst ) _ast ) . CreateNodeFromAst ( _depth , _position , _parent , _tree ) ;
44
44
}
@@ -79,9 +79,9 @@ public static class ExitStatementExtension {
79
79
// New Methods Available:
80
80
// - CreateNodeFromAST(NodeDepth, NodePosition, Parent) => Creates a Node
81
81
// - GetChildAst() => retourne only ASTs we are looking for ...
82
- public static ExitNode CreateNodeFromAst ( this ExitStatementAst _ast , int _depth , int _position , Node _parent )
82
+ public static ExitNode CreateNodeFromAst ( this ExitStatementAst _ast , int _depth , int _position , Node _parent , Tree _tree )
83
83
{
84
- return new ExitNode ( _ast , _depth , _position , _parent ) ;
84
+ return new ExitNode ( _ast , _depth , _position , _parent , _tree ) ;
85
85
}
86
86
87
87
}
@@ -91,9 +91,9 @@ public static class ContinueStatementExtension {
91
91
// New Methods Available:
92
92
// - CreateNodeFromAST(NodeDepth, NodePosition, Parent) => Creates a Node
93
93
// - GetChildAst() => retourne only ASTs we are looking for ...
94
- public static ContinueNode CreateNodeFromAst ( this ContinueStatementAst _ast , int _depth , int _position , Node _parent )
94
+ public static ContinueNode CreateNodeFromAst ( this ContinueStatementAst _ast , int _depth , int _position , Node _parent , Tree _tree )
95
95
{
96
- return new ContinueNode ( _ast , _depth , _position , _parent ) ;
96
+ return new ContinueNode ( _ast , _depth , _position , _parent , _tree ) ;
97
97
}
98
98
99
99
}
@@ -103,9 +103,9 @@ public static class BreakStatementExtension {
103
103
// New Methods Available:
104
104
// - CreateNodeFromAST(NodeDepth, NodePosition, Parent) => Creates a Node
105
105
// - GetChildAst() => retourne only ASTs we are looking for ...
106
- public static BreakNode CreateNodeFromAst ( this BreakStatementAst _ast , int _depth , int _position , Node _parent )
106
+ public static BreakNode CreateNodeFromAst ( this BreakStatementAst _ast , int _depth , int _position , Node _parent , Tree _tree )
107
107
{
108
- return new BreakNode ( _ast , _depth , _position , _parent ) ;
108
+ return new BreakNode ( _ast , _depth , _position , _parent , _tree ) ;
109
109
}
110
110
111
111
}
0 commit comments