split code into modules and lots of other code changes

This commit is contained in:
Pavel Talanov
2011-11-09 16:11:13 +04:00
parent 733d4f5168
commit 42a252c6a9
855 changed files with 1188 additions and 7784 deletions
-1
View File
@@ -7,7 +7,6 @@
<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$/translator/translator.iml" filepath="$PROJECT_DIR$/translator/translator.iml" />
</modules>
</component>
+1015 -422
View File
File diff suppressed because it is too large Load Diff
@@ -2,7 +2,7 @@
// 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.
package compiler;
package com.google.dart.compiler;
/**
* 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
// BSD-style license that can be found in the LICENSE file.
package compiler;
package com.google.dart.compiler;
import java.io.IOException;
import java.io.Reader;
@@ -24,10 +24,10 @@
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package compiler.backend.js;
package com.google.dart.compiler.backend.js;
import compiler.InternalCompilerException;
import compiler.backend.js.ast.*;
import com.google.dart.compiler.InternalCompilerException;
import com.google.dart.compiler.backend.js.ast.*;
import java.util.ArrayList;
import java.util.List;
@@ -2,9 +2,9 @@
// 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.
package compiler.backend.js;
package com.google.dart.compiler.backend.js;
import compiler.backend.js.ast.*;
import com.google.dart.compiler.backend.js.ast.*;
/**
* 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
// BSD-style license that can be found in the LICENSE file.
package compiler.backend.js;
package com.google.dart.compiler.backend.js;
import compiler.backend.js.ast.*;
import com.google.dart.compiler.backend.js.ast.*;
/**
* 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
// BSD-style license that can be found in the LICENSE file.
package compiler.backend.js;
package com.google.dart.compiler.backend.js;
import compiler.backend.js.ast.JsProgram;
import com.google.dart.compiler.backend.js.ast.JsProgram;
/**
* 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
// BSD-style license that can be found in the LICENSE file.
package compiler.backend.js;
package com.google.dart.compiler.backend.js;
import compiler.backend.js.ast.*;
import com.google.dart.compiler.backend.js.ast.*;
/**
* 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
// BSD-style license that can be found in the LICENSE file.
package compiler.backend.js;
package com.google.dart.compiler.backend.js;
/**
* Indicates inability to parse JavaScript source.
@@ -2,10 +2,9 @@
// 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.
package compiler.backend.js;
package com.google.dart.compiler.backend.js;
import compiler.backend.js.ast.JsVars.JsVar;
import compiler.backend.js.ast.*;
import com.google.dart.compiler.backend.js.ast.*;
/**
* Precedence indices from "JavaScript - The Definitive Guide" 4th Edition (page
@@ -259,7 +258,7 @@ class JsPrecedenceVisitor extends JsVisitor {
}
@Override
public boolean visit(JsVar x, JsContext ctx) {
public boolean visit(JsVars.JsVar x, JsContext ctx) {
throw new RuntimeException("Only expressions have precedence.");
}
@@ -2,12 +2,12 @@
// 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.
package compiler.backend.js;
package com.google.dart.compiler.backend.js;
import compiler.backend.js.ast.JsName;
import compiler.backend.js.ast.JsProgram;
import compiler.backend.js.ast.JsRootScope;
import compiler.backend.js.ast.JsScope;
import com.google.dart.compiler.backend.js.ast.JsName;
import com.google.dart.compiler.backend.js.ast.JsProgram;
import com.google.dart.compiler.backend.js.ast.JsRootScope;
import com.google.dart.compiler.backend.js.ast.JsScope;
import java.util.*;
@@ -2,9 +2,9 @@
// 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.
package compiler.backend.js;
package com.google.dart.compiler.backend.js;
import compiler.backend.js.ast.*;
import com.google.dart.compiler.backend.js.ast.*;
/**
* 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
// BSD-style license that can be found in the LICENSE file.
package compiler.backend.js;
package com.google.dart.compiler.backend.js;
import java.util.HashSet;
import java.util.Set;
@@ -2,13 +2,13 @@
// 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.
package compiler.backend.js;
package com.google.dart.compiler.backend.js;
import compiler.backend.js.ast.JsContext;
import compiler.backend.js.ast.JsProgramFragment;
import compiler.util.TextOutput;
import compiler.backend.js.ast.JsBlock;
import compiler.backend.js.ast.JsProgram;
import com.google.dart.compiler.util.TextOutput;
import com.google.dart.compiler.backend.js.ast.JsContext;
import com.google.dart.compiler.backend.js.ast.JsProgramFragment;
import com.google.dart.compiler.backend.js.ast.JsBlock;
import com.google.dart.compiler.backend.js.ast.JsProgram;
/**
* Generates JavaScript source from an AST.
@@ -2,10 +2,10 @@
// 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.
package compiler.backend.js;
package com.google.dart.compiler.backend.js;
import compiler.util.TextOutput;
import compiler.backend.js.ast.*;
import com.google.dart.compiler.backend.js.ast.*;
import com.google.dart.compiler.util.TextOutput;
import java.util.*;
import java.util.regex.Pattern;
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js;
package com.google.dart.compiler.backend.js;
/**
* 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
// BSD-style license that can be found in the LICENSE file.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* 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
// BSD-style license that can be found in the LICENSE file.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
import java.util.List;
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* 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
// BSD-style license that can be found in the LICENSE file.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* 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
// BSD-style license that can be found in the LICENSE file.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* 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
// BSD-style license that can be found in the LICENSE file.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
import java.util.ArrayList;
import java.util.List;
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* Represents a JavaScript binary operation.
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* 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
// BSD-style license that can be found in the LICENSE file.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
import java.util.ArrayList;
import java.util.List;
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* Represents a JavaScript literal boolean expression.
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* Represents the JavaScript break statement.
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* Represents the JavaScript case statement.
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* Represents a JavaScript catch clause.
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
import java.util.Iterator;
import java.util.NoSuchElementException;
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* Represents a JavaScript conditional expression.
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* 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
// BSD-style license that can be found in the LICENSE file.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* Represents the JavaScript continue statement.
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* Represents a JavaScript debugger statement.
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* 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
// BSD-style license that can be found in the LICENSE file.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* Represents a JavaScript do..while statement.
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* Represents an empty statement in JavaScript.
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* Represents a JavaScript expression statement.
@@ -2,9 +2,9 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
import compiler.common.SourceInfo;
import com.google.dart.compiler.common.SourceInfo;
/**
* 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
// BSD-style license that can be found in the LICENSE file.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
import compiler.common.SourceInfo;
import com.google.dart.compiler.common.SourceInfo;
/**
* 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
// BSD-style license that can be found in the LICENSE file.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* Represents a JavaScript for..in statement.
@@ -2,9 +2,9 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
import compiler.common.SourceInfo;
import com.google.dart.compiler.common.SourceInfo;
import java.util.ArrayList;
import java.util.List;
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* 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
// BSD-style license that can be found in the LICENSE file.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* Represents a JavaScript if statement.
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
import java.util.ArrayList;
import java.util.List;
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* Represents a JavaScript label statement.
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* A JavaScript string literal expression.
@@ -2,9 +2,9 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
import compiler.util.Hack;
import com.google.dart.compiler.util.Hack;
import java.util.List;
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
import java.io.Serializable;
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* 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
// BSD-style license that can be found in the LICENSE file.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
import java.util.ArrayList;
import java.util.List;
@@ -1,13 +1,13 @@
// 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
// BSD-style license that can be found in the LICENSE file.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
import compiler.backend.js.JsSourceGenerationVisitor;
import compiler.backend.js.JsToStringGenerationVisitor;
import compiler.common.AbstractNode;
import compiler.common.SourceInfo;
import compiler.util.DefaultTextOutput;
import com.google.dart.compiler.backend.js.JsSourceGenerationVisitor;
import com.google.dart.compiler.backend.js.JsToStringGenerationVisitor;
import com.google.dart.compiler.common.AbstractNode;
import com.google.dart.compiler.common.SourceInfo;
import com.google.dart.compiler.util.DefaultTextOutput;
/**
* 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
// BSD-style license that can be found in the LICENSE file.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* A JavaScript null literal.
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* Represents a JavaScript literal decimal expression.
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
import java.util.ArrayList;
import java.util.List;
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* A JavaScript operator.
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* A JavaScript parameter.
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* A JavaScript postfix operation.
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* A JavaScript prefix operation.
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
import org.jetbrains.annotations.Nullable;
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* 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
// BSD-style license that can be found in the LICENSE file.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* 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
// BSD-style license that can be found in the LICENSE file.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* A JavaScript regular expression.
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* A JavaScript return statement.
@@ -2,9 +2,9 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
import compiler.backend.js.JsReservedIdentifiers;
import com.google.dart.compiler.backend.js.JsReservedIdentifiers;
/**
* 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
// BSD-style license that can be found in the LICENSE file.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
import compiler.util.Lists;
import compiler.util.Maps;
import com.google.dart.compiler.util.Lists;
import com.google.dart.compiler.util.Maps;
import java.io.Serializable;
import java.util.Collections;
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* 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
// BSD-style license that can be found in the LICENSE file.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* A JavaScript string literal expression.
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
import java.util.ArrayList;
import java.util.List;
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
import java.util.ArrayList;
import java.util.List;
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* A JavaScript <code>this</code> reference.
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* A JavaScript <code>throw</code> statement.
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
import java.util.ArrayList;
import java.util.List;
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* A JavaScript prefix or postfix operation.
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* A JavaScript unary operator.
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* A JavaScript string literal expression.
@@ -2,9 +2,9 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
import compiler.common.SourceInfo;
import com.google.dart.compiler.common.SourceInfo;
import java.util.ArrayList;
import java.util.Iterator;
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* Abstracts the idea that a class can be traversed.
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
import java.util.List;
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
/**
* A JavaScript <code>while</code> statement.
@@ -2,7 +2,7 @@
// 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.
package compiler.backend.js.ast;
package com.google.dart.compiler.backend.js.ast;
public enum NodeKind {
ARRAY_ACCESS,
@@ -2,9 +2,9 @@
// 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.
package compiler.common;
package com.google.dart.compiler.common;
import compiler.Source;
import com.google.dart.compiler.Source;
/**
* 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
// BSD-style license that can be found in the LICENSE file.
package compiler.common;
package com.google.dart.compiler.common;
import compiler.Source;
import com.google.dart.compiler.Source;
/**
* 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
// BSD-style license that can be found in the LICENSE file.
package compiler.common;
package com.google.dart.compiler.common;
import java.io.*;
import java.nio.charset.Charset;
@@ -2,7 +2,7 @@
// 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.
package compiler.common;
package com.google.dart.compiler.common;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.collect.MapMaker;
@@ -2,8 +2,8 @@
// 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.
package compiler.common;
import compiler.Source;
package com.google.dart.compiler.common;
import com.google.dart.compiler.Source;
import java.io.Serializable;
@@ -39,7 +39,7 @@ public interface SourceInfo extends Serializable {
* @return the 0-based character index, or <code>-1</code>
* if no source startPosition information is recorded for this node
* @see #getSourceLength()
* @see HasSourceInfo#setSourceLocation(Source, int, int, int, int)
* @see HasSourceInfo#setSourceLocation(com.google.dart.compiler.Source, int, int, int, int)
*/
int getSourceStart();
@@ -52,7 +52,7 @@ public interface SourceInfo extends Serializable {
* @return a (possibly 0) length, or <code>0</code>
* if no source source position information is recorded for this node
* @see #getSourceStart()
* @see HasSourceInfo#setSourceLocation(Source, int, int, int, int)
* @see HasSourceInfo#setSourceLocation(com.google.dart.compiler.Source, int, int, int, int)
*/
int getSourceLength();
}
@@ -2,7 +2,7 @@
// 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.
package compiler.util;
package com.google.dart.compiler.util;
import java.io.PrintWriter;
import java.util.Arrays;
@@ -2,11 +2,11 @@
// 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.
package compiler.util;
package com.google.dart.compiler.util;
import compiler.InternalCompilerException;
import compiler.common.SourceInfo;
import compiler.backend.js.ast.*;
import com.google.dart.compiler.InternalCompilerException;
import com.google.dart.compiler.backend.js.ast.*;
import com.google.dart.compiler.common.SourceInfo;
import org.jetbrains.annotations.Nullable;
import java.util.List;
@@ -2,7 +2,7 @@
// 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.
package compiler.util;
package com.google.dart.compiler.util;
import java.io.PrintWriter;
import java.io.StringWriter;
@@ -2,7 +2,7 @@
// 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.
package compiler.util;
package com.google.dart.compiler.util;
/**
* 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
// BSD-style license that can be found in the LICENSE file.
package compiler.util;
package com.google.dart.compiler.util;
import java.util.*;
@@ -2,7 +2,7 @@
// 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.
package compiler.util;
package com.google.dart.compiler.util;
import java.util.Collections;
import java.util.HashMap;
@@ -2,7 +2,7 @@
// 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.
package compiler.util;
package com.google.dart.compiler.util;
import java.io.File;
import java.net.URI;
@@ -2,7 +2,7 @@
// 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.
package compiler.util;
package com.google.dart.compiler.util;
/**
* Interface used for printing text output.

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