Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Kucera2008-02-15 19:44:30 +0000
committerMike Kucera2008-02-15 19:44:30 +0000
commitc575310b92536297d8d178ab5829c8afab2074b3 (patch)
tree83ab368d9827504726a9b3e9548203ef91d6311a /lrparser
parent788ec3ad34303a03248432c47fb200d5a686c063 (diff)
downloadorg.eclipse.cdt-c575310b92536297d8d178ab5829c8afab2074b3.tar.gz
org.eclipse.cdt-c575310b92536297d8d178ab5829c8afab2074b3.tar.xz
org.eclipse.cdt-c575310b92536297d8d178ab5829c8afab2074b3.zip
fix for new problem node constructors
Diffstat (limited to 'lrparser')
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/BuildASTParserAction.java2
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/IASTNodeFactory.java2
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/c99/C99ASTNodeFactory.java4
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/cpp/CPPASTNodeFactory.java4
4 files changed, 6 insertions, 6 deletions
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/BuildASTParserAction.java b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/BuildASTParserAction.java
index e951ce908b4..c30da0817c3 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/BuildASTParserAction.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/BuildASTParserAction.java
@@ -1313,7 +1313,7 @@ public abstract class BuildASTParserAction {
private void consumeProblem(IASTProblemHolder problemHolder) {
- IASTProblem problem = nodeFactory.newProblem(IASTProblem.SYNTAX_ERROR, new char[0], false, true);
+ IASTProblem problem = nodeFactory.newProblem(IASTProblem.SYNTAX_ERROR, new char[0], true);
problemHolder.setProblem(problem);
setOffsetAndLength(problem);
setOffsetAndLength((ASTNode)problemHolder);
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/IASTNodeFactory.java b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/IASTNodeFactory.java
index 1bdde595e87..a049d0a72b5 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/IASTNodeFactory.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/IASTNodeFactory.java
@@ -159,7 +159,7 @@ public interface IASTNodeFactory {
public IASTProblemExpression newProblemExpression();
- public IASTProblem newProblem(int id, char[] arg, boolean warn, boolean error);
+ public IASTProblem newProblem(int id, char[] arg, boolean error);
public IASTEnumerationSpecifier newEnumerationSpecifier(IASTName name);
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/c99/C99ASTNodeFactory.java b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/c99/C99ASTNodeFactory.java
index 61915917e94..2886973f8c1 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/c99/C99ASTNodeFactory.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/c99/C99ASTNodeFactory.java
@@ -380,8 +380,8 @@ public class C99ASTNodeFactory implements IC99ASTNodeFactory {
return new CASTProblemExpression();
}
- public IASTProblem newProblem(int id, char[] arg, boolean warn, boolean error) {
- return new CASTProblem(id, arg, warn, error);
+ public IASTProblem newProblem(int id, char[] arg, boolean error) {
+ return new CASTProblem(id, arg, error);
}
public IASTAmbiguousExpression newAmbiguousExpression(IASTExpression... expressions) {
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/cpp/CPPASTNodeFactory.java b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/cpp/CPPASTNodeFactory.java
index 4ff98952a13..6da9c007e73 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/cpp/CPPASTNodeFactory.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/cpp/CPPASTNodeFactory.java
@@ -210,8 +210,8 @@ public class CPPASTNodeFactory implements ICPPASTNodeFactory {
return new CPPASTOperatorName(name);
}
- public IASTProblem newProblem(int id, char[] arg, boolean warn, boolean error) {
- return new CPPASTProblem(id, arg, warn, error);
+ public IASTProblem newProblem(int id, char[] arg, boolean error) {
+ return new CPPASTProblem(id, arg, error);
}
public IASTProblemDeclaration newProblemDeclaration() {

Back to the top