Replace symbols preventing compilation on build server.
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@ import static com.google.dart.compiler.backend.js.ast.JsVars.JsVar;
|
||||
import static org.jetbrains.k2js.translate.utils.BindingUtils.getFunctionDescriptor;
|
||||
import static org.jetbrains.k2js.translate.utils.FunctionBodyTranslator.translateFunctionBody;
|
||||
|
||||
// todo easy incremental compiler implementation — generated functions should be inside corresponding class/namespace definition
|
||||
// todo easy incremental compiler implementation - generated functions should be inside corresponding class/namespace definition
|
||||
public class LiteralFunctionTranslator {
|
||||
private final List<JsPropertyInitializer> properties = new ArrayList<JsPropertyInitializer>();
|
||||
private final LabelGenerator labelGenerator = new LabelGenerator('f');
|
||||
|
||||
+2
-2
@@ -83,7 +83,7 @@ class CaptureClosureVisitor extends JetTreeVisitor<ClosureContext> {
|
||||
return false;
|
||||
}
|
||||
|
||||
// is not working, try test life — init is captured, but this method returns false
|
||||
// is not working, try test life - init is captured, but this method returns false
|
||||
//if (bindingContext.get(BindingContext.CAPTURED_IN_CLOSURE, descriptor) != Boolean.TRUE) {
|
||||
// return false;
|
||||
//}
|
||||
@@ -109,7 +109,7 @@ class CaptureClosureVisitor extends JetTreeVisitor<ClosureContext> {
|
||||
variableDeclaration.getNode().getElementType().equals(JetNodeTypes.LOOP_PARAMETER);
|
||||
}
|
||||
|
||||
// differs from DescriptorUtils — fails if reach NamespaceDescriptor
|
||||
// differs from DescriptorUtils - fails if reach NamespaceDescriptor
|
||||
public static boolean isAncestor(@NotNull DeclarationDescriptor ancestor,
|
||||
@NotNull DeclarationDescriptor declarationDescriptor) {
|
||||
DeclarationDescriptor descriptor = declarationDescriptor.getContainingDeclaration();
|
||||
|
||||
Reference in New Issue
Block a user