From be61aaf41ac867f26ee3ba90fcb3b59e72b09d5b Mon Sep 17 00:00:00 2001 From: John Camelon Date: Wed, 9 Feb 2005 20:02:27 +0000 Subject: [PATCH] Add a couple of magic fields to ASTInclusionStatement --- .../cdt/internal/core/parser/scanner2/LocationMap.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/LocationMap.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/LocationMap.java index abe7ebcf587..bb5ecca0f92 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/LocationMap.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/LocationMap.java @@ -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; }