| 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:collection'; | 10 import 'dart:collection'; |
| (...skipping 1935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1946 } | 1946 } |
| 1947 DartEntryImpl dartCopy = unitEntry.writableCopy; | 1947 DartEntryImpl dartCopy = unitEntry.writableCopy; |
| 1948 if (thrownException == null) { | 1948 if (thrownException == null) { |
| 1949 dartCopy.recordResolutionError(new CaughtException(new AnalysisExcepti
on("In recordResolveDartLibraryCycleTaskResults, resolvedLibraries was null and
there was no thrown exception"), null)); | 1949 dartCopy.recordResolutionError(new CaughtException(new AnalysisExcepti
on("In recordResolveDartLibraryCycleTaskResults, resolvedLibraries was null and
there was no thrown exception"), null)); |
| 1950 } else { | 1950 } else { |
| 1951 dartCopy.recordResolutionError(thrownException); | 1951 dartCopy.recordResolutionError(thrownException); |
| 1952 } | 1952 } |
| 1953 _cache.put(unitSource, dartCopy); | 1953 _cache.put(unitSource, dartCopy); |
| 1954 _cache.remove(unitSource); | 1954 _cache.remove(unitSource); |
| 1955 if (thrownException != null) { | 1955 if (thrownException != null) { |
| 1956 throw thrownException; | 1956 throw new AnalysisException('<rethrow>', thrownException); |
| 1957 } | 1957 } |
| 1958 return dartCopy; | 1958 return dartCopy; |
| 1959 } | 1959 } |
| 1960 if (_allModificationTimesMatch(resolvedLibraries)) { | 1960 if (_allModificationTimesMatch(resolvedLibraries)) { |
| 1961 Source htmlSource = sourceFactory.forUri(DartSdk.DART_HTML); | 1961 Source htmlSource = sourceFactory.forUri(DartSdk.DART_HTML); |
| 1962 RecordingErrorListener errorListener = resolver.errorListener; | 1962 RecordingErrorListener errorListener = resolver.errorListener; |
| 1963 for (ResolvableLibrary library in resolvedLibraries) { | 1963 for (ResolvableLibrary library in resolvedLibraries) { |
| 1964 Source librarySource = library.librarySource; | 1964 Source librarySource = library.librarySource; |
| 1965 for (Source source in library.compilationUnitSources) { | 1965 for (Source source in library.compilationUnitSources) { |
| 1966 CompilationUnit unit = library.getAST(source); | 1966 CompilationUnit unit = library.getAST(source); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2022 } | 2022 } |
| 2023 } else { | 2023 } else { |
| 2024 writer.println(" ${_debuggingString(source)}; sourceTime = ${getM
odificationStamp(source)}, no entry"); | 2024 writer.println(" ${_debuggingString(source)}; sourceTime = ${getM
odificationStamp(source)}, no entry"); |
| 2025 } | 2025 } |
| 2026 } | 2026 } |
| 2027 } | 2027 } |
| 2028 _logInformation(writer.toString()); | 2028 _logInformation(writer.toString()); |
| 2029 } | 2029 } |
| 2030 } | 2030 } |
| 2031 if (thrownException != null) { | 2031 if (thrownException != null) { |
| 2032 throw thrownException; | 2032 throw new AnalysisException('<rethrow>', thrownException); |
| 2033 } | 2033 } |
| 2034 if (unitEntry == null) { | 2034 if (unitEntry == null) { |
| 2035 unitEntry = _getReadableDartEntry(unitSource); | 2035 unitEntry = _getReadableDartEntry(unitSource); |
| 2036 if (unitEntry == null) { | 2036 if (unitEntry == null) { |
| 2037 throw new AnalysisException("A Dart file became a non-Dart file: ${unitS
ource.fullName}"); | 2037 throw new AnalysisException("A Dart file became a non-Dart file: ${unitS
ource.fullName}"); |
| 2038 } | 2038 } |
| 2039 } | 2039 } |
| 2040 return unitEntry; | 2040 return unitEntry; |
| 2041 } | 2041 } |
| 2042 | 2042 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 2061 } | 2061 } |
| 2062 DartEntryImpl dartCopy = unitEntry.writableCopy; | 2062 DartEntryImpl dartCopy = unitEntry.writableCopy; |
| 2063 if (thrownException == null) { | 2063 if (thrownException == null) { |
| 2064 dartCopy.recordResolutionError(new CaughtException(new AnalysisExcepti
on("In recordResolveDartLibraryTaskResults, resolvedLibraries was null and there
was no thrown exception"), null)); | 2064 dartCopy.recordResolutionError(new CaughtException(new AnalysisExcepti
on("In recordResolveDartLibraryTaskResults, resolvedLibraries was null and there
was no thrown exception"), null)); |
| 2065 } else { | 2065 } else { |
| 2066 dartCopy.recordResolutionError(thrownException); | 2066 dartCopy.recordResolutionError(thrownException); |
| 2067 } | 2067 } |
| 2068 _cache.put(unitSource, dartCopy); | 2068 _cache.put(unitSource, dartCopy); |
| 2069 _cache.remove(unitSource); | 2069 _cache.remove(unitSource); |
| 2070 if (thrownException != null) { | 2070 if (thrownException != null) { |
| 2071 throw thrownException; | 2071 throw new AnalysisException('<rethrow>', thrownException); |
| 2072 } | 2072 } |
| 2073 return dartCopy; | 2073 return dartCopy; |
| 2074 } | 2074 } |
| 2075 if (_allModificationTimesMatch2(resolvedLibraries)) { | 2075 if (_allModificationTimesMatch2(resolvedLibraries)) { |
| 2076 Source htmlSource = sourceFactory.forUri(DartSdk.DART_HTML); | 2076 Source htmlSource = sourceFactory.forUri(DartSdk.DART_HTML); |
| 2077 RecordingErrorListener errorListener = resolver.errorListener; | 2077 RecordingErrorListener errorListener = resolver.errorListener; |
| 2078 for (Library library in resolvedLibraries) { | 2078 for (Library library in resolvedLibraries) { |
| 2079 Source librarySource = library.librarySource; | 2079 Source librarySource = library.librarySource; |
| 2080 for (Source source in library.compilationUnitSources) { | 2080 for (Source source in library.compilationUnitSources) { |
| 2081 CompilationUnit unit = library.getAST(source); | 2081 CompilationUnit unit = library.getAST(source); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2148 } | 2148 } |
| 2149 } else { | 2149 } else { |
| 2150 writer.println(" ${_debuggingString(source)}; sourceTime = ${getM
odificationStamp(source)}, no entry"); | 2150 writer.println(" ${_debuggingString(source)}; sourceTime = ${getM
odificationStamp(source)}, no entry"); |
| 2151 } | 2151 } |
| 2152 } | 2152 } |
| 2153 } | 2153 } |
| 2154 _logInformation(writer.toString()); | 2154 _logInformation(writer.toString()); |
| 2155 } | 2155 } |
| 2156 } | 2156 } |
| 2157 if (thrownException != null) { | 2157 if (thrownException != null) { |
| 2158 throw thrownException; | 2158 throw new AnalysisException('<rethrow>', thrownException); |
| 2159 } | 2159 } |
| 2160 if (unitEntry == null) { | 2160 if (unitEntry == null) { |
| 2161 unitEntry = _getReadableDartEntry(unitSource); | 2161 unitEntry = _getReadableDartEntry(unitSource); |
| 2162 if (unitEntry == null) { | 2162 if (unitEntry == null) { |
| 2163 throw new AnalysisException("A Dart file became a non-Dart file: ${unitS
ource.fullName}"); | 2163 throw new AnalysisException("A Dart file became a non-Dart file: ${unitS
ource.fullName}"); |
| 2164 } | 2164 } |
| 2165 } | 2165 } |
| 2166 return unitEntry; | 2166 return unitEntry; |
| 2167 } | 2167 } |
| 2168 | 2168 |
| (...skipping 1798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3967 targetEntry = dartCopy; | 3967 targetEntry = dartCopy; |
| 3968 } | 3968 } |
| 3969 } else { | 3969 } else { |
| 3970 writer.println(" ${_debuggingString(source)}; sourceTime = ${getMod
ificationStamp(source)}, no entry"); | 3970 writer.println(" ${_debuggingString(source)}; sourceTime = ${getMod
ificationStamp(source)}, no entry"); |
| 3971 } | 3971 } |
| 3972 } | 3972 } |
| 3973 } | 3973 } |
| 3974 _logInformation(writer.toString()); | 3974 _logInformation(writer.toString()); |
| 3975 } | 3975 } |
| 3976 if (thrownException != null) { | 3976 if (thrownException != null) { |
| 3977 throw thrownException; | 3977 throw new AnalysisException('<rethrow>', thrownException); |
| 3978 } | 3978 } |
| 3979 if (targetEntry == null) { | 3979 if (targetEntry == null) { |
| 3980 targetEntry = _getReadableDartEntry(targetLibrary); | 3980 targetEntry = _getReadableDartEntry(targetLibrary); |
| 3981 if (targetEntry == null) { | 3981 if (targetEntry == null) { |
| 3982 throw new AnalysisException("A Dart file became a non-Dart file: ${targe
tLibrary.fullName}"); | 3982 throw new AnalysisException("A Dart file became a non-Dart file: ${targe
tLibrary.fullName}"); |
| 3983 } | 3983 } |
| 3984 } | 3984 } |
| 3985 return targetEntry; | 3985 return targetEntry; |
| 3986 } | 3986 } |
| 3987 | 3987 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4062 // We could not determine whether the sources were up-to-date or out-of-
date. Mark the | 4062 // We could not determine whether the sources were up-to-date or out-of-
date. Mark the |
| 4063 // cache so that we won't attempt to re-verify the source until there's
a good chance | 4063 // cache so that we won't attempt to re-verify the source until there's
a good chance |
| 4064 // that we'll be able to do so without error. | 4064 // that we'll be able to do so without error. |
| 4065 // | 4065 // |
| 4066 dartCopy.recordVerificationErrorInLibrary(librarySource, thrownException
); | 4066 dartCopy.recordVerificationErrorInLibrary(librarySource, thrownException
); |
| 4067 } | 4067 } |
| 4068 _cache.put(source, dartCopy); | 4068 _cache.put(source, dartCopy); |
| 4069 dartEntry = dartCopy; | 4069 dartEntry = dartCopy; |
| 4070 } | 4070 } |
| 4071 if (thrownException != null) { | 4071 if (thrownException != null) { |
| 4072 throw thrownException; | 4072 throw new AnalysisException('<rethrow>', thrownException); |
| 4073 } | 4073 } |
| 4074 return dartEntry; | 4074 return dartEntry; |
| 4075 } | 4075 } |
| 4076 | 4076 |
| 4077 /** | 4077 /** |
| 4078 * Record the results produced by performing a [GenerateDartHintsTask]. If the
results were | 4078 * Record the results produced by performing a [GenerateDartHintsTask]. If the
results were |
| 4079 * computed from data that is now out-of-date, then the results will not be re
corded. | 4079 * computed from data that is now out-of-date, then the results will not be re
corded. |
| 4080 * | 4080 * |
| 4081 * @param task the task that was performed | 4081 * @param task the task that was performed |
| 4082 * @return an entry containing the computed results | 4082 * @return an entry containing the computed results |
| (...skipping 14 matching lines...) Expand all Loading... |
| 4097 // This shouldn't be possible because we should never have performed the
task if the source | 4097 // This shouldn't be possible because we should never have performed the
task if the source |
| 4098 // didn't represent a Dart file, but check to be safe. | 4098 // didn't represent a Dart file, but check to be safe. |
| 4099 throw new AnalysisException("Internal error: attempting to generate hint
s for non-Dart file as a Dart file: ${librarySource.fullName}"); | 4099 throw new AnalysisException("Internal error: attempting to generate hint
s for non-Dart file as a Dart file: ${librarySource.fullName}"); |
| 4100 } | 4100 } |
| 4101 if (thrownException == null) { | 4101 if (thrownException == null) { |
| 4102 thrownException = new CaughtException(new AnalysisException("GenerateDar
tHintsTask returned a null hint map without throwing an exception: ${librarySour
ce.fullName}"), null); | 4102 thrownException = new CaughtException(new AnalysisException("GenerateDar
tHintsTask returned a null hint map without throwing an exception: ${librarySour
ce.fullName}"), null); |
| 4103 } | 4103 } |
| 4104 DartEntryImpl dartCopy = (sourceEntry as DartEntry).writableCopy; | 4104 DartEntryImpl dartCopy = (sourceEntry as DartEntry).writableCopy; |
| 4105 dartCopy.recordHintErrorInLibrary(librarySource, thrownException); | 4105 dartCopy.recordHintErrorInLibrary(librarySource, thrownException); |
| 4106 _cache.put(librarySource, dartCopy); | 4106 _cache.put(librarySource, dartCopy); |
| 4107 throw thrownException; | 4107 throw new AnalysisException('<rethrow>', thrownException); |
| 4108 } | 4108 } |
| 4109 for (MapEntry<Source, TimestampedData<List<AnalysisError>>> entry in getMapE
ntrySet(hintMap)) { | 4109 for (MapEntry<Source, TimestampedData<List<AnalysisError>>> entry in getMapE
ntrySet(hintMap)) { |
| 4110 Source unitSource = entry.getKey(); | 4110 Source unitSource = entry.getKey(); |
| 4111 TimestampedData<List<AnalysisError>> results = entry.getValue(); | 4111 TimestampedData<List<AnalysisError>> results = entry.getValue(); |
| 4112 SourceEntry sourceEntry = _cache.get(unitSource); | 4112 SourceEntry sourceEntry = _cache.get(unitSource); |
| 4113 if (sourceEntry is! DartEntry) { | 4113 if (sourceEntry is! DartEntry) { |
| 4114 // This shouldn't be possible because we should never have performed the
task if the source | 4114 // This shouldn't be possible because we should never have performed the
task if the source |
| 4115 // didn't represent a Dart file, but check to be safe. | 4115 // didn't represent a Dart file, but check to be safe. |
| 4116 throw new AnalysisException("Internal error: attempting to parse non-Dar
t file as a Dart file: ${unitSource.fullName}"); | 4116 throw new AnalysisException("Internal error: attempting to parse non-Dar
t file as a Dart file: ${unitSource.fullName}"); |
| 4117 } | 4117 } |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4162 // that we'll be able to do so without error. | 4162 // that we'll be able to do so without error. |
| 4163 // | 4163 // |
| 4164 dartCopy.recordHintErrorInLibrary(librarySource, thrownException); | 4164 dartCopy.recordHintErrorInLibrary(librarySource, thrownException); |
| 4165 } | 4165 } |
| 4166 _cache.put(unitSource, dartCopy); | 4166 _cache.put(unitSource, dartCopy); |
| 4167 dartEntry = dartCopy; | 4167 dartEntry = dartCopy; |
| 4168 } | 4168 } |
| 4169 } | 4169 } |
| 4170 } | 4170 } |
| 4171 if (thrownException != null) { | 4171 if (thrownException != null) { |
| 4172 throw thrownException; | 4172 throw new AnalysisException('<rethrow>', thrownException); |
| 4173 } | 4173 } |
| 4174 return libraryEntry; | 4174 return libraryEntry; |
| 4175 } | 4175 } |
| 4176 | 4176 |
| 4177 /** | 4177 /** |
| 4178 * Record the results produced by performing a [GetContentTask]. | 4178 * Record the results produced by performing a [GetContentTask]. |
| 4179 * | 4179 * |
| 4180 * @param task the task that was performed | 4180 * @param task the task that was performed |
| 4181 * @return an entry containing the computed results | 4181 * @return an entry containing the computed results |
| 4182 * @throws AnalysisException if the results could not be recorded | 4182 * @throws AnalysisException if the results could not be recorded |
| (...skipping 13 matching lines...) Expand all Loading... |
| 4196 if (thrownException == null) { | 4196 if (thrownException == null) { |
| 4197 sourceCopy.modificationTime = task.modificationTime; | 4197 sourceCopy.modificationTime = task.modificationTime; |
| 4198 sourceCopy.setValue(SourceEntry.CONTENT, task.content); | 4198 sourceCopy.setValue(SourceEntry.CONTENT, task.content); |
| 4199 } else { | 4199 } else { |
| 4200 sourceCopy.recordContentError(thrownException); | 4200 sourceCopy.recordContentError(thrownException); |
| 4201 _workManager.remove(source); | 4201 _workManager.remove(source); |
| 4202 } | 4202 } |
| 4203 _cache.put(source, sourceCopy); | 4203 _cache.put(source, sourceCopy); |
| 4204 sourceEntry = sourceCopy; | 4204 sourceEntry = sourceCopy; |
| 4205 if (thrownException != null) { | 4205 if (thrownException != null) { |
| 4206 throw thrownException; | 4206 throw new AnalysisException('<rethrow>', thrownException); |
| 4207 } | 4207 } |
| 4208 return sourceEntry; | 4208 return sourceEntry; |
| 4209 } | 4209 } |
| 4210 | 4210 |
| 4211 /** | 4211 /** |
| 4212 * Record the results produced by performing a [IncrementalAnalysisTask]. | 4212 * Record the results produced by performing a [IncrementalAnalysisTask]. |
| 4213 * | 4213 * |
| 4214 * @param task the task that was performed | 4214 * @param task the task that was performed |
| 4215 * @return an entry containing the computed results | 4215 * @return an entry containing the computed results |
| 4216 * @throws AnalysisException if the results could not be recorded | 4216 * @throws AnalysisException if the results could not be recorded |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4330 // We could not determine whether the sources were up-to-date or out-of-
date. Mark the | 4330 // We could not determine whether the sources were up-to-date or out-of-
date. Mark the |
| 4331 // cache so that we won't attempt to re-analyze the sources until there'
s a good chance | 4331 // cache so that we won't attempt to re-analyze the sources until there'
s a good chance |
| 4332 // that we'll be able to do so without error. | 4332 // that we'll be able to do so without error. |
| 4333 // | 4333 // |
| 4334 dartCopy.recordParseError(thrownException); | 4334 dartCopy.recordParseError(thrownException); |
| 4335 } | 4335 } |
| 4336 _cache.put(source, dartCopy); | 4336 _cache.put(source, dartCopy); |
| 4337 dartEntry = dartCopy; | 4337 dartEntry = dartCopy; |
| 4338 } | 4338 } |
| 4339 if (thrownException != null) { | 4339 if (thrownException != null) { |
| 4340 throw thrownException; | 4340 throw new AnalysisException('<rethrow>', thrownException); |
| 4341 } | 4341 } |
| 4342 return dartEntry; | 4342 return dartEntry; |
| 4343 } | 4343 } |
| 4344 | 4344 |
| 4345 /** | 4345 /** |
| 4346 * Record the results produced by performing a [ParseHtmlTask]. If the results
were computed | 4346 * Record the results produced by performing a [ParseHtmlTask]. If the results
were computed |
| 4347 * from data that is now out-of-date, then the results will not be recorded. | 4347 * from data that is now out-of-date, then the results will not be recorded. |
| 4348 * | 4348 * |
| 4349 * @param task the task that was performed | 4349 * @param task the task that was performed |
| 4350 * @return an entry containing the computed results | 4350 * @return an entry containing the computed results |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4416 // We could not determine whether the sources were up-to-date or out-of-
date. Mark the | 4416 // We could not determine whether the sources were up-to-date or out-of-
date. Mark the |
| 4417 // cache so that we won't attempt to re-analyze the sources until there'
s a good chance | 4417 // cache so that we won't attempt to re-analyze the sources until there'
s a good chance |
| 4418 // that we'll be able to do so without error. | 4418 // that we'll be able to do so without error. |
| 4419 // | 4419 // |
| 4420 htmlCopy.recordParseError(thrownException); | 4420 htmlCopy.recordParseError(thrownException); |
| 4421 } | 4421 } |
| 4422 _cache.put(source, htmlCopy); | 4422 _cache.put(source, htmlCopy); |
| 4423 htmlEntry = htmlCopy; | 4423 htmlEntry = htmlCopy; |
| 4424 } | 4424 } |
| 4425 if (thrownException != null) { | 4425 if (thrownException != null) { |
| 4426 throw thrownException; | 4426 throw new AnalysisException('<rethrow>', thrownException); |
| 4427 } | 4427 } |
| 4428 return htmlEntry; | 4428 return htmlEntry; |
| 4429 } | 4429 } |
| 4430 | 4430 |
| 4431 /** | 4431 /** |
| 4432 * Record the results produced by performing a [PolymerBuildHtmlTask]. If the
results were | 4432 * Record the results produced by performing a [PolymerBuildHtmlTask]. If the
results were |
| 4433 * computed from data that is now out-of-date, then the results will not be re
corded. | 4433 * computed from data that is now out-of-date, then the results will not be re
corded. |
| 4434 * | 4434 * |
| 4435 * @param task the task that was performed | 4435 * @param task the task that was performed |
| 4436 * @throws AnalysisException if the results could not be recorded | 4436 * @throws AnalysisException if the results could not be recorded |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4485 // We could not determine whether the sources were up-to-date or out-of-
date. Mark the | 4485 // We could not determine whether the sources were up-to-date or out-of-
date. Mark the |
| 4486 // cache so that we won't attempt to re-analyze the sources until there'
s a good chance | 4486 // cache so that we won't attempt to re-analyze the sources until there'
s a good chance |
| 4487 // that we'll be able to do so without error. | 4487 // that we'll be able to do so without error. |
| 4488 // | 4488 // |
| 4489 htmlCopy.recordResolutionError(thrownException); | 4489 htmlCopy.recordResolutionError(thrownException); |
| 4490 } | 4490 } |
| 4491 _cache.put(source, htmlCopy); | 4491 _cache.put(source, htmlCopy); |
| 4492 htmlEntry = htmlCopy; | 4492 htmlEntry = htmlCopy; |
| 4493 } | 4493 } |
| 4494 if (thrownException != null) { | 4494 if (thrownException != null) { |
| 4495 throw thrownException; | 4495 throw new AnalysisException('<rethrow>', thrownException); |
| 4496 } | 4496 } |
| 4497 return htmlEntry; | 4497 return htmlEntry; |
| 4498 } | 4498 } |
| 4499 | 4499 |
| 4500 /** | 4500 /** |
| 4501 * Record the results produced by performing a [PolymerResolveHtmlTask]. If th
e results were | 4501 * Record the results produced by performing a [PolymerResolveHtmlTask]. If th
e results were |
| 4502 * computed from data that is now out-of-date, then the results will not be re
corded. | 4502 * computed from data that is now out-of-date, then the results will not be re
corded. |
| 4503 * | 4503 * |
| 4504 * @param task the task that was performed | 4504 * @param task the task that was performed |
| 4505 * @throws AnalysisException if the results could not be recorded | 4505 * @throws AnalysisException if the results could not be recorded |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4554 // We could not determine whether the sources were up-to-date or out-of-
date. Mark the | 4554 // We could not determine whether the sources were up-to-date or out-of-
date. Mark the |
| 4555 // cache so that we won't attempt to re-analyze the sources until there'
s a good chance | 4555 // cache so that we won't attempt to re-analyze the sources until there'
s a good chance |
| 4556 // that we'll be able to do so without error. | 4556 // that we'll be able to do so without error. |
| 4557 // | 4557 // |
| 4558 htmlCopy.recordResolutionError(thrownException); | 4558 htmlCopy.recordResolutionError(thrownException); |
| 4559 } | 4559 } |
| 4560 _cache.put(source, htmlCopy); | 4560 _cache.put(source, htmlCopy); |
| 4561 htmlEntry = htmlCopy; | 4561 htmlEntry = htmlCopy; |
| 4562 } | 4562 } |
| 4563 if (thrownException != null) { | 4563 if (thrownException != null) { |
| 4564 throw thrownException; | 4564 throw new AnalysisException('<rethrow>', thrownException); |
| 4565 } | 4565 } |
| 4566 return htmlEntry; | 4566 return htmlEntry; |
| 4567 } | 4567 } |
| 4568 | 4568 |
| 4569 /** | 4569 /** |
| 4570 * Record the results produced by performing a [ResolveAngularComponentTemplat
eTask]. If the | 4570 * Record the results produced by performing a [ResolveAngularComponentTemplat
eTask]. If the |
| 4571 * results were computed from data that is now out-of-date, then the results w
ill not be recorded. | 4571 * results were computed from data that is now out-of-date, then the results w
ill not be recorded. |
| 4572 * | 4572 * |
| 4573 * @param task the task that was performed | 4573 * @param task the task that was performed |
| 4574 * @throws AnalysisException if the results could not be recorded | 4574 * @throws AnalysisException if the results could not be recorded |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4633 // We could not determine whether the sources were up-to-date or out-of-
date. Mark the | 4633 // We could not determine whether the sources were up-to-date or out-of-
date. Mark the |
| 4634 // cache so that we won't attempt to re-analyze the sources until there'
s a good chance | 4634 // cache so that we won't attempt to re-analyze the sources until there'
s a good chance |
| 4635 // that we'll be able to do so without error. | 4635 // that we'll be able to do so without error. |
| 4636 // | 4636 // |
| 4637 htmlCopy.recordResolutionError(thrownException); | 4637 htmlCopy.recordResolutionError(thrownException); |
| 4638 } | 4638 } |
| 4639 _cache.put(source, htmlCopy); | 4639 _cache.put(source, htmlCopy); |
| 4640 htmlEntry = htmlCopy; | 4640 htmlEntry = htmlCopy; |
| 4641 } | 4641 } |
| 4642 if (thrownException != null) { | 4642 if (thrownException != null) { |
| 4643 throw thrownException; | 4643 throw new AnalysisException('<rethrow>', thrownException); |
| 4644 } | 4644 } |
| 4645 return htmlEntry; | 4645 return htmlEntry; |
| 4646 } | 4646 } |
| 4647 | 4647 |
| 4648 /** | 4648 /** |
| 4649 * Record the results produced by performing a [ResolveAngularEntryHtmlTask].
If the results | 4649 * Record the results produced by performing a [ResolveAngularEntryHtmlTask].
If the results |
| 4650 * were computed from data that is now out-of-date, then the results will not
be recorded. | 4650 * were computed from data that is now out-of-date, then the results will not
be recorded. |
| 4651 * | 4651 * |
| 4652 * @param task the task that was performed | 4652 * @param task the task that was performed |
| 4653 * @throws AnalysisException if the results could not be recorded | 4653 * @throws AnalysisException if the results could not be recorded |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4713 // We could not determine whether the sources were up-to-date or out-of-
date. Mark the | 4713 // We could not determine whether the sources were up-to-date or out-of-
date. Mark the |
| 4714 // cache so that we won't attempt to re-analyze the sources until there'
s a good chance | 4714 // cache so that we won't attempt to re-analyze the sources until there'
s a good chance |
| 4715 // that we'll be able to do so without error. | 4715 // that we'll be able to do so without error. |
| 4716 // | 4716 // |
| 4717 htmlCopy.recordResolutionError(thrownException); | 4717 htmlCopy.recordResolutionError(thrownException); |
| 4718 } | 4718 } |
| 4719 _cache.put(source, htmlCopy); | 4719 _cache.put(source, htmlCopy); |
| 4720 htmlEntry = htmlCopy; | 4720 htmlEntry = htmlCopy; |
| 4721 } | 4721 } |
| 4722 if (thrownException != null) { | 4722 if (thrownException != null) { |
| 4723 throw thrownException; | 4723 throw new AnalysisException('<rethrow>', thrownException); |
| 4724 } | 4724 } |
| 4725 return htmlEntry; | 4725 return htmlEntry; |
| 4726 } | 4726 } |
| 4727 | 4727 |
| 4728 /** | 4728 /** |
| 4729 * Record the results produced by performing a [ResolveDartUnitTask]. If the r
esults were | 4729 * Record the results produced by performing a [ResolveDartUnitTask]. If the r
esults were |
| 4730 * computed from data that is now out-of-date, then the results will not be re
corded. | 4730 * computed from data that is now out-of-date, then the results will not be re
corded. |
| 4731 * | 4731 * |
| 4732 * @param task the task that was performed | 4732 * @param task the task that was performed |
| 4733 * @return an entry containing the computed results | 4733 * @return an entry containing the computed results |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4789 // We could not determine whether the sources were up-to-date or out-of-
date. Mark the | 4789 // We could not determine whether the sources were up-to-date or out-of-
date. Mark the |
| 4790 // cache so that we won't attempt to re-analyze the sources until there'
s a good chance | 4790 // cache so that we won't attempt to re-analyze the sources until there'
s a good chance |
| 4791 // that we'll be able to do so without error. | 4791 // that we'll be able to do so without error. |
| 4792 // | 4792 // |
| 4793 dartCopy.recordResolutionErrorInLibrary(librarySource, thrownException); | 4793 dartCopy.recordResolutionErrorInLibrary(librarySource, thrownException); |
| 4794 } | 4794 } |
| 4795 _cache.put(unitSource, dartCopy); | 4795 _cache.put(unitSource, dartCopy); |
| 4796 dartEntry = dartCopy; | 4796 dartEntry = dartCopy; |
| 4797 } | 4797 } |
| 4798 if (thrownException != null) { | 4798 if (thrownException != null) { |
| 4799 throw thrownException; | 4799 throw new AnalysisException('<rethrow>', thrownException); |
| 4800 } | 4800 } |
| 4801 return dartEntry; | 4801 return dartEntry; |
| 4802 } | 4802 } |
| 4803 | 4803 |
| 4804 /** | 4804 /** |
| 4805 * Record the results produced by performing a [ResolveHtmlTask]. If the resul
ts were | 4805 * Record the results produced by performing a [ResolveHtmlTask]. If the resul
ts were |
| 4806 * computed from data that is now out-of-date, then the results will not be re
corded. | 4806 * computed from data that is now out-of-date, then the results will not be re
corded. |
| 4807 * | 4807 * |
| 4808 * @param task the task that was performed | 4808 * @param task the task that was performed |
| 4809 * @return an entry containing the computed results | 4809 * @return an entry containing the computed results |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4871 // We could not determine whether the sources were up-to-date or out-of-
date. Mark the | 4871 // We could not determine whether the sources were up-to-date or out-of-
date. Mark the |
| 4872 // cache so that we won't attempt to re-analyze the sources until there'
s a good chance | 4872 // cache so that we won't attempt to re-analyze the sources until there'
s a good chance |
| 4873 // that we'll be able to do so without error. | 4873 // that we'll be able to do so without error. |
| 4874 // | 4874 // |
| 4875 htmlCopy.recordResolutionError(thrownException); | 4875 htmlCopy.recordResolutionError(thrownException); |
| 4876 } | 4876 } |
| 4877 _cache.put(source, htmlCopy); | 4877 _cache.put(source, htmlCopy); |
| 4878 htmlEntry = htmlCopy; | 4878 htmlEntry = htmlCopy; |
| 4879 } | 4879 } |
| 4880 if (thrownException != null) { | 4880 if (thrownException != null) { |
| 4881 throw thrownException; | 4881 throw new AnalysisException('<rethrow>', thrownException); |
| 4882 } | 4882 } |
| 4883 return htmlEntry; | 4883 return htmlEntry; |
| 4884 } | 4884 } |
| 4885 | 4885 |
| 4886 /** | 4886 /** |
| 4887 * Record the results produced by performing a [ScanDartTask]. If the results
were computed | 4887 * Record the results produced by performing a [ScanDartTask]. If the results
were computed |
| 4888 * from data that is now out-of-date, then the results will not be recorded. | 4888 * from data that is now out-of-date, then the results will not be recorded. |
| 4889 * | 4889 * |
| 4890 * @param task the task that was performed | 4890 * @param task the task that was performed |
| 4891 * @return an entry containing the computed results | 4891 * @return an entry containing the computed results |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4951 // We could not determine whether the sources were up-to-date or out-of-
date. Mark the | 4951 // We could not determine whether the sources were up-to-date or out-of-
date. Mark the |
| 4952 // cache so that we won't attempt to re-analyze the sources until there'
s a good chance | 4952 // cache so that we won't attempt to re-analyze the sources until there'
s a good chance |
| 4953 // that we'll be able to do so without error. | 4953 // that we'll be able to do so without error. |
| 4954 // | 4954 // |
| 4955 dartCopy.recordScanError(thrownException); | 4955 dartCopy.recordScanError(thrownException); |
| 4956 } | 4956 } |
| 4957 _cache.put(source, dartCopy); | 4957 _cache.put(source, dartCopy); |
| 4958 dartEntry = dartCopy; | 4958 dartEntry = dartCopy; |
| 4959 } | 4959 } |
| 4960 if (thrownException != null) { | 4960 if (thrownException != null) { |
| 4961 throw thrownException; | 4961 throw new AnalysisException('<rethrow>', thrownException); |
| 4962 } | 4962 } |
| 4963 return dartEntry; | 4963 return dartEntry; |
| 4964 } | 4964 } |
| 4965 | 4965 |
| 4966 /** | 4966 /** |
| 4967 * Remove the given library from the list of containing libraries for all of t
he parts referenced | 4967 * Remove the given library from the list of containing libraries for all of t
he parts referenced |
| 4968 * by the given entry. | 4968 * by the given entry. |
| 4969 * | 4969 * |
| 4970 * <b>Note:</b> This method must only be invoked while we are synchronized on
[cacheLock]. | 4970 * <b>Note:</b> This method must only be invoked while we are synchronized on
[cacheLock]. |
| 4971 * | 4971 * |
| (...skipping 10702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15674 _index++; | 15674 _index++; |
| 15675 if (_index >= WorkManager_this._workQueues[_queueIndex].length) { | 15675 if (_index >= WorkManager_this._workQueues[_queueIndex].length) { |
| 15676 _index = 0; | 15676 _index = 0; |
| 15677 _queueIndex++; | 15677 _queueIndex++; |
| 15678 while (_queueIndex < WorkManager_this._workQueues.length && WorkManager_th
is._workQueues[_queueIndex].isEmpty) { | 15678 while (_queueIndex < WorkManager_this._workQueues.length && WorkManager_th
is._workQueues[_queueIndex].isEmpty) { |
| 15679 _queueIndex++; | 15679 _queueIndex++; |
| 15680 } | 15680 } |
| 15681 } | 15681 } |
| 15682 } | 15682 } |
| 15683 } | 15683 } |
| OLD | NEW |