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

Unified Diff: pkg/analyzer/lib/src/fasta/analyzer_loader.dart

Issue 2904203003: Don't recreate CoreTypes in transformers. Pass it in. (Closed)
Patch Set: Create CoreTypes in AnalyzerLoader. Created 3 years, 7 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 | « no previous file | pkg/front_end/lib/src/fasta/fasta.dart » ('j') | pkg/front_end/lib/src/fasta/fasta.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/fasta/analyzer_loader.dart
diff --git a/pkg/analyzer/lib/src/fasta/analyzer_loader.dart b/pkg/analyzer/lib/src/fasta/analyzer_loader.dart
index 49f754364bb93e9fc3792a3a16c6cb146ec79970..0fee12c232234e5d18a54314e8c4466a30a4b862 100644
--- a/pkg/analyzer/lib/src/fasta/analyzer_loader.dart
+++ b/pkg/analyzer/lib/src/fasta/analyzer_loader.dart
@@ -22,6 +22,8 @@ import 'package:analyzer/src/fasta/element_store.dart' show ElementStore;
import 'analyzer_diet_listener.dart' show AnalyzerDietListener;
+import 'package:kernel/core_types.dart' show CoreTypes;
+
class AnalyzerLoader<L> extends SourceLoader<L> {
ElementStore elementStore;
@@ -32,6 +34,7 @@ class AnalyzerLoader<L> extends SourceLoader<L> {
void computeHierarchy(Program program) {
elementStore = new ElementStore(coreLibrary, builders);
ticker.logMs("Built analyzer element model.");
+ coreTypes = new CoreTypes(program);
ahe 2017/05/29 14:08:46 Add: ticker.logMs("Computed core types");
scheglov 2017/05/30 00:06:10 I will, but I'm curious what the purpose of this l
ahe 2017/05/30 09:35:14 The only way to tell if no time is being spent com
scheglov 2017/05/30 16:10:21 I will not argue with this, you're right Observato
}
@override
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/fasta.dart » ('j') | pkg/front_end/lib/src/fasta/fasta.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698