From 3f0448c576b8a7839c06223787a9029ccaf9b62c Mon Sep 17 00:00:00 2001 From: Hoda Amer Date: Thu, 22 Jan 2004 16:08:35 +0000 Subject: [PATCH] Content Assist Work : small problem in CompleteParseASTFactory solved. --- core/org.eclipse.cdt.core/parser/ChangeLog-parser | 3 +++ .../core/parser/ast/complete/CompleteParseASTFactory.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.core/parser/ChangeLog-parser b/core/org.eclipse.cdt.core/parser/ChangeLog-parser index 02471848368..6fa70fc05e9 100644 --- a/core/org.eclipse.cdt.core/parser/ChangeLog-parser +++ b/core/org.eclipse.cdt.core/parser/ChangeLog-parser @@ -1,3 +1,6 @@ +2004-01-22 Hoda Amer + Solved a small problem in the ASTCompleteParseASTFactory sent to me by Dave. + 2004-01-20 John Camelon Added traceLog() call into Scanner.handleProblem() and updated ParserFactory.createPreprocessor() for extra error handling. diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java index 0981312d342..f775e982f64 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java @@ -920,7 +920,7 @@ public class CompleteParseASTFactory extends BaseASTFactory implements IASTFacto if(containingScope != null){ return (IContainerSymbol)containingScope; } else { - throw new ASTSemanticException(); + return (IContainerSymbol)firstContainingScope; } } else { throw new ASTSemanticException();