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

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

Issue 781783002: Add an option for incremental resolution of API breaking changes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
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 cd250c902dcef74d673d8805a80e3f1e380e056c..7db8f36fa88d19723c909a2c550c83ce58992084 100644
--- a/pkg/analyzer/lib/src/generated/engine.dart
+++ b/pkg/analyzer/lib/src/generated/engine.dart
@@ -1056,6 +1056,7 @@ class AnalysisContextImpl implements InternalAnalysisContext {
this._options.dart2jsHint = options.dart2jsHint;
this._options.hint = options.hint;
this._options.incremental = options.incremental;
+ this._options.incrementalApi = options.incrementalApi;
this._options.preserveComments = options.preserveComments;
_generateSdkErrors = options.generateSdkErrors;
if (needsRecompute) {
@@ -4936,7 +4937,8 @@ class AnalysisContextImpl implements InternalAnalysisContext {
typeProvider,
unitSource,
librarySource,
- dartEntry);
+ dartEntry,
+ analysisOptions.incrementalApi);
bool success = resolver.resolve(oldUnit, newCode);
if (!success) {
return false;
@@ -6342,6 +6344,12 @@ abstract class AnalysisOptions {
bool get incremental;
/**
+ * A flag indicating whether incremental analysis should be used for API
+ * changes.
+ */
+ bool get incrementalApi;
+
+ /**
* Return `true` if analysis is to parse comments.
*
* @return `true` if analysis is to parse comments
@@ -6432,6 +6440,12 @@ class AnalysisOptionsImpl implements AnalysisOptions {
bool incremental = false;
/**
+ * A flag indicating whether incremental analysis should be used for API
+ * changes.
+ */
+ bool incrementalApi = false;
+
+ /**
* A flag indicating whether analysis is to parse comments.
*/
bool preserveComments = true;
@@ -6459,6 +6473,7 @@ class AnalysisOptionsImpl implements AnalysisOptions {
_generateSdkErrors = options.generateSdkErrors;
hint = options.hint;
incremental = options.incremental;
+ incrementalApi = options.incrementalApi;
preserveComments = options.preserveComments;
}
« no previous file with comments | « pkg/analysis_server/lib/src/analysis_server.dart ('k') | pkg/analyzer/lib/src/generated/incremental_resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698