1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-26 02:15:31 +02:00

Add a couple of magic fields to ASTInclusionStatement

This commit is contained in:
John Camelon 2005-02-09 20:02:27 +00:00
parent b7bc33758c
commit be61aaf41a

View file

@ -197,10 +197,12 @@ public class LocationMap implements ILocationResolver, IScannerPreprocessorLog {
/** /**
* @author jcamelon * @author jcamelon
*/ */
protected static class ASTInclusionStatement extends ScannerASTNode public static class ASTInclusionStatement extends ScannerASTNode
implements IASTPreprocessorIncludeStatement { implements IASTPreprocessorIncludeStatement {
private final char[] path; private final char[] path;
public int startOffset;
public int endOffset;
/** /**
* @param cs * @param cs
@ -815,6 +817,8 @@ public class LocationMap implements ILocationResolver, IScannerPreprocessorLog {
((ScannerASTNode) result[i]).setOffsetAndLength( ((ScannerASTNode) result[i]).setOffsetAndLength(
inc.context_directive_start, inc.context_directive_end inc.context_directive_start, inc.context_directive_end
- inc.context_directive_start); - inc.context_directive_start);
((ASTInclusionStatement)result[i]).startOffset = inc.context_directive_end;
((ASTInclusionStatement)result[i]).endOffset = inc.context_ends;
} }
return result; return result;
} }