diff options
Diffstat (limited to 'core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/InternalFileContent.java')
-rw-r--r-- | core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/InternalFileContent.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/InternalFileContent.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/InternalFileContent.java index 77b0c0a27c6..798b4c1c545 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/InternalFileContent.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/InternalFileContent.java @@ -16,6 +16,7 @@ import java.util.List; import org.eclipse.cdt.core.dom.ast.cpp.ICPPUsingDirective; import org.eclipse.cdt.core.index.IIndexFile; import org.eclipse.cdt.core.index.IIndexMacro; +import org.eclipse.cdt.core.model.ITranslationUnit; import org.eclipse.cdt.core.parser.FileContent; import org.eclipse.cdt.core.parser.ISignificantMacros; @@ -56,6 +57,7 @@ public class InternalFileContent extends FileContent { private final List<FileVersion> fNonPragmaOnceFiles; private boolean fHeuristic; private boolean fIsSource; + private ITranslationUnit fTranslationUnit; private List<IIndexFile> fFiles; private IncludeSearchPathElement fFoundOnPath; private final long fTimestamp; @@ -246,6 +248,14 @@ public class InternalFileContent extends FileContent { fIsSource= isSource; } + public ITranslationUnit getTranslationUnit() { + return fTranslationUnit; + } + + public void setTranslationUnit(ITranslationUnit tu) { + fTranslationUnit = tu; + } + public IncludeSearchPathElement getFoundOnPath() { return fFoundOnPath; } |