Revision: 8732
Author: [email protected]
Date: Wed Sep 8 09:34:54 2010
Log: Adds source infos in the test AST nodes in ConstantsAssumptionTest.
Review at http://gwt-code-reviews.appspot.com/831804
Review by: [email protected]
http://code.google.com/p/google-web-toolkit/source/detail?r=8732
Modified:
/trunk/dev/core/test/com/google/gwt/dev/jjs/impl/gflow/constants/ConstantsAssumptionTest.java
=======================================
---
/trunk/dev/core/test/com/google/gwt/dev/jjs/impl/gflow/constants/ConstantsAssumptionTest.java
Tue May 4 10:40:00 2010
+++
/trunk/dev/core/test/com/google/gwt/dev/jjs/impl/gflow/constants/ConstantsAssumptionTest.java
Wed Sep 8 09:34:54 2010
@@ -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));
}
}
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors