Finished reorganising project structure.

This commit is contained in:
Pavel Talanov
2011-11-09 16:32:49 +04:00
parent 42a252c6a9
commit c811814037
13 changed files with 310 additions and 1014 deletions
-9
View File
@@ -1,9 +0,0 @@
<component name="libraryTable">
<library name="guava-10.0.1">
<CLASSES>
<root url="jar://$PROJECT_DIR$/lib/guava-10.0.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>
-9
View File
@@ -1,9 +0,0 @@
<component name="libraryTable">
<library name="junit">
<CLASSES>
<root url="jar://$PROJECT_DIR$/lib/junit-4.10.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>
+11
View File
@@ -0,0 +1,11 @@
<component name="libraryTable">
<library name="libs">
<CLASSES>
<root url="jar://$PROJECT_DIR$/translator/lib/js.jar!/" />
<root url="jar://$PROJECT_DIR$/translator/lib/junit-4.10.jar!/" />
<root url="jar://$PROJECT_DIR$/translator/lib/guava-10.0.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>
+292 -986
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -7,6 +7,7 @@
</content>
<orderEntry type="jdk" jdkName="1.7" jdkType="JavaSDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="libs" level="project" />
</component>
</module>
@@ -4,8 +4,6 @@
package com.google.dart.compiler.backend.js.ast;
import org.jetbrains.annotations.Nullable;
import java.util.HashMap;
import java.util.Map;
@@ -158,7 +156,7 @@ public final class JsProgram extends JsNode {
}
@Override
public void traverse(JsVisitor v, @Nullable JsContext ctx) {
public void traverse(JsVisitor v, JsContext ctx) {
if (v.visit(this, ctx)) {
for (JsProgramFragment fragment : fragments) {
v.accept(fragment);
@@ -7,8 +7,6 @@ package com.google.dart.compiler.util;
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;
/**
@@ -170,7 +168,7 @@ public class AstUtil {
}
public static JsFunction newFunction(
JsScope scope, @Nullable JsName name, List<JsParameter> params, JsBlock body) {
JsScope scope, JsName name, List<JsParameter> params, JsBlock body) {
JsFunction fn = new JsFunction(scope);
if (name != null) {
fn.setName(name);
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
@@ -1,9 +1,6 @@
package org.jetbrains.k2js.translate;
import com.google.dart.compiler.backend.js.ast.JsInvocation;
import com.google.dart.compiler.backend.js.ast.JsName;
import com.google.dart.compiler.backend.js.ast.JsObjectLiteral;
import com.google.dart.compiler.backend.js.ast.JsStatement;
import com.google.dart.compiler.backend.js.ast.*;
import com.google.dart.compiler.util.AstUtil;
import org.jetbrains.jet.lang.descriptors.ClassDescriptor;
import org.jetbrains.jet.lang.descriptors.DeclarationDescriptor;
@@ -1,5 +1,6 @@
package org.jetbrains.k2js.translate;
import com.google.dart.compiler.backend.js.ast.*;
import com.google.dart.compiler.util.AstUtil;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.jet.lang.psi.JetDeclaration;
+2
View File
@@ -4,12 +4,14 @@
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="js" />
<orderEntry type="module" module-name="frontend" />
<orderEntry type="module" module-name="frontend.java" />
<orderEntry type="library" name="libs" level="project" />
</component>
</module>