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

Unified Diff: pkg/analyzer2dart/lib/src/closed_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 | « no previous file | pkg/analyzer2dart/lib/src/converted_world.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer2dart/lib/src/closed_world.dart
diff --git a/pkg/analyzer2dart/lib/src/closed_world.dart b/pkg/analyzer2dart/lib/src/closed_world.dart
index fbcdaa47eb671c573cec3322cdb34fc7cfb18276..8f91658f1d98c7ae7a88bfb83872f5a1416db2ea 100644
--- a/pkg/analyzer2dart/lib/src/closed_world.dart
+++ b/pkg/analyzer2dart/lib/src/closed_world.dart
@@ -8,12 +8,16 @@ import 'dart:collection';
import 'package:analyzer/analyzer.dart';
import 'package:analyzer/src/generated/element.dart';
+import 'package:analyzer/src/generated/resolver.dart';
/**
* Container for the elements and AST nodes which have been determined by
* tree shaking to be reachable by the program being compiled.
*/
class ClosedWorld {
+ /// The core types of this world.
+ final TypeProvider typeProvider;
+
/// Returns the main function of this closed world compilation.
final FunctionElement mainFunction;
@@ -49,5 +53,5 @@ class ClosedWorld {
Map<ClassElement, ClassDeclaration> instantiatedClasses =
new HashMap<ClassElement, ClassDeclaration>();
- ClosedWorld(this.mainFunction);
+ ClosedWorld(this.typeProvider, this.mainFunction);
}
« no previous file with comments | « no previous file | pkg/analyzer2dart/lib/src/converted_world.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698