コード例 #1
0
ファイル: Node.cs プロジェクト: borota/JTVS
 public SourceLocation GetStart(JAst parent)
 {
     return parent.IndexToLocation(StartIndex);
 }
コード例 #2
0
ファイル: Node.cs プロジェクト: borota/JTVS
 public SourceLocation GetEnd(JAst parent)
 {
     return parent.IndexToLocation(EndIndex);
 }
コード例 #3
0
ファイル: IfStatementTest.cs プロジェクト: borota/JTVS
 public SourceLocation GetHeader(JAst ast)
 {
     return ast.IndexToLocation(_headerIndex);
 }
コード例 #4
0
ファイル: IsInstanceScope.cs プロジェクト: borota/JTVS
 public override int GetStop(JAst ast)
 {
     return ast.IndexToLocation(_endIndex).Index;
 }
コード例 #5
0
ファイル: IsInstanceScope.cs プロジェクト: borota/JTVS
 public override int GetStart(JAst ast)
 {
     return ast.IndexToLocation(_startIndex).Index;
 }
コード例 #6
0
ファイル: FunctionScope.cs プロジェクト: borota/JTVS
 public override int GetBodyStart(JAst ast)
 {
     return ast.IndexToLocation(((FunctionDefinition)Node).HeaderIndex).Index;
 }
コード例 #7
0
ファイル: MemberExpression.cs プロジェクト: borota/JTVS
 /// <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));
 }