split code into modules and lots of other code changes

This commit is contained in:
Pavel Talanov
2011-11-09 16:00:19 +04:00
parent 51856147a2
commit 733d4f5168
138 changed files with 7559 additions and 1165 deletions
+2
View File
@@ -6,7 +6,9 @@
<module fileurl="file://$PROJECT_DIR$/../Kotlin/jet/compiler/frontend/frontend.iml" filepath="$PROJECT_DIR$/../Kotlin/jet/compiler/frontend/frontend.iml" /> <module fileurl="file://$PROJECT_DIR$/../Kotlin/jet/compiler/frontend/frontend.iml" filepath="$PROJECT_DIR$/../Kotlin/jet/compiler/frontend/frontend.iml" />
<module fileurl="file://$PROJECT_DIR$/../../Kotlin/jet/compiler/frontend.java/frontend.java.iml" filepath="$PROJECT_DIR$/../../Kotlin/jet/compiler/frontend.java/frontend.java.iml" /> <module fileurl="file://$PROJECT_DIR$/../../Kotlin/jet/compiler/frontend.java/frontend.java.iml" filepath="$PROJECT_DIR$/../../Kotlin/jet/compiler/frontend.java/frontend.java.iml" />
<module fileurl="file://$PROJECT_DIR$/../Kotlin/jet/compiler/frontend.java/frontend.java.iml" filepath="$PROJECT_DIR$/../Kotlin/jet/compiler/frontend.java/frontend.java.iml" /> <module fileurl="file://$PROJECT_DIR$/../Kotlin/jet/compiler/frontend.java/frontend.java.iml" filepath="$PROJECT_DIR$/../Kotlin/jet/compiler/frontend.java/frontend.java.iml" />
<module fileurl="file://$PROJECT_DIR$/js/js.iml" filepath="$PROJECT_DIR$/js/js.iml" />
<module fileurl="file://$PROJECT_DIR$/k2js.iml" filepath="$PROJECT_DIR$/k2js.iml" /> <module fileurl="file://$PROJECT_DIR$/k2js.iml" filepath="$PROJECT_DIR$/k2js.iml" />
<module fileurl="file://$PROJECT_DIR$/translator/translator.iml" filepath="$PROJECT_DIR$/translator/translator.iml" />
</modules> </modules>
</component> </component>
</project> </project>
+359 -331
View File
File diff suppressed because it is too large Load Diff
+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="jdk" jdkName="1.7" jdkType="JavaSDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler; package compiler;
/** /**
* Exception thrown when the compiler encounters an unexpected internal error. * Exception thrown when the compiler encounters an unexpected internal error.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler; package compiler;
import java.io.IOException; import java.io.IOException;
import java.io.Reader; import java.io.Reader;
@@ -24,10 +24,10 @@
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package com.google.dart.compiler.backend.js; package compiler.backend.js;
import com.google.dart.compiler.InternalCompilerException; import compiler.InternalCompilerException;
import com.google.dart.compiler.backend.js.ast.*; import compiler.backend.js.ast.*;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@@ -2,9 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js; package compiler.backend.js;
import com.google.dart.compiler.backend.js.ast.*; import compiler.backend.js.ast.*;
/** /**
* Searches for method invocations in constructor expressions that would not * Searches for method invocations in constructor expressions that would not
@@ -2,9 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js; package compiler.backend.js;
import com.google.dart.compiler.backend.js.ast.*; import compiler.backend.js.ast.*;
/** /**
* Determines if an expression statement needs to be surrounded by parentheses. * Determines if an expression statement needs to be surrounded by parentheses.
@@ -2,9 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js; package compiler.backend.js;
import com.google.dart.compiler.backend.js.ast.JsProgram; import compiler.backend.js.ast.JsProgram;
/** /**
* A namer runs through a program and renames the short names of JsNames. * A namer runs through a program and renames the short names of JsNames.
@@ -2,9 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js; package compiler.backend.js;
import com.google.dart.compiler.backend.js.ast.*; import compiler.backend.js.ast.*;
/** /**
* Fixes any semantic errors introduced by JS AST gen. * Fixes any semantic errors introduced by JS AST gen.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js; package compiler.backend.js;
/** /**
* Indicates inability to parse JavaScript source. * Indicates inability to parse JavaScript source.
@@ -2,10 +2,10 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js; package compiler.backend.js;
import com.google.dart.compiler.backend.js.ast.*; import compiler.backend.js.ast.JsVars.JsVar;
import com.google.dart.compiler.backend.js.ast.JsVars.JsVar; import compiler.backend.js.ast.*;
/** /**
* Precedence indices from "JavaScript - The Definitive Guide" 4th Edition (page * Precedence indices from "JavaScript - The Definitive Guide" 4th Edition (page
@@ -2,12 +2,12 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js; package compiler.backend.js;
import com.google.dart.compiler.backend.js.ast.JsName; import compiler.backend.js.ast.JsName;
import com.google.dart.compiler.backend.js.ast.JsProgram; import compiler.backend.js.ast.JsProgram;
import com.google.dart.compiler.backend.js.ast.JsRootScope; import compiler.backend.js.ast.JsRootScope;
import com.google.dart.compiler.backend.js.ast.JsScope; import compiler.backend.js.ast.JsScope;
import java.util.*; import java.util.*;
@@ -2,9 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js; package compiler.backend.js;
import com.google.dart.compiler.backend.js.ast.*; import compiler.backend.js.ast.*;
/** /**
* Determines if a statement at the end of a block requires a semicolon. * Determines if a statement at the end of a block requires a semicolon.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js; package compiler.backend.js;
import java.util.HashSet; import java.util.HashSet;
import java.util.Set; import java.util.Set;
@@ -2,13 +2,13 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js; package compiler.backend.js;
import com.google.dart.compiler.backend.js.ast.JsBlock; import compiler.backend.js.ast.JsContext;
import com.google.dart.compiler.backend.js.ast.JsContext; import compiler.backend.js.ast.JsProgramFragment;
import com.google.dart.compiler.backend.js.ast.JsProgram; import compiler.util.TextOutput;
import com.google.dart.compiler.backend.js.ast.JsProgramFragment; import compiler.backend.js.ast.JsBlock;
import com.google.dart.compiler.util.TextOutput; import compiler.backend.js.ast.JsProgram;
/** /**
* Generates JavaScript source from an AST. * Generates JavaScript source from an AST.
@@ -2,11 +2,10 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js; package compiler.backend.js;
import com.google.dart.compiler.backend.js.ast.*; import compiler.util.TextOutput;
import com.google.dart.compiler.backend.js.ast.JsVars.JsVar; import compiler.backend.js.ast.*;
import com.google.dart.compiler.util.TextOutput;
import java.util.*; import java.util.*;
import java.util.regex.Pattern; import java.util.regex.Pattern;
@@ -880,7 +879,7 @@ public class JsToStringGenerationVisitor extends JsVisitor {
} }
@Override @Override
public boolean visit(JsVar x, JsContext ctx) { public boolean visit(JsVars.JsVar x, JsContext ctx) {
_nameOf(x); _nameOf(x);
JsExpression initExpr = x.getInitExpr(); JsExpression initExpr = x.getInitExpr();
if (initExpr != null) { if (initExpr != null) {
@@ -899,7 +898,7 @@ public class JsToStringGenerationVisitor extends JsVisitor {
_var(); _var();
_space(); _space();
boolean sep = false; boolean sep = false;
for (JsVar var : x) { for (JsVars.JsVar var : x) {
sep = _sepCommaOptSpace(sep); sep = _sepCommaOptSpace(sep);
accept(var); accept(var);
} }
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js; package compiler.backend.js;
/** /**
* An unchecked wrapper exception to interop with Rhino. * An unchecked wrapper exception to interop with Rhino.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* An interface that describes the boolean evaluation of an expression. * An interface that describes the boolean evaluation of an expression.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
import java.util.List; import java.util.List;
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* Implemented by JavaScript objects with conditional execution. * Implemented by JavaScript objects with conditional execution.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* Implemented by JavaScript objects that have a name. * Implemented by JavaScript objects that have a name.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* Represents a javascript expression for array access. * Represents a javascript expression for array access.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* Represents a JavaScript binary operation. * Represents a JavaScript binary operation.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* Represents the operator in a JavaScript binary operation. * Represents the operator in a JavaScript binary operation.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* Represents a JavaScript literal boolean expression. * Represents a JavaScript literal boolean expression.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* Represents the JavaScript break statement. * Represents the JavaScript break statement.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* Represents the JavaScript case statement. * Represents the JavaScript case statement.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* Represents a JavaScript catch clause. * Represents a JavaScript catch clause.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
import java.util.Iterator; import java.util.Iterator;
import java.util.NoSuchElementException; import java.util.NoSuchElementException;
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* Represents a JavaScript conditional expression. * Represents a JavaScript conditional expression.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* The context in which a JsNode visitation occurs. This represents the set of * The context in which a JsNode visitation occurs. This represents the set of
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* Represents the JavaScript continue statement. * Represents the JavaScript continue statement.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* Represents a JavaScript debugger statement. * Represents a JavaScript debugger statement.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* Represents the default option in a JavaScript swtich statement. * Represents the default option in a JavaScript swtich statement.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* Represents a JavaScript do..while statement. * Represents a JavaScript do..while statement.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* Represents an empty statement in JavaScript. * Represents an empty statement in JavaScript.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* Represents a JavaScript expression statement. * Represents a JavaScript expression statement.
@@ -2,9 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
import com.google.dart.compiler.common.SourceInfo; import compiler.common.SourceInfo;
/** /**
* An abstract base class for all JavaScript expressions. * An abstract base class for all JavaScript expressions.
@@ -2,9 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
import com.google.dart.compiler.common.SourceInfo; import compiler.common.SourceInfo;
/** /**
* A <code>for</code> statement. If specified at all, the initializer part is * A <code>for</code> statement. If specified at all, the initializer part is
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* Represents a JavaScript for..in statement. * Represents a JavaScript for..in statement.
@@ -2,9 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
import com.google.dart.compiler.common.SourceInfo; import compiler.common.SourceInfo;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* Represnts a JavaScript block in the global scope. * Represnts a JavaScript block in the global scope.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* Represents a JavaScript if statement. * Represents a JavaScript if statement.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* Represents a JavaScript label statement. * Represents a JavaScript label statement.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* A JavaScript string literal expression. * A JavaScript string literal expression.
@@ -2,9 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
import com.google.dart.compiler.util.Hack; import compiler.util.Hack;
import java.util.List; import java.util.List;
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
import java.io.Serializable; import java.io.Serializable;
@@ -24,7 +24,7 @@ public class JsName implements Serializable {
/** /**
* @param ident the unmangled ident to use for this name * @param ident the unmangled ident to use for this name
*/ */
public JsName(JsScope enclosing, String ident, String shortIdent, String originalName) { JsName(JsScope enclosing, String ident, String shortIdent, String originalName) {
this.enclosing = enclosing; this.enclosing = enclosing;
this.ident = ident; this.ident = ident;
this.shortIdent = shortIdent; this.shortIdent = shortIdent;
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* Represents a JavaScript expression that references a name. * Represents a JavaScript expression that references a name.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@@ -1,13 +1,13 @@
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
import com.google.dart.compiler.backend.js.JsSourceGenerationVisitor; import compiler.backend.js.JsSourceGenerationVisitor;
import com.google.dart.compiler.backend.js.JsToStringGenerationVisitor; import compiler.backend.js.JsToStringGenerationVisitor;
import com.google.dart.compiler.common.AbstractNode; import compiler.common.AbstractNode;
import com.google.dart.compiler.common.SourceInfo; import compiler.common.SourceInfo;
import com.google.dart.compiler.util.DefaultTextOutput; import compiler.util.DefaultTextOutput;
/** /**
* Base class for all JS AST elements. * Base class for all JS AST elements.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* A JavaScript null literal. * A JavaScript null literal.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* Represents a JavaScript literal decimal expression. * Represents a JavaScript literal decimal expression.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* A JavaScript operator. * A JavaScript operator.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* A JavaScript parameter. * A JavaScript parameter.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* A JavaScript postfix operation. * A JavaScript postfix operation.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* A JavaScript prefix operation. * A JavaScript prefix operation.
@@ -2,7 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
import org.jetbrains.annotations.Nullable;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
@@ -156,7 +158,7 @@ public final class JsProgram extends JsNode {
} }
@Override @Override
public void traverse(JsVisitor v, JsContext ctx) { public void traverse(JsVisitor v, @Nullable JsContext ctx) {
if (v.visit(this, ctx)) { if (v.visit(this, ctx)) {
for (JsProgramFragment fragment : fragments) { for (JsProgramFragment fragment : fragments) {
v.accept(fragment); v.accept(fragment);
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* One independently loadable fragment of a {@link JsProgram}. * One independently loadable fragment of a {@link JsProgram}.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* Used in object literals to specify property values by name. * Used in object literals to specify property values by name.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* A JavaScript regular expression. * A JavaScript regular expression.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* A JavaScript return statement. * A JavaScript return statement.
@@ -2,9 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
import com.google.dart.compiler.backend.js.JsReservedIdentifiers; import compiler.backend.js.JsReservedIdentifiers;
/** /**
* The root scope is the parent of every scope. All identifiers in this scope * The root scope is the parent of every scope. All identifiers in this scope
@@ -2,10 +2,10 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
import com.google.dart.compiler.util.Lists; import compiler.util.Lists;
import com.google.dart.compiler.util.Maps; import compiler.util.Maps;
import java.io.Serializable; import java.io.Serializable;
import java.util.Collections; import java.util.Collections;
@@ -15,17 +15,17 @@ import java.util.Map;
/** /**
* A scope is a factory for creating and allocating * A scope is a factory for creating and allocating
* {@link com.google.dart.compiler.backend.js.ast.JsName}s. A JavaScript AST is * {@link JsName}s. A JavaScript AST is
* built in terms of abstract name objects without worrying about obfuscation, * built in terms of abstract name objects without worrying about obfuscation,
* keyword/identifier blacklisting, and so on. * keyword/identifier blacklisting, and so on.
* <p/> * <p/>
* <p/> * <p/>
* <p/> * <p/>
* Scopes are associated with * Scopes are associated with
* {@link com.google.dart.compiler.backend.js.ast.JsFunction}s, but the two are * {@link JsFunction}s, but the two are
* not equivalent. Functions <i>have</i> scopes, but a scope does not * not equivalent. Functions <i>have</i> scopes, but a scope does not
* necessarily have an associated Function. Examples of this include the * necessarily have an associated Function. Examples of this include the
* {@link com.google.dart.compiler.backend.js.ast.JsRootScope} and synthetic * {@link JsRootScope} and synthetic
* scopes that might be created by a client. * scopes that might be created by a client.
* <p/> * <p/>
* <p/> * <p/>
@@ -34,7 +34,7 @@ import java.util.Map;
* identifiers for names. Specifically, names in child scopes are chosen such * identifiers for names. Specifically, names in child scopes are chosen such
* that they do not conflict with names in their parent scopes. The ultimate * that they do not conflict with names in their parent scopes. The ultimate
* parent is usually the global scope (see * parent is usually the global scope (see
* {@link com.google.dart.compiler.backend.js.ast.JsProgram#getRootScope()}), * {@link JsProgram#getRootScope()}),
* but parentless scopes are useful for managing names that are always accessed * but parentless scopes are useful for managing names that are always accessed
* with a qualifier and could therefore never be confused with the global scope * with a qualifier and could therefore never be confused with the global scope
* hierarchy. * hierarchy.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* Abstract base class for JavaScript statement objects. * Abstract base class for JavaScript statement objects.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* A JavaScript string literal expression. * A JavaScript string literal expression.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* A JavaScript <code>this</code> reference. * A JavaScript <code>this</code> reference.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* A JavaScript <code>throw</code> statement. * A JavaScript <code>throw</code> statement.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* A JavaScript prefix or postfix operation. * A JavaScript prefix or postfix operation.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* A JavaScript unary operator. * A JavaScript unary operator.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* A JavaScript string literal expression. * A JavaScript string literal expression.
@@ -2,9 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
import com.google.dart.compiler.common.SourceInfo; import compiler.common.SourceInfo;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* Abstracts the idea that a class can be traversed. * Abstracts the idea that a class can be traversed.
@@ -2,9 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
import com.google.dart.compiler.backend.js.ast.JsVars.JsVar;
import java.util.List; import java.util.List;
@@ -227,7 +225,7 @@ public class JsVisitor {
public void endVisit(JsTry x, JsContext ctx) { public void endVisit(JsTry x, JsContext ctx) {
} }
public void endVisit(JsVar x, JsContext ctx) { public void endVisit(JsVars.JsVar x, JsContext ctx) {
} }
public void endVisit(JsVars x, JsContext ctx) { public void endVisit(JsVars x, JsContext ctx) {
@@ -392,7 +390,7 @@ public class JsVisitor {
return true; return true;
} }
public boolean visit(JsVar x, JsContext ctx) { public boolean visit(JsVars.JsVar x, JsContext ctx) {
return true; return true;
} }
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
/** /**
* A JavaScript <code>while</code> statement. * A JavaScript <code>while</code> statement.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast; package compiler.backend.js.ast;
public enum NodeKind { public enum NodeKind {
ARRAY_ACCESS, ARRAY_ACCESS,
@@ -2,9 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.common; package compiler.common;
import com.google.dart.compiler.Source; import compiler.Source;
/** /**
* Abstract base class for nodes that carry source information. * Abstract base class for nodes that carry source information.
@@ -2,9 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.common; package compiler.common;
import com.google.dart.compiler.Source; import compiler.Source;
/** /**
* Abstract view of a class that has source info. * Abstract view of a class that has source info.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.common; package compiler.common;
import java.io.*; import java.io.*;
import java.nio.charset.Charset; import java.nio.charset.Charset;
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.common; package compiler.common;
import com.google.common.annotations.VisibleForTesting; import com.google.common.annotations.VisibleForTesting;
import com.google.common.collect.MapMaker; import com.google.common.collect.MapMaker;
@@ -2,8 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.common; package compiler.common;
import com.google.dart.compiler.Source; import compiler.Source;
import java.io.Serializable; import java.io.Serializable;
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.util; package compiler.util;
import java.io.PrintWriter; import java.io.PrintWriter;
import java.util.Arrays; import java.util.Arrays;
@@ -2,12 +2,12 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.util; package compiler.util;
import com.google.dart.compiler.InternalCompilerException; import compiler.InternalCompilerException;
import com.google.dart.compiler.backend.js.ast.*; import compiler.common.SourceInfo;
import com.google.dart.compiler.backend.js.ast.JsVars.JsVar; import compiler.backend.js.ast.*;
import com.google.dart.compiler.common.SourceInfo; import org.jetbrains.annotations.Nullable;
import java.util.List; import java.util.List;
@@ -125,7 +125,7 @@ public class AstUtil {
} }
public static JsVars newVar(SourceInfo info, JsName name, JsExpression expr) { public static JsVars newVar(SourceInfo info, JsName name, JsExpression expr) {
JsVar var = new JsVar(name).setSourceRef(info); JsVars.JsVar var = new JsVars.JsVar(name).setSourceRef(info);
var.setInitExpr(expr); var.setInitExpr(expr);
JsVars vars = new JsVars(); JsVars vars = new JsVars();
vars.add(var); vars.add(var);
@@ -133,7 +133,7 @@ public class AstUtil {
} }
public static JsVars newVar(JsName name, JsExpression expr) { public static JsVars newVar(JsName name, JsExpression expr) {
JsVar var = new JsVar(name); JsVars.JsVar var = new JsVars.JsVar(name);
if (expr != null) { if (expr != null) {
var.setInitExpr(expr); var.setInitExpr(expr);
} }
@@ -170,7 +170,7 @@ public class AstUtil {
} }
public static JsFunction newFunction( public static JsFunction newFunction(
JsScope scope, JsName name, List<JsParameter> params, JsBlock body) { JsScope scope, @Nullable JsName name, List<JsParameter> params, JsBlock body) {
JsFunction fn = new JsFunction(scope); JsFunction fn = new JsFunction(scope);
if (name != null) { if (name != null) {
fn.setName(name); fn.setName(name);
@@ -223,7 +223,7 @@ public class AstUtil {
} }
public static JsNameRef nameref(SourceInfo src, JsName qualifier, String prop) { public static JsNameRef nameref(SourceInfo src, JsName qualifier, String prop) {
return AstUtil.nameref(src, qualifier.makeRef().setSourceRef(src), prop); return nameref(src, qualifier.makeRef().setSourceRef(src), prop);
} }
public static JsNameRef nameref(SourceInfo src, JsExpression qualifier, String prop) { public static JsNameRef nameref(SourceInfo src, JsExpression qualifier, String prop) {
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.util; package compiler.util;
import java.io.PrintWriter; import java.io.PrintWriter;
import java.io.StringWriter; import java.io.StringWriter;
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.util; package compiler.util;
/** /**
* Utility to hack around untypable (or yet to be) code. * Utility to hack around untypable (or yet to be) code.
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.util; package compiler.util;
import java.util.*; import java.util.*;
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.util; package compiler.util;
import java.util.Collections; import java.util.Collections;
import java.util.HashMap; import java.util.HashMap;
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.util; package compiler.util;
import java.io.File; import java.io.File;
import java.net.URI; import java.net.URI;
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.util; package compiler.util;
/** /**
* Interface used for printing text output. * Interface used for printing text output.

Some files were not shown because too many files have changed in this diff Show More