| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine; | 8 library engine; |
| 9 | 9 |
| 10 import "dart:math" as math; | 10 import "dart:math" as math; |
| (...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1049 } | 1049 } |
| 1050 this._options.analyzeAngular = options.analyzeAngular; | 1050 this._options.analyzeAngular = options.analyzeAngular; |
| 1051 this._options.analyzeFunctionBodies = options.analyzeFunctionBodies; | 1051 this._options.analyzeFunctionBodies = options.analyzeFunctionBodies; |
| 1052 this._options.generateSdkErrors = options.generateSdkErrors; | 1052 this._options.generateSdkErrors = options.generateSdkErrors; |
| 1053 this._options.enableAsync = options.enableAsync; | 1053 this._options.enableAsync = options.enableAsync; |
| 1054 this._options.enableDeferredLoading = options.enableDeferredLoading; | 1054 this._options.enableDeferredLoading = options.enableDeferredLoading; |
| 1055 this._options.enableEnum = options.enableEnum; | 1055 this._options.enableEnum = options.enableEnum; |
| 1056 this._options.dart2jsHint = options.dart2jsHint; | 1056 this._options.dart2jsHint = options.dart2jsHint; |
| 1057 this._options.hint = options.hint; | 1057 this._options.hint = options.hint; |
| 1058 this._options.incremental = options.incremental; | 1058 this._options.incremental = options.incremental; |
| 1059 this._options.incrementalApi = options.incrementalApi; |
| 1059 this._options.preserveComments = options.preserveComments; | 1060 this._options.preserveComments = options.preserveComments; |
| 1060 _generateSdkErrors = options.generateSdkErrors; | 1061 _generateSdkErrors = options.generateSdkErrors; |
| 1061 if (needsRecompute) { | 1062 if (needsRecompute) { |
| 1062 _invalidateAllLocalResolutionInformation(false); | 1063 _invalidateAllLocalResolutionInformation(false); |
| 1063 } | 1064 } |
| 1064 } | 1065 } |
| 1065 | 1066 |
| 1066 @override | 1067 @override |
| 1067 void set analysisPriorityOrder(List<Source> sources) { | 1068 void set analysisPriorityOrder(List<Source> sources) { |
| 1068 if (sources == null || sources.isEmpty) { | 1069 if (sources == null || sources.isEmpty) { |
| (...skipping 3860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4929 return false; | 4930 return false; |
| 4930 } | 4931 } |
| 4931 // do resolution | 4932 // do resolution |
| 4932 Source librarySource = librarySources[0]; | 4933 Source librarySource = librarySources[0]; |
| 4933 CompilationUnit oldUnit = | 4934 CompilationUnit oldUnit = |
| 4934 getResolvedCompilationUnit2(unitSource, librarySource); | 4935 getResolvedCompilationUnit2(unitSource, librarySource); |
| 4935 PoorMansIncrementalResolver resolver = new PoorMansIncrementalResolver( | 4936 PoorMansIncrementalResolver resolver = new PoorMansIncrementalResolver( |
| 4936 typeProvider, | 4937 typeProvider, |
| 4937 unitSource, | 4938 unitSource, |
| 4938 librarySource, | 4939 librarySource, |
| 4939 dartEntry); | 4940 dartEntry, |
| 4941 analysisOptions.incrementalApi); |
| 4940 bool success = resolver.resolve(oldUnit, newCode); | 4942 bool success = resolver.resolve(oldUnit, newCode); |
| 4941 if (!success) { | 4943 if (!success) { |
| 4942 return false; | 4944 return false; |
| 4943 } | 4945 } |
| 4944 // prepare notice | 4946 // prepare notice |
| 4945 ChangeNoticeImpl notice = _getNotice(unitSource); | 4947 ChangeNoticeImpl notice = _getNotice(unitSource); |
| 4946 notice.compilationUnit = oldUnit; | 4948 notice.compilationUnit = oldUnit; |
| 4947 // TODO(scheglov) apply updated errors | 4949 // TODO(scheglov) apply updated errors |
| 4948 { | 4950 { |
| 4949 LineInfo lineInfo = getLineInfo(unitSource); | 4951 LineInfo lineInfo = getLineInfo(unitSource); |
| (...skipping 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6335 bool get hint; | 6337 bool get hint; |
| 6336 | 6338 |
| 6337 /** | 6339 /** |
| 6338 * Return `true` if incremental analysis should be used. | 6340 * Return `true` if incremental analysis should be used. |
| 6339 * | 6341 * |
| 6340 * @return `true` if incremental analysis should be used | 6342 * @return `true` if incremental analysis should be used |
| 6341 */ | 6343 */ |
| 6342 bool get incremental; | 6344 bool get incremental; |
| 6343 | 6345 |
| 6344 /** | 6346 /** |
| 6347 * A flag indicating whether incremental analysis should be used for API |
| 6348 * changes. |
| 6349 */ |
| 6350 bool get incrementalApi; |
| 6351 |
| 6352 /** |
| 6345 * Return `true` if analysis is to parse comments. | 6353 * Return `true` if analysis is to parse comments. |
| 6346 * | 6354 * |
| 6347 * @return `true` if analysis is to parse comments | 6355 * @return `true` if analysis is to parse comments |
| 6348 */ | 6356 */ |
| 6349 bool get preserveComments; | 6357 bool get preserveComments; |
| 6350 } | 6358 } |
| 6351 | 6359 |
| 6352 /** | 6360 /** |
| 6353 * Instances of the class `AnalysisOptions` represent a set of analysis options
used to | 6361 * Instances of the class `AnalysisOptions` represent a set of analysis options
used to |
| 6354 * control the behavior of an analysis context. | 6362 * control the behavior of an analysis context. |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6425 * information and pub best practices). | 6433 * information and pub best practices). |
| 6426 */ | 6434 */ |
| 6427 bool hint = true; | 6435 bool hint = true; |
| 6428 | 6436 |
| 6429 /** | 6437 /** |
| 6430 * A flag indicating whether incremental analysis should be used. | 6438 * A flag indicating whether incremental analysis should be used. |
| 6431 */ | 6439 */ |
| 6432 bool incremental = false; | 6440 bool incremental = false; |
| 6433 | 6441 |
| 6434 /** | 6442 /** |
| 6443 * A flag indicating whether incremental analysis should be used for API |
| 6444 * changes. |
| 6445 */ |
| 6446 bool incrementalApi = false; |
| 6447 |
| 6448 /** |
| 6435 * A flag indicating whether analysis is to parse comments. | 6449 * A flag indicating whether analysis is to parse comments. |
| 6436 */ | 6450 */ |
| 6437 bool preserveComments = true; | 6451 bool preserveComments = true; |
| 6438 | 6452 |
| 6439 /** | 6453 /** |
| 6440 * Initialize a newly created set of analysis options to have their default va
lues. | 6454 * Initialize a newly created set of analysis options to have their default va
lues. |
| 6441 */ | 6455 */ |
| 6442 AnalysisOptionsImpl(); | 6456 AnalysisOptionsImpl(); |
| 6443 | 6457 |
| 6444 /** | 6458 /** |
| 6445 * Initialize a newly created set of analysis options to have the same values
as those in the | 6459 * Initialize a newly created set of analysis options to have the same values
as those in the |
| 6446 * given set of analysis options. | 6460 * given set of analysis options. |
| 6447 * | 6461 * |
| 6448 * @param options the analysis options whose values are being copied | 6462 * @param options the analysis options whose values are being copied |
| 6449 */ | 6463 */ |
| 6450 AnalysisOptionsImpl.con1(AnalysisOptions options) { | 6464 AnalysisOptionsImpl.con1(AnalysisOptions options) { |
| 6451 analyzeAngular = options.analyzeAngular; | 6465 analyzeAngular = options.analyzeAngular; |
| 6452 analyzeFunctionBodies = options.analyzeFunctionBodies; | 6466 analyzeFunctionBodies = options.analyzeFunctionBodies; |
| 6453 analyzePolymer = options.analyzePolymer; | 6467 analyzePolymer = options.analyzePolymer; |
| 6454 cacheSize = options.cacheSize; | 6468 cacheSize = options.cacheSize; |
| 6455 dart2jsHint = options.dart2jsHint; | 6469 dart2jsHint = options.dart2jsHint; |
| 6456 enableAsync = options.enableAsync; | 6470 enableAsync = options.enableAsync; |
| 6457 enableDeferredLoading = options.enableDeferredLoading; | 6471 enableDeferredLoading = options.enableDeferredLoading; |
| 6458 enableEnum = options.enableEnum; | 6472 enableEnum = options.enableEnum; |
| 6459 _generateSdkErrors = options.generateSdkErrors; | 6473 _generateSdkErrors = options.generateSdkErrors; |
| 6460 hint = options.hint; | 6474 hint = options.hint; |
| 6461 incremental = options.incremental; | 6475 incremental = options.incremental; |
| 6476 incrementalApi = options.incrementalApi; |
| 6462 preserveComments = options.preserveComments; | 6477 preserveComments = options.preserveComments; |
| 6463 } | 6478 } |
| 6464 | 6479 |
| 6465 @override | 6480 @override |
| 6466 bool get generateSdkErrors => _generateSdkErrors; | 6481 bool get generateSdkErrors => _generateSdkErrors; |
| 6467 | 6482 |
| 6468 /** | 6483 /** |
| 6469 * Set whether errors, warnings and hints should be generated for sources in t
he SDK to match the | 6484 * Set whether errors, warnings and hints should be generated for sources in t
he SDK to match the |
| 6470 * given value. | 6485 * given value. |
| 6471 * | 6486 * |
| (...skipping 8444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14916 | 14931 |
| 14917 @override | 14932 @override |
| 14918 Object visitPolymerTagDartElement(PolymerTagDartElement element) { | 14933 Object visitPolymerTagDartElement(PolymerTagDartElement element) { |
| 14919 if (element.name == PolymerHtmlUnitBuilder_this._elementName) { | 14934 if (element.name == PolymerHtmlUnitBuilder_this._elementName) { |
| 14920 throw new PolymerHtmlUnitBuilder_FoundTagDartElementError( | 14935 throw new PolymerHtmlUnitBuilder_FoundTagDartElementError( |
| 14921 element as PolymerTagDartElementImpl); | 14936 element as PolymerTagDartElementImpl); |
| 14922 } | 14937 } |
| 14923 return null; | 14938 return null; |
| 14924 } | 14939 } |
| 14925 } | 14940 } |
| OLD | NEW |