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

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

Issue 1383503002: Add Resolution and Parsing interfaces for computeType, ensureResolved and parseNode. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Add TODOs. Created 5 years, 3 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
Index: pkg/compiler/lib/src/universe/universe.dart
diff --git a/pkg/compiler/lib/src/universe/universe.dart b/pkg/compiler/lib/src/universe/universe.dart
index ccb402b878a67c3b4f26c3778d9958b5d1571676..6e572b5e9107e0c62f623b45e50254d4368d634a 100644
--- a/pkg/compiler/lib/src/universe/universe.dart
+++ b/pkg/compiler/lib/src/universe/universe.dart
@@ -6,30 +6,21 @@ library universe;
import 'dart:collection';
-import '../common/names.dart' show
- Identifiers,
- Names,
- Selectors;
+import '../common/resolution.dart' show
+ Resolution;
import '../compiler.dart' show
Compiler;
import '../diagnostics/invariant.dart' show
invariant;
-import '../diagnostics/spannable.dart' show
- SpannableAssertionFailure;
import '../elements/elements.dart';
import '../dart_types.dart';
-import '../tree/tree.dart';
-import '../types/types.dart';
import '../util/util.dart';
import '../world.dart' show
ClassWorld,
World;
-import 'call_structure.dart';
import 'selector.dart' show
Selector;
-import 'function_set.dart';
-import 'side_effects.dart';
class UniverseSelector {
final Selector selector;
@@ -393,7 +384,7 @@ class Universe {
}
DartType registerIsCheck(DartType type, Compiler compiler) {
- type = type.unalias(compiler);
+ type = type.unalias(compiler.resolution);
// Even in checked mode, type annotations for return type and argument
// types do not imply type checks, so there should never be a check
// against the type variable of a typedef.
« no previous file with comments | « pkg/compiler/lib/src/typechecker.dart ('k') | tests/compiler/dart2js/call_site_simple_type_inferer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698