mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-25 09:55:29 +02:00
Add a couple of magic fields to ASTInclusionStatement
This commit is contained in:
parent
b7bc33758c
commit
be61aaf41a
1 changed files with 5 additions and 1 deletions
|
@ -197,10 +197,12 @@ public class LocationMap implements ILocationResolver, IScannerPreprocessorLog {
|
|||
/**
|
||||
* @author jcamelon
|
||||
*/
|
||||
protected static class ASTInclusionStatement extends ScannerASTNode
|
||||
public static class ASTInclusionStatement extends ScannerASTNode
|
||||
implements IASTPreprocessorIncludeStatement {
|
||||
|
||||
private final char[] path;
|
||||
public int startOffset;
|
||||
public int endOffset;
|
||||
|
||||
/**
|
||||
* @param cs
|
||||
|
@ -815,6 +817,8 @@ public class LocationMap implements ILocationResolver, IScannerPreprocessorLog {
|
|||
((ScannerASTNode) result[i]).setOffsetAndLength(
|
||||
inc.context_directive_start, inc.context_directive_end
|
||||
- inc.context_directive_start);
|
||||
((ASTInclusionStatement)result[i]).startOffset = inc.context_directive_end;
|
||||
((ASTInclusionStatement)result[i]).endOffset = inc.context_ends;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue