Reviewers: aizatsky,

Description:
Adds source infos in the test AST nodes in ConstantsAssumptionTest.

Review by: [email protected]

Please review this at http://gwt-code-reviews.appspot.com/831804/show

Affected files:
M dev/core/test/com/google/gwt/dev/jjs/impl/gflow/constants/ConstantsAssumptionTest.java


Index: dev/core/test/com/google/gwt/dev/jjs/impl/gflow/constants/ConstantsAssumptionTest.java
===================================================================
--- dev/core/test/com/google/gwt/dev/jjs/impl/gflow/constants/ConstantsAssumptionTest.java (revision 8728) +++ dev/core/test/com/google/gwt/dev/jjs/impl/gflow/constants/ConstantsAssumptionTest.java (working copy)
@@ -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

Reply via email to