Beispiel #1
0
 public SourceLocation GetStart(JAst parent)
 {
     return parent.IndexToLocation(StartIndex);
 }
Beispiel #2
0
 public SourceLocation GetEnd(JAst parent)
 {
     return parent.IndexToLocation(EndIndex);
 }
Beispiel #3
0
 public SourceLocation GetHeader(JAst ast)
 {
     return ast.IndexToLocation(_headerIndex);
 }
Beispiel #4
0
 public override int GetStop(JAst ast)
 {
     return ast.IndexToLocation(_endIndex).Index;
 }
Beispiel #5
0
 public override int GetStart(JAst ast)
 {
     return ast.IndexToLocation(_startIndex).Index;
 }
Beispiel #6
0
 public override int GetBodyStart(JAst ast)
 {
     return ast.IndexToLocation(((FunctionDefinition)Node).HeaderIndex).Index;
 }
Beispiel #7
0
 /// <summary>
 /// Returns the span of the name component of the expression
 /// </summary>
 public SourceSpan GetNameSpan(JAst parent)
 {
     return new SourceSpan(parent.IndexToLocation(_nameHeader), GetEnd(parent));
 }