public SourceLocation GetStart(JAst parent) { return parent.IndexToLocation(StartIndex); }
public SourceLocation GetEnd(JAst parent) { return parent.IndexToLocation(EndIndex); }
public SourceLocation GetHeader(JAst ast) { return ast.IndexToLocation(_headerIndex); }
public override int GetStop(JAst ast) { return ast.IndexToLocation(_endIndex).Index; }
public override int GetStart(JAst ast) { return ast.IndexToLocation(_startIndex).Index; }
public override int GetBodyStart(JAst ast) { return ast.IndexToLocation(((FunctionDefinition)Node).HeaderIndex).Index; }
/// <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)); }