Adds source infos in the test AST nodes in ConstantsAssumptionTest.
Review at http://gwt-code-reviews.appspot.com/831804
Review by: kjin@google.com
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@8732 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/test/com/google/gwt/dev/jjs/impl/gflow/constants/ConstantsAssumptionTest.java b/dev/core/test/com/google/gwt/dev/jjs/impl/gflow/constants/ConstantsAssumptionTest.java
index b0dee1d..5bdedd8 100644
--- a/dev/core/test/com/google/gwt/dev/jjs/impl/gflow/constants/ConstantsAssumptionTest.java
+++ b/dev/core/test/com/google/gwt/dev/jjs/impl/gflow/constants/ConstantsAssumptionTest.java
@@ -15,6 +15,7 @@
*/
package com.google.gwt.dev.jjs.impl.gflow.constants;
+import com.google.gwt.dev.jjs.SourceOrigin;
import com.google.gwt.dev.jjs.ast.JIntLiteral;
import com.google.gwt.dev.jjs.ast.JLocal;
import com.google.gwt.dev.jjs.ast.JMethodBody;
@@ -104,12 +105,13 @@
assertTrue(a1.equals(a2));
}
-
+
private JIntLiteral newIntLiteral(int value) {
- return new JIntLiteral(null, value);
+ return new JIntLiteral(SourceOrigin.UNKNOWN, value);
}
private JLocal newLocal(String name, JPrimitiveType type) {
- return JProgram.createLocal(null, name, type, false, new JMethodBody(null));
+ return JProgram.createLocal(SourceOrigin.UNKNOWN, name, type, false,
+ new JMethodBody(SourceOrigin.UNKNOWN));
}
}