Author: [EMAIL PROTECTED]
Date: Mon Sep 8 13:30:32 2008
New Revision: 3628
Modified:
changes/spoon/runAsync/dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java
changes/spoon/runAsync/dev/core/src/com/google/gwt/dev/js/ast/JsVars.java
Log:
Sort and format.
Modified:
changes/spoon/runAsync/dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java
==============================================================================
---
changes/spoon/runAsync/dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java
(original)
+++
changes/spoon/runAsync/dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java
Mon Sep 8 13:30:32 2008
@@ -563,12 +563,12 @@
private Set<JReferenceType> instantiatedTypes = new
HashSet<JReferenceType>();
private Set<JNode> liveFieldsAndMethods = new HashSet<JNode>();
+ private Set<String> liveStrings = new HashSet<String>();
private final JProgram program;
private Set<JReferenceType> referencedTypes = new
HashSet<JReferenceType>();
private final RescueVisitor rescuer = new RescueVisitor();
private JMethod stringValueOfChar = null;
private final UpRefVisitor upRefer = new UpRefVisitor();
- private Set<String> liveStrings = new HashSet<String>();
public ControlFlowAnalyzer(JProgram program) {
this.program = program;
@@ -604,6 +604,10 @@
return liveFieldsAndMethods;
}
+ public Set<String> getLiveStrings() {
+ return liveStrings;
+ }
+
/**
* Return the complete set of types that have been referenced.
*/
@@ -653,9 +657,5 @@
do {
upRefer.accept(program);
} while (upRefer.didRescue());
- }
-
- public Set<String> getLiveStrings() {
- return liveStrings;
}
}
Modified:
changes/spoon/runAsync/dev/core/src/com/google/gwt/dev/js/ast/JsVars.java
==============================================================================
---
changes/spoon/runAsync/dev/core/src/com/google/gwt/dev/js/ast/JsVars.java
(original)
+++
changes/spoon/runAsync/dev/core/src/com/google/gwt/dev/js/ast/JsVars.java
Mon Sep 8 13:30:32 2008
@@ -22,6 +22,7 @@
/**
* A JavaScript <code>var</code> statement.
*/
[EMAIL PROTECTED]("serial")
public class JsVars extends JsStatement implements Iterable<JsVars.JsVar> {
/**
@@ -66,6 +67,10 @@
public void add(JsVar var) {
vars.add(var);
+ }
+
+ public int getNumVars() {
+ return vars.size();
}
public boolean isEmpty() {
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---