mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 08:55:25 +02:00
fix for new problem node constructors
This commit is contained in:
parent
788ec3ad34
commit
c575310b92
4 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue