Revision: 6217
Author: [email protected]
Date: Fri Sep 25 11:27:12 2009
Log: Reformat JavaScriptObjectNormalizer.

Patch by: bobv
Review by: scottb
http://code.google.com/p/google-web-toolkit/source/detail?r=6217

Modified:
   
/trunk/dev/core/src/com/google/gwt/dev/jjs/impl/JavaScriptObjectNormalizer.java

=======================================
---  
/trunk/dev/core/src/com/google/gwt/dev/jjs/impl/JavaScriptObjectNormalizer.java 
 
Fri Sep 25 11:27:03 2009
+++  
/trunk/dev/core/src/com/google/gwt/dev/jjs/impl/JavaScriptObjectNormalizer.java 
 
Fri Sep 25 11:27:12 2009
@@ -58,7 +58,8 @@
      public void endVisit(JCastOperation x, Context ctx) {
        JType newType = translate(x.getCastType());
        if (newType != x.getCastType()) {
-        ctx.replaceMe(new JCastOperation(x.getSourceInfo(), newType,  
x.getExpr()));
+        ctx.replaceMe(new JCastOperation(x.getSourceInfo(), newType,
+            x.getExpr()));
        }
      }

@@ -135,8 +136,8 @@
            CloneExpressionVisitor cloner = new  
CloneExpressionVisitor(program);

            // instance.jsoMethod(arg, arg)
-          JMethodCall jsoCall = new JMethodCall(info,  
cloner.cloneExpression(instance),
-              jsoMethod);
+          JMethodCall jsoCall = new JMethodCall(info,
+              cloner.cloneExpression(instance), jsoMethod);
            jsoCall.addArgs(cloner.cloneExpressions(x.getArgs()));

            // Cast.isJavaScriptObject() ? instance.jsoMethod() :
@@ -152,7 +153,8 @@
             * ... otherwise, if there's only a JSO implementation, we'll  
just
             * call that directly.
             */
-          JMethodCall jsoCall = new JMethodCall(info, x.getInstance(),  
jsoMethod);
+          JMethodCall jsoCall = new JMethodCall(info, x.getInstance(),
+              jsoMethod);
            jsoCall.addArgs(x.getArgs());
            ctx.replaceMe(jsoCall);
          }
@@ -213,7 +215,8 @@
          JExpression notJsoExpr) {
        // Cast.isJavaScriptObjectOrString(instance)
        JMethod isJavaScriptObjectMethod =  
program.getIndexedMethod("Cast.isJavaScriptObjectOrString");
-      JMethodCall isJavaScriptObjectExpr = new JMethodCall(info, null,  
isJavaScriptObjectMethod);
+      JMethodCall isJavaScriptObjectExpr = new JMethodCall(info, null,
+          isJavaScriptObjectMethod);
        isJavaScriptObjectExpr.addArg(instance);
        return new JConditional(info, conditionalType,  
isJavaScriptObjectExpr,
            isJsoExpr, notJsoExpr);

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to