flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mschma...@apache.org
Subject [2/2] git commit: [flex-falcon] [refs/heads/develop] - Changed print names to emit in reference classes.
Date Sat, 13 Jun 2015 20:10:37 GMT
Changed print names to emit in reference classes.


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/88d0b23a
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/88d0b23a
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/88d0b23a

Branch: refs/heads/develop
Commit: 88d0b23aa4c6b1c471ceadc49ccfcc71dddd6fef
Parents: 5b48d61
Author: Michael Schmalle <mschmalle@apache.org>
Authored: Sat Jun 13 16:10:21 2015 -0400
Committer: Michael Schmalle <mschmalle@apache.org>
Committed: Sat Jun 13 16:10:21 2015 -0400

----------------------------------------------------------------------
 .../codegen/externals/reference/BaseReference.java      |  2 +-
 .../codegen/externals/reference/FieldReference.java     | 12 +++++-------
 .../codegen/externals/reference/FunctionReference.java  |  2 +-
 .../codegen/externals/reference/MethodReference.java    |  8 ++++----
 .../internal/codegen/externals/utils/DebugLogUtils.java |  4 ++--
 5 files changed, 13 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/88d0b23a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/BaseReference.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/BaseReference.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/BaseReference.java
index 0588bc9..ee230ab 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/BaseReference.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/BaseReference.java
@@ -121,7 +121,7 @@ public abstract class BaseReference
         this.comment = comment;
     }
 
-    public void printComment(StringBuilder sb)
+    public void emitComment(StringBuilder sb)
     {
         sb.append("    /**\n");
         emitCommentBody(sb);

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/88d0b23a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/FieldReference.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/FieldReference.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/FieldReference.java
index a857260..392538c 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/FieldReference.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/FieldReference.java
@@ -73,7 +73,7 @@ public class FieldReference extends MemberReference
         if (getClassReference().hasSuperField(getQualifiedName()))
             return;
 
-        printComment(sb);
+        emitComment(sb);
 
         ExcludedMemeber excluded = isExcluded();
         if (excluded != null)
@@ -84,16 +84,16 @@ public class FieldReference extends MemberReference
         if (!getClassReference().isInterface() && !getComment().isOverride())
         //&& !getClassReference().isPropertyInterfaceImplementation(this))
         {
-            printVar(sb);
+            emitVar(sb);
         }
         else
         {
-            printAccessor(sb);
+            emitAccessor(sb);
         }
 
     }
 
-    private void printAccessor(StringBuilder sb)
+    private void emitAccessor(StringBuilder sb)
     {
         String staticValue = "";//(isStatic) ? "static " : "";
 
@@ -106,7 +106,7 @@ public class FieldReference extends MemberReference
                 + ";\n");
     }
 
-    private void printVar(StringBuilder sb)
+    private void emitVar(StringBuilder sb)
     {
         String staticValue = (isStatic) ? "static " : "";
 
@@ -160,7 +160,5 @@ public class FieldReference extends MemberReference
                 sb.append(description);
             sb.append("\n");
         }
-
     }
-
 }

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/88d0b23a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/FunctionReference.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/FunctionReference.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/FunctionReference.java
index 3d28781..01c3c9e 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/FunctionReference.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/FunctionReference.java
@@ -82,7 +82,7 @@ public class FunctionReference extends BaseReference
 
         printImports();
 
-        printComment(sb);
+        emitComment(sb);
 
         ExcludedMemeber excluded = isExcluded();
         if (excluded != null)

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/88d0b23a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/MethodReference.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/MethodReference.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/MethodReference.java
index 42e700a..93d5319 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/MethodReference.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/MethodReference.java
@@ -83,7 +83,7 @@ public class MethodReference extends MemberReference
     {
         if (isConstructor())
         {
-            printConstructor(sb);
+            emitConstructor(sb);
             return;
         }
 
@@ -93,7 +93,7 @@ public class MethodReference extends MemberReference
         if (getClassReference().hasSuperMethod(getQualifiedName()))
             return;
 
-        printComment(sb);
+        emitComment(sb);
 
         ExcludedMemeber excluded = isExcluded();
         if (excluded != null)
@@ -148,9 +148,9 @@ public class MethodReference extends MemberReference
         override = null;
     }
 
-    private void printConstructor(StringBuilder sb)
+    private void emitConstructor(StringBuilder sb)
     {
-        printComment(sb);
+        emitComment(sb);
 
         sb.append("    native public function ");
         sb.append(getQualifiedName());

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/88d0b23a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/utils/DebugLogUtils.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/utils/DebugLogUtils.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/utils/DebugLogUtils.java
index 856df40..5dcdc48 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/utils/DebugLogUtils.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/utils/DebugLogUtils.java
@@ -23,8 +23,8 @@ import com.google.javascript.rhino.Node;
 
 public final class DebugLogUtils
 {
-    private static boolean logEnabled = true;
-    private static boolean errEnabled = true;
+    private static boolean logEnabled = false;
+    private static boolean errEnabled = false;
 
     public static void log(Node n)
     {


Mime
View raw message