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

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..17a62134b38715ad198607955cd60dc442508cf6 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;
@@ -330,6 +331,9 @@ abstract class AnalysisContext {
*/
void set analysisOptions(AnalysisOptions options);
+ /// Return the [EmbedderYamlLocator] for with this context.
+ EmbedderYamlLocator get embedderYamlLocator;
pquitslund 2015/11/12 17:43:09 I'll defer to Brian as to whether we need this in
Brian Wilkerson 2015/11/13 19:54:18 So to be clear, AnalysisContext is the public inte
Cutch 2015/11/14 00:15:17 Moved to InternalAnalysisContext.
+
/**
* Set the order in which sources will be analyzed by [performAnalysisTask] to
* match the order of the sources in the given list of [sources]. If a source
@@ -964,6 +968,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 +1163,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 ||

Powered by Google App Engine
This is Rietveld 408576698