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

Unified Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 1119983004: Add an option to enable the new task model (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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/analysis_server/lib/src/server/driver.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/engine.dart
diff --git a/pkg/analyzer/lib/src/generated/engine.dart b/pkg/analyzer/lib/src/generated/engine.dart
index 50b8bca742861815cbf1125130b7bf6da08e7c00..649eb55f5f25cf7e6c5f4ac7958ca7de5c8bffd2 100644
--- a/pkg/analyzer/lib/src/generated/engine.dart
+++ b/pkg/analyzer/lib/src/generated/engine.dart
@@ -13,7 +13,7 @@ import 'dart:collection';
import 'package:analyzer/src/cancelable_future.dart';
import 'package:analyzer/src/context/cache.dart' as cache;
-import 'package:analyzer/src/context/context.dart' as cache;
+import 'package:analyzer/src/context/context.dart' as newContext;
import 'package:analyzer/src/generated/incremental_resolution_validator.dart';
import 'package:analyzer/src/plugin/engine_plugin.dart';
import 'package:analyzer/src/services/lint.dart';
@@ -5766,8 +5766,8 @@ class AnalysisEngine {
/**
* The partition manager being used to manage the shared partitions.
*/
- final cache.PartitionManager partitionManager_new =
- new cache.PartitionManager();
+ final newContext.PartitionManager partitionManager_new =
+ new newContext.PartitionManager();
/**
* A flag indicating whether the (new) task model should be used to perform
@@ -5837,6 +5837,9 @@ class AnalysisEngine {
* Create and return a new context in which analysis can be performed.
*/
AnalysisContext createAnalysisContext() {
+ if (useTaskModel) {
+ return new newContext.AnalysisContextImpl();
+ }
return new AnalysisContextImpl();
}
« no previous file with comments | « pkg/analysis_server/lib/src/server/driver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698