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

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

Issue 1278503004: Revert "Move dart2jslib parts into separate libraries." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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') | tests/compiler/dart2js/analyze_dart2js_test.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 20d0fd2f46d87b7841c4d846fec31fe3d62e6175..68d0f4d1c39d8845d24cb4f6f598a61ee8d7777d 100644
--- a/pkg/compiler/lib/src/world.dart
+++ b/pkg/compiler/lib/src/world.dart
@@ -2,32 +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.
-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;
+part of dart2js;
abstract class ClassWorld {
// TODO(johnniwinther): Refine this into a `BackendClasses` interface.
@@ -576,7 +551,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 SynthesizedCallMethodElementX) {
+ if (element is closureMapping.SynthesizedCallMethodElementX) {
return getMightBePassedToApply(element.expression);
}
return functionsThatMightBePassedToApply.contains(element);
« no previous file with comments | « pkg/compiler/lib/src/use_unused_api.dart ('k') | tests/compiler/dart2js/analyze_dart2js_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698