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

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

Issue 1437893003: Add _embedder.yaml support to analyzer and analysis_server (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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/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 9eaeecc6913eacf3b4c1c4ae4365d0008b82c74d..d25cd31daa9f6ddf5956b411461fc587cd37f604 100644
--- a/pkg/analyzer/lib/src/generated/engine.dart
+++ b/pkg/analyzer/lib/src/generated/engine.dart
@@ -8,6 +8,7 @@ import 'dart:async';
import 'dart:collection';
import 'dart:math' as math;
+import 'package:analyzer/source/embedder.dart';
import 'package:analyzer/src/cancelable_future.dart';
import 'package:analyzer/src/context/cache.dart' as cache;
import 'package:analyzer/src/context/context.dart' as newContext;
@@ -964,6 +965,9 @@ class AnalysisContextImpl implements InternalAnalysisContext {
*/
AnalysisOptionsImpl _options = new AnalysisOptionsImpl();
+ /// The embedder yaml locator for this context.
+ EmbedderYamlLocator _embedderYamlLocator = new EmbedderYamlLocator(null);
+
/**
* A flag indicating whether errors related to implicitly analyzed sources
* should be generated and reported.
@@ -1156,6 +1160,9 @@ class AnalysisContextImpl implements InternalAnalysisContext {
AnalysisOptions get analysisOptions => _options;
@override
+ EmbedderYamlLocator get embedderYamlLocator => _embedderYamlLocator;
+
+ @override
void set analysisOptions(AnalysisOptions options) {
bool needsRecompute = this._options.analyzeFunctionBodiesPredicate !=
options.analyzeFunctionBodiesPredicate ||
@@ -9429,6 +9436,9 @@ abstract class InternalAnalysisContext implements AnalysisContext {
*/
dynamic get privateAnalysisCachePartition;
+ /// Get the [EmbedderYamlLocator] for this context.
+ EmbedderYamlLocator get embedderYamlLocator;
+
/**
* A factory to override how [ResolverVisitor] is created.
*/

Powered by Google App Engine
This is Rietveld 408576698