| 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.incrementalLog = options.incrementalLog; |
| 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.incrementalLog); |
| 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 * Return the log incremental logger specification. |
| 6348 */ |
| 6349 String get incrementalLog; |
| 6350 |
| 6351 /** |
| 6345 * Return `true` if analysis is to parse comments. | 6352 * Return `true` if analysis is to parse comments. |
| 6346 * | 6353 * |
| 6347 * @return `true` if analysis is to parse comments | 6354 * @return `true` if analysis is to parse comments |
| 6348 */ | 6355 */ |
| 6349 bool get preserveComments; | 6356 bool get preserveComments; |
| 6350 } | 6357 } |
| 6351 | 6358 |
| 6352 /** | 6359 /** |
| 6353 * Instances of the class `AnalysisOptions` represent a set of analysis options
used to | 6360 * Instances of the class `AnalysisOptions` represent a set of analysis options
used to |
| 6354 * control the behavior of an analysis context. | 6361 * control the behavior of an analysis context. |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6424 * A flag indicating whether analysis is to generate hint results (e.g. type i
nference based | 6431 * A flag indicating whether analysis is to generate hint results (e.g. type i
nference based |
| 6425 * information and pub best practices). | 6432 * information and pub best practices). |
| 6426 */ | 6433 */ |
| 6427 bool hint = true; | 6434 bool hint = true; |
| 6428 | 6435 |
| 6429 /** | 6436 /** |
| 6430 * A flag indicating whether incremental analysis should be used. | 6437 * A flag indicating whether incremental analysis should be used. |
| 6431 */ | 6438 */ |
| 6432 bool incremental = false; | 6439 bool incremental = false; |
| 6433 | 6440 |
| 6441 String incrementalLog = null; |
| 6442 |
| 6434 /** | 6443 /** |
| 6435 * A flag indicating whether analysis is to parse comments. | 6444 * A flag indicating whether analysis is to parse comments. |
| 6436 */ | 6445 */ |
| 6437 bool preserveComments = true; | 6446 bool preserveComments = true; |
| 6438 | 6447 |
| 6439 /** | 6448 /** |
| 6440 * Initialize a newly created set of analysis options to have their default va
lues. | 6449 * Initialize a newly created set of analysis options to have their default va
lues. |
| 6441 */ | 6450 */ |
| 6442 AnalysisOptionsImpl(); | 6451 AnalysisOptionsImpl(); |
| 6443 | 6452 |
| 6444 /** | 6453 /** |
| 6445 * Initialize a newly created set of analysis options to have the same values
as those in the | 6454 * Initialize a newly created set of analysis options to have the same values
as those in the |
| 6446 * given set of analysis options. | 6455 * given set of analysis options. |
| 6447 * | 6456 * |
| 6448 * @param options the analysis options whose values are being copied | 6457 * @param options the analysis options whose values are being copied |
| 6449 */ | 6458 */ |
| 6450 AnalysisOptionsImpl.con1(AnalysisOptions options) { | 6459 AnalysisOptionsImpl.con1(AnalysisOptions options) { |
| 6451 analyzeAngular = options.analyzeAngular; | 6460 analyzeAngular = options.analyzeAngular; |
| 6452 analyzeFunctionBodies = options.analyzeFunctionBodies; | 6461 analyzeFunctionBodies = options.analyzeFunctionBodies; |
| 6453 analyzePolymer = options.analyzePolymer; | 6462 analyzePolymer = options.analyzePolymer; |
| 6454 cacheSize = options.cacheSize; | 6463 cacheSize = options.cacheSize; |
| 6455 dart2jsHint = options.dart2jsHint; | 6464 dart2jsHint = options.dart2jsHint; |
| 6456 enableAsync = options.enableAsync; | 6465 enableAsync = options.enableAsync; |
| 6457 enableDeferredLoading = options.enableDeferredLoading; | 6466 enableDeferredLoading = options.enableDeferredLoading; |
| 6458 enableEnum = options.enableEnum; | 6467 enableEnum = options.enableEnum; |
| 6459 _generateSdkErrors = options.generateSdkErrors; | 6468 _generateSdkErrors = options.generateSdkErrors; |
| 6460 hint = options.hint; | 6469 hint = options.hint; |
| 6461 incremental = options.incremental; | 6470 incremental = options.incremental; |
| 6471 incrementalLog = options.incrementalLog; |
| 6462 preserveComments = options.preserveComments; | 6472 preserveComments = options.preserveComments; |
| 6463 } | 6473 } |
| 6464 | 6474 |
| 6465 @override | 6475 @override |
| 6466 bool get generateSdkErrors => _generateSdkErrors; | 6476 bool get generateSdkErrors => _generateSdkErrors; |
| 6467 | 6477 |
| 6468 /** | 6478 /** |
| 6469 * Set whether errors, warnings and hints should be generated for sources in t
he SDK to match the | 6479 * Set whether errors, warnings and hints should be generated for sources in t
he SDK to match the |
| 6470 * given value. | 6480 * given value. |
| 6471 * | 6481 * |
| (...skipping 8444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14916 | 14926 |
| 14917 @override | 14927 @override |
| 14918 Object visitPolymerTagDartElement(PolymerTagDartElement element) { | 14928 Object visitPolymerTagDartElement(PolymerTagDartElement element) { |
| 14919 if (element.name == PolymerHtmlUnitBuilder_this._elementName) { | 14929 if (element.name == PolymerHtmlUnitBuilder_this._elementName) { |
| 14920 throw new PolymerHtmlUnitBuilder_FoundTagDartElementError( | 14930 throw new PolymerHtmlUnitBuilder_FoundTagDartElementError( |
| 14921 element as PolymerTagDartElementImpl); | 14931 element as PolymerTagDartElementImpl); |
| 14922 } | 14932 } |
| 14923 return null; | 14933 return null; |
| 14924 } | 14934 } |
| 14925 } | 14935 } |
| OLD | NEW |