Author: scabanovich
Date: 2009-03-18 06:13:28 -0400 (Wed, 18 Mar 2009)
New Revision: 14254
Modified:
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/parser/Tokenizer.java
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/internal/core/parser/token/PrimitiveValueTokenDescription.java
Log:
JBIDE-3951
Modified:
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/parser/Tokenizer.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/parser/Tokenizer.java 2009-03-18
09:59:04 UTC (rev 14253)
+++
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/parser/Tokenizer.java 2009-03-18
10:13:28 UTC (rev 14254)
@@ -157,6 +157,10 @@
return copy;
}
+ public void addSyntaxError(SyntaxError error) {
+ errors.add(error);
+ }
+
public void addToken(int type, int start, int end) {
if(end < 0) return;
int lastEnd = last.getStart() + last.getLength();
Modified:
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/internal/core/parser/token/PrimitiveValueTokenDescription.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/internal/core/parser/token/PrimitiveValueTokenDescription.java 2009-03-18
09:59:04 UTC (rev 14253)
+++
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/internal/core/parser/token/PrimitiveValueTokenDescription.java 2009-03-18
10:13:28 UTC (rev 14254)
@@ -141,7 +141,7 @@
&& dotCount < 1) {
SyntaxError error = new SyntaxError(dotOffset, BasicStates.STATE_EXPECTING_ARG);
error.setProblem("Argument must resolve to integer or string.");
- tokenizer.getErrors().add(error);
+ tokenizer.addSyntaxError(error);
}
tokenizer.addToken(getType(), offset, i);
return true;