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

Unified Diff: pkg/analyzer2dart/lib/src/converted_world.dart

Issue 812333002: Fix analyzer2dart end2end. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix latent crash in modely. Created 6 years 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/analyzer2dart/lib/src/closed_world.dart ('k') | pkg/analyzer2dart/lib/src/dart_backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer2dart/lib/src/converted_world.dart
diff --git a/pkg/analyzer2dart/lib/src/converted_world.dart b/pkg/analyzer2dart/lib/src/converted_world.dart
index 65a8c6316272cf293cf427a69da241952fcade7e..f54a7a6e3decdb0f14d12ceccf6d443ff5861500 100644
--- a/pkg/analyzer2dart/lib/src/converted_world.dart
+++ b/pkg/analyzer2dart/lib/src/converted_world.dart
@@ -7,6 +7,7 @@ library analyzer2dart.convertedWorld;
import 'dart:collection';
import 'package:analyzer/analyzer.dart';
+import 'package:compiler/src/dart_types.dart' as dart2js;
import 'package:compiler/src/elements/elements.dart' as dart2js;
import 'package:analyzer/src/generated/element.dart' as analyzer;
import 'package:compiler/src/cps_ir/cps_ir_nodes.dart' as ir;
@@ -23,7 +24,7 @@ abstract class ConvertedWorld {
Iterable<dart2js.ClassElement> get instantiatedClasses;
dart2js.FunctionElement get mainFunction;
ir.Node getIr(dart2js.Element element);
-
+ dart2js.DartTypes get dartTypes;
}
class _ConvertedWorldImpl implements ConvertedWorld {
@@ -42,6 +43,8 @@ class _ConvertedWorldImpl implements ConvertedWorld {
Iterable<dart2js.ClassElement> get instantiatedClasses => [];
ir.Node getIr(dart2js.Element element) => executableElements[element];
+
+ final dart2js.DartTypes dartTypes = new _DartTypes();
}
ConvertedWorld convertWorld(ClosedWorld closedWorld) {
@@ -74,3 +77,14 @@ ConvertedWorld convertWorld(ClosedWorld closedWorld) {
return convertedWorld;
}
+
+// TODO(johnniwinther): Implement [coreTypes] using [TypeProvider].
+class _DartTypes implements dart2js.DartTypes {
+ @override
+ get coreTypes => throw new UnsupportedError("coreTypes");
+
+ @override
+ bool isSubtype(dart2js.DartType t, dart2js.DartType s) {
+ throw new UnsupportedError("isSubtype");
+ }
+}
« no previous file with comments | « pkg/analyzer2dart/lib/src/closed_world.dart ('k') | pkg/analyzer2dart/lib/src/dart_backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698