Example #1
0
 public override Node GetNode(PythonAst root)
 {
     if (_suite.Statements.Count == 0)
     {
         return(_suite);
     }
     return(_suite.CloneSubset(Parents[0] as PythonAst, _start, _end));
 }
Example #2
0
 public override Node GetNode()
 {
     if (_suite.Statements.Count == 0)
     {
         return(_suite);
     }
     return(_suite.CloneSubset(Ast, _start, _end));
 }