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

Side by Side Diff: pkg/analyzer_experimental/lib/src/generated/engine.dart

Issue 25123003: Quick fix for analyzer_experimental field/pproperties problem. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/analyzer_experimental/lib/src/generated/resolver.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This code was auto-generated, is not intended to be edited, and is subject to 1 // This code was auto-generated, is not intended to be edited, and is subject to
2 // significant change. Please see the README file for more information. 2 // significant change. Please see the README file for more information.
3 library engine; 3 library engine;
4 import 'java_core.dart'; 4 import 'java_core.dart';
5 import 'java_engine.dart'; 5 import 'java_engine.dart';
6 import 'utilities_collection.dart'; 6 import 'utilities_collection.dart';
7 import 'utilities_general.dart'; 7 import 'utilities_general.dart';
8 import 'instrumentation.dart'; 8 import 'instrumentation.dart';
9 import 'error.dart'; 9 import 'error.dart';
10 import 'source.dart'; 10 import 'source.dart';
(...skipping 4089 matching lines...) Expand 10 before | Expand all | Expand 10 after
4100 /** 4100 /**
4101 * Record the results produced by performing a [GenerateDartHintsTask]. If the results were 4101 * Record the results produced by performing a [GenerateDartHintsTask]. If the results were
4102 * computed from data that is now out-of-date, then the results will not be re corded. 4102 * computed from data that is now out-of-date, then the results will not be re corded.
4103 * 4103 *
4104 * @param task the task that was performed 4104 * @param task the task that was performed
4105 * @return an entry containing the computed results 4105 * @return an entry containing the computed results
4106 * @throws AnalysisException if the results could not be recorded 4106 * @throws AnalysisException if the results could not be recorded
4107 */ 4107 */
4108 DartEntry recordGenerateDartHintsTask(GenerateDartHintsTask task) { 4108 DartEntry recordGenerateDartHintsTask(GenerateDartHintsTask task) {
4109 Source librarySource = task.libraryElement.source; 4109 Source librarySource = task.libraryElement.source;
4110 AnalysisException thrownException = task.exception; 4110 AnalysisException thrownException = task.thrownException;
4111 DartEntry libraryEntry = null; 4111 DartEntry libraryEntry = null;
4112 Map<Source, TimestampedData<List<AnalysisError>>> hintMap = task.hintMap; 4112 Map<Source, TimestampedData<List<AnalysisError>>> hintMap = task.hintMap;
4113 if (hintMap == null) { 4113 if (hintMap == null) {
4114 { 4114 {
4115 SourceEntry sourceEntry = _cache.get(librarySource); 4115 SourceEntry sourceEntry = _cache.get(librarySource);
4116 if (sourceEntry is! DartEntry) { 4116 if (sourceEntry is! DartEntry) {
4117 throw new AnalysisException.con1("Internal error: attempting to genera te hints for non-Dart file as a Dart file: ${librarySource.fullName}"); 4117 throw new AnalysisException.con1("Internal error: attempting to genera te hints for non-Dart file as a Dart file: ${librarySource.fullName}");
4118 } 4118 }
4119 if (thrownException == null) { 4119 if (thrownException == null) {
4120 thrownException = new AnalysisException.con1("GenerateDartHintsTask re turned a null hint map without throwing an exception: ${librarySource.fullName}" ); 4120 thrownException = new AnalysisException.con1("GenerateDartHintsTask re turned a null hint map without throwing an exception: ${librarySource.fullName}" );
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
4184 /** 4184 /**
4185 * Record the results produced by performing a [ParseDartTask]. If the results were computed 4185 * Record the results produced by performing a [ParseDartTask]. If the results were computed
4186 * from data that is now out-of-date, then the results will not be recorded. 4186 * from data that is now out-of-date, then the results will not be recorded.
4187 * 4187 *
4188 * @param task the task that was performed 4188 * @param task the task that was performed
4189 * @return an entry containing the computed results 4189 * @return an entry containing the computed results
4190 * @throws AnalysisException if the results could not be recorded 4190 * @throws AnalysisException if the results could not be recorded
4191 */ 4191 */
4192 DartEntry recordParseDartTaskResults(ParseDartTask task) { 4192 DartEntry recordParseDartTaskResults(ParseDartTask task) {
4193 Source source = task.source; 4193 Source source = task.source;
4194 AnalysisException thrownException = task.exception; 4194 AnalysisException thrownException = task.thrownException;
4195 DartEntry dartEntry = null; 4195 DartEntry dartEntry = null;
4196 { 4196 {
4197 SourceEntry sourceEntry = _cache.get(source); 4197 SourceEntry sourceEntry = _cache.get(source);
4198 if (sourceEntry is! DartEntry) { 4198 if (sourceEntry is! DartEntry) {
4199 throw new AnalysisException.con1("Internal error: attempting to parse no n-Dart file as a Dart file: ${source.fullName}"); 4199 throw new AnalysisException.con1("Internal error: attempting to parse no n-Dart file as a Dart file: ${source.fullName}");
4200 } 4200 }
4201 dartEntry = sourceEntry as DartEntry; 4201 dartEntry = sourceEntry as DartEntry;
4202 _cache.accessed(source); 4202 _cache.accessed(source);
4203 int sourceTime = source.modificationStamp; 4203 int sourceTime = source.modificationStamp;
4204 int resultTime = task.modificationTime; 4204 int resultTime = task.modificationTime;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
4251 /** 4251 /**
4252 * Record the results produced by performing a [ParseHtmlTask]. If the results were computed 4252 * Record the results produced by performing a [ParseHtmlTask]. If the results were computed
4253 * from data that is now out-of-date, then the results will not be recorded. 4253 * from data that is now out-of-date, then the results will not be recorded.
4254 * 4254 *
4255 * @param task the task that was performed 4255 * @param task the task that was performed
4256 * @return an entry containing the computed results 4256 * @return an entry containing the computed results
4257 * @throws AnalysisException if the results could not be recorded 4257 * @throws AnalysisException if the results could not be recorded
4258 */ 4258 */
4259 HtmlEntry recordParseHtmlTaskResults(ParseHtmlTask task) { 4259 HtmlEntry recordParseHtmlTaskResults(ParseHtmlTask task) {
4260 Source source = task.source; 4260 Source source = task.source;
4261 AnalysisException thrownException = task.exception; 4261 AnalysisException thrownException = task.thrownException;
4262 HtmlEntry htmlEntry = null; 4262 HtmlEntry htmlEntry = null;
4263 { 4263 {
4264 SourceEntry sourceEntry = _cache.get(source); 4264 SourceEntry sourceEntry = _cache.get(source);
4265 if (sourceEntry is! HtmlEntry) { 4265 if (sourceEntry is! HtmlEntry) {
4266 throw new AnalysisException.con1("Internal error: attempting to parse no n-HTML file as a HTML file: ${source.fullName}"); 4266 throw new AnalysisException.con1("Internal error: attempting to parse no n-HTML file as a HTML file: ${source.fullName}");
4267 } 4267 }
4268 htmlEntry = sourceEntry as HtmlEntry; 4268 htmlEntry = sourceEntry as HtmlEntry;
4269 _cache.accessed(source); 4269 _cache.accessed(source);
4270 int sourceTime = source.modificationStamp; 4270 int sourceTime = source.modificationStamp;
4271 int resultTime = task.modificationTime; 4271 int resultTime = task.modificationTime;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
4325 /** 4325 /**
4326 * Record the results produced by performing a [ResolveDartLibraryTask]. If th e results were 4326 * Record the results produced by performing a [ResolveDartLibraryTask]. If th e results were
4327 * computed from data that is now out-of-date, then the results will not be re corded. 4327 * computed from data that is now out-of-date, then the results will not be re corded.
4328 * 4328 *
4329 * @param task the task that was performed 4329 * @param task the task that was performed
4330 * @return an entry containing the computed results 4330 * @return an entry containing the computed results
4331 * @throws AnalysisException if the results could not be recorded 4331 * @throws AnalysisException if the results could not be recorded
4332 */ 4332 */
4333 DartEntry recordResolveDartLibraryTaskResults(ResolveDartLibraryTask task) { 4333 DartEntry recordResolveDartLibraryTaskResults(ResolveDartLibraryTask task) {
4334 LibraryResolver resolver = task.libraryResolver; 4334 LibraryResolver resolver = task.libraryResolver;
4335 AnalysisException thrownException = task.exception; 4335 AnalysisException thrownException = task.thrownException;
4336 DartEntry unitEntry = null; 4336 DartEntry unitEntry = null;
4337 Source unitSource = task.unitSource; 4337 Source unitSource = task.unitSource;
4338 if (resolver != null) { 4338 if (resolver != null) {
4339 { 4339 {
4340 if (allModificationTimesMatch(resolver)) { 4340 if (allModificationTimesMatch(resolver)) {
4341 Source htmlSource = sourceFactory.forUri(DartSdk.DART_HTML); 4341 Source htmlSource = sourceFactory.forUri(DartSdk.DART_HTML);
4342 RecordingErrorListener errorListener = resolver.errorListener; 4342 RecordingErrorListener errorListener = resolver.errorListener;
4343 for (Library library in resolver.resolvedLibraries) { 4343 for (Library library in resolver.resolvedLibraries) {
4344 Source librarySource = library.librarySource; 4344 Source librarySource = library.librarySource;
4345 for (Source source in library.compilationUnitSources) { 4345 for (Source source in library.compilationUnitSources) {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
4417 * Record the results produced by performing a [ResolveDartUnitTask]. If the r esults were 4417 * Record the results produced by performing a [ResolveDartUnitTask]. If the r esults were
4418 * computed from data that is now out-of-date, then the results will not be re corded. 4418 * computed from data that is now out-of-date, then the results will not be re corded.
4419 * 4419 *
4420 * @param task the task that was performed 4420 * @param task the task that was performed
4421 * @return an entry containing the computed results 4421 * @return an entry containing the computed results
4422 * @throws AnalysisException if the results could not be recorded 4422 * @throws AnalysisException if the results could not be recorded
4423 */ 4423 */
4424 SourceEntry recordResolveDartUnitTaskResults(ResolveDartUnitTask task) { 4424 SourceEntry recordResolveDartUnitTaskResults(ResolveDartUnitTask task) {
4425 Source unitSource = task.source; 4425 Source unitSource = task.source;
4426 Source librarySource = task.librarySource; 4426 Source librarySource = task.librarySource;
4427 AnalysisException thrownException = task.exception; 4427 AnalysisException thrownException = task.thrownException;
4428 DartEntry dartEntry = null; 4428 DartEntry dartEntry = null;
4429 { 4429 {
4430 SourceEntry sourceEntry = _cache.get(unitSource); 4430 SourceEntry sourceEntry = _cache.get(unitSource);
4431 if (sourceEntry is! DartEntry) { 4431 if (sourceEntry is! DartEntry) {
4432 throw new AnalysisException.con1("Internal error: attempting to reolve n on-Dart file as a Dart file: ${unitSource.fullName}"); 4432 throw new AnalysisException.con1("Internal error: attempting to reolve n on-Dart file as a Dart file: ${unitSource.fullName}");
4433 } 4433 }
4434 dartEntry = sourceEntry as DartEntry; 4434 dartEntry = sourceEntry as DartEntry;
4435 _cache.accessed(unitSource); 4435 _cache.accessed(unitSource);
4436 int sourceTime = unitSource.modificationStamp; 4436 int sourceTime = unitSource.modificationStamp;
4437 int resultTime = task.modificationTime; 4437 int resultTime = task.modificationTime;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
4475 /** 4475 /**
4476 * Record the results produced by performing a [ResolveHtmlTask]. If the resul ts were 4476 * Record the results produced by performing a [ResolveHtmlTask]. If the resul ts were
4477 * computed from data that is now out-of-date, then the results will not be re corded. 4477 * computed from data that is now out-of-date, then the results will not be re corded.
4478 * 4478 *
4479 * @param task the task that was performed 4479 * @param task the task that was performed
4480 * @return an entry containing the computed results 4480 * @return an entry containing the computed results
4481 * @throws AnalysisException if the results could not be recorded 4481 * @throws AnalysisException if the results could not be recorded
4482 */ 4482 */
4483 SourceEntry recordResolveHtmlTaskResults(ResolveHtmlTask task) { 4483 SourceEntry recordResolveHtmlTaskResults(ResolveHtmlTask task) {
4484 Source source = task.source; 4484 Source source = task.source;
4485 AnalysisException thrownException = task.exception; 4485 AnalysisException thrownException = task.thrownException;
4486 HtmlEntry htmlEntry = null; 4486 HtmlEntry htmlEntry = null;
4487 { 4487 {
4488 SourceEntry sourceEntry = _cache.get(source); 4488 SourceEntry sourceEntry = _cache.get(source);
4489 if (sourceEntry is! HtmlEntry) { 4489 if (sourceEntry is! HtmlEntry) {
4490 throw new AnalysisException.con1("Internal error: attempting to reolve n on-HTML file as an HTML file: ${source.fullName}"); 4490 throw new AnalysisException.con1("Internal error: attempting to reolve n on-HTML file as an HTML file: ${source.fullName}");
4491 } 4491 }
4492 htmlEntry = sourceEntry as HtmlEntry; 4492 htmlEntry = sourceEntry as HtmlEntry;
4493 _cache.accessed(source); 4493 _cache.accessed(source);
4494 int sourceTime = source.modificationStamp; 4494 int sourceTime = source.modificationStamp;
4495 int resultTime = task.modificationTime; 4495 int resultTime = task.modificationTime;
(...skipping 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after
5925 5925
5926 /** 5926 /**
5927 * The context in which the task is to be performed. 5927 * The context in which the task is to be performed.
5928 */ 5928 */
5929 InternalAnalysisContext context; 5929 InternalAnalysisContext context;
5930 5930
5931 /** 5931 /**
5932 * The exception that was thrown while performing this task, or `null` if the task completed 5932 * The exception that was thrown while performing this task, or `null` if the task completed
5933 * successfully. 5933 * successfully.
5934 */ 5934 */
5935 AnalysisException exception; 5935 AnalysisException thrownException;
5936 5936
5937 /** 5937 /**
5938 * Initialize a newly created task to perform analysis within the given contex t. 5938 * Initialize a newly created task to perform analysis within the given contex t.
5939 * 5939 *
5940 * @param context the context in which the task is to be performed 5940 * @param context the context in which the task is to be performed
5941 */ 5941 */
5942 AnalysisTask(InternalAnalysisContext context) { 5942 AnalysisTask(InternalAnalysisContext context) {
5943 this.context = context; 5943 this.context = context;
5944 } 5944 }
5945 5945
(...skipping 10 matching lines...) Expand all
5956 * Perform this analysis task and use the given visitor to visit this task aft er it has completed. 5956 * Perform this analysis task and use the given visitor to visit this task aft er it has completed.
5957 * 5957 *
5958 * @param visitor the visitor used to visit this task after it has completed 5958 * @param visitor the visitor used to visit this task after it has completed
5959 * @return the value returned by the visitor 5959 * @return the value returned by the visitor
5960 * @throws AnalysisException if the visitor throws the exception 5960 * @throws AnalysisException if the visitor throws the exception
5961 */ 5961 */
5962 Object perform(AnalysisTaskVisitor visitor) { 5962 Object perform(AnalysisTaskVisitor visitor) {
5963 try { 5963 try {
5964 safelyPerform(); 5964 safelyPerform();
5965 } on AnalysisException catch (exception) { 5965 } on AnalysisException catch (exception) {
5966 exception = exception; 5966 thrownException = exception;
5967 AnalysisEngine.instance.logger.logInformation2("Task failed: ${taskDescrip tion}", exception); 5967 AnalysisEngine.instance.logger.logInformation2("Task failed: ${taskDescrip tion}", exception);
5968 } 5968 }
5969 return accept(visitor); 5969 return accept(visitor);
5970 } 5970 }
5971 String toString() => taskDescription; 5971 String toString() => taskDescription;
5972 5972
5973 /** 5973 /**
5974 * Return a textual description of this task. 5974 * Return a textual description of this task.
5975 * 5975 *
5976 * @return a textual description of this task 5976 * @return a textual description of this task
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
6732 } 6732 }
6733 void logError2(String message, Exception exception) { 6733 void logError2(String message, Exception exception) {
6734 } 6734 }
6735 void logError3(Exception exception) { 6735 void logError3(Exception exception) {
6736 } 6736 }
6737 void logInformation(String message) { 6737 void logInformation(String message) {
6738 } 6738 }
6739 void logInformation2(String message, Exception exception) { 6739 void logInformation2(String message, Exception exception) {
6740 } 6740 }
6741 } 6741 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer_experimental/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698