Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(597)

Unified Diff: pkg/compiler/lib/src/world.dart

Issue 1284673003: Move dart2jslib parts into separate libraries. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix try. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/use_unused_api.dart ('k') | pkg/dart2js_incremental/lib/library_updater.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/world.dart
diff --git a/pkg/compiler/lib/src/world.dart b/pkg/compiler/lib/src/world.dart
index 68d0f4d1c39d8845d24cb4f6f598a61ee8d7777d..20d0fd2f46d87b7841c4d846fec31fe3d62e6175 100644
--- a/pkg/compiler/lib/src/world.dart
+++ b/pkg/compiler/lib/src/world.dart
@@ -2,7 +2,32 @@
// 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.
-part of dart2js;
+library dart2js.world;
+
+import 'closure.dart' show
+ SynthesizedCallMethodElementX;
+import 'dart2jslib.dart' show
+ invariant,
+ Backend,
+ Compiler,
+ Registry;
+import 'dart_types.dart';
+import 'elements/elements.dart' show
+ ClassElement,
+ Element,
+ FunctionElement,
+ MixinApplicationElement,
+ TypedefElement,
+ VariableElement;
+import 'ordered_typeset.dart';
+import 'types/types.dart' as ti;
+import 'universe/universe.dart' show
+ FunctionSet,
+ Selector,
+ SideEffects;
+import 'universe/class_set.dart';
+import 'util/util.dart' show
+ Link;
abstract class ClassWorld {
// TODO(johnniwinther): Refine this into a `BackendClasses` interface.
@@ -551,7 +576,7 @@ class World implements ClassWorld {
// expressions. In such a case, we have to look at the original
// function expressions's element.
// TODO(herhut): Generate classes for function expressions earlier.
- if (element is closureMapping.SynthesizedCallMethodElementX) {
+ if (element is SynthesizedCallMethodElementX) {
return getMightBePassedToApply(element.expression);
}
return functionsThatMightBePassedToApply.contains(element);
« no previous file with comments | « pkg/compiler/lib/src/use_unused_api.dart ('k') | pkg/dart2js_incremental/lib/library_updater.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698