| OLD | NEW |
| 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 'dart:collection' show HasNextIterator; | 4 import 'dart:collection' show HasNextIterator; |
| 5 import 'java_core.dart'; | 5 import 'java_core.dart'; |
| 6 import 'java_engine.dart'; | 6 import 'java_engine.dart'; |
| 7 import 'instrumentation.dart'; | 7 import 'instrumentation.dart'; |
| 8 import 'error.dart'; | 8 import 'error.dart'; |
| 9 import 'source.dart'; | 9 import 'source.dart'; |
| 10 import 'scanner.dart' show Token, CharBufferScanner, StringScanner; | 10 import 'scanner.dart' show Token, CharBufferScanner, StringScanner; |
| (...skipping 3140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3151 SourceEntry sourceEntry = _sourceMap[source]; | 3151 SourceEntry sourceEntry = _sourceMap[source]; |
| 3152 if (sourceEntry is HtmlEntry) { | 3152 if (sourceEntry is HtmlEntry) { |
| 3153 HtmlEntryImpl htmlCopy = ((sourceEntry as HtmlEntry)).writableCopy; | 3153 HtmlEntryImpl htmlCopy = ((sourceEntry as HtmlEntry)).writableCopy; |
| 3154 htmlCopy.setState(HtmlEntry.ELEMENT, CacheState.INVALID); | 3154 htmlCopy.setState(HtmlEntry.ELEMENT, CacheState.INVALID); |
| 3155 htmlCopy.setState(SourceEntry.LINE_INFO, CacheState.INVALID); | 3155 htmlCopy.setState(SourceEntry.LINE_INFO, CacheState.INVALID); |
| 3156 htmlCopy.setState(HtmlEntry.PARSED_UNIT, CacheState.INVALID); | 3156 htmlCopy.setState(HtmlEntry.PARSED_UNIT, CacheState.INVALID); |
| 3157 htmlCopy.setState(HtmlEntry.REFERENCED_LIBRARIES, CacheState.INVALID); | 3157 htmlCopy.setState(HtmlEntry.REFERENCED_LIBRARIES, CacheState.INVALID); |
| 3158 htmlCopy.setState(HtmlEntry.RESOLVED_UNIT, CacheState.INVALID); | 3158 htmlCopy.setState(HtmlEntry.RESOLVED_UNIT, CacheState.INVALID); |
| 3159 _sourceMap[source] = htmlCopy; | 3159 _sourceMap[source] = htmlCopy; |
| 3160 } else if (sourceEntry is DartEntry) { | 3160 } else if (sourceEntry is DartEntry) { |
| 3161 Set<Source> librariesToInvalidate = new Set<Source>(); |
| 3161 List<Source> containingLibraries = getLibrariesContaining(source); | 3162 List<Source> containingLibraries = getLibrariesContaining(source); |
| 3163 for (Source containingLibrary in containingLibraries) { |
| 3164 javaSetAdd(librariesToInvalidate, containingLibrary); |
| 3165 for (Source dependentLibrary in getLibrariesDependingOn(containingLibrar
y)) { |
| 3166 javaSetAdd(librariesToInvalidate, dependentLibrary); |
| 3167 } |
| 3168 } |
| 3162 DartEntryImpl dartCopy = ((sourceEntry as DartEntry)).writableCopy; | 3169 DartEntryImpl dartCopy = ((sourceEntry as DartEntry)).writableCopy; |
| 3163 dartCopy.setState(SourceEntry.LINE_INFO, CacheState.INVALID); | 3170 dartCopy.setState(SourceEntry.LINE_INFO, CacheState.INVALID); |
| 3164 dartCopy.setState(DartEntry.PARSE_ERRORS, CacheState.INVALID); | 3171 dartCopy.setState(DartEntry.PARSE_ERRORS, CacheState.INVALID); |
| 3165 dartCopy.setState(DartEntry.PARSED_UNIT, CacheState.INVALID); | 3172 dartCopy.setState(DartEntry.PARSED_UNIT, CacheState.INVALID); |
| 3166 dartCopy.setState(DartEntry.SOURCE_KIND, CacheState.INVALID); | 3173 dartCopy.setState(DartEntry.SOURCE_KIND, CacheState.INVALID); |
| 3167 _sourceMap[source] = dartCopy; | 3174 _sourceMap[source] = dartCopy; |
| 3168 invalidateLibraryResolution(source); | 3175 for (Source library in librariesToInvalidate) { |
| 3169 for (Source librarySource in containingLibraries) { | 3176 invalidateLibraryResolution(library); |
| 3170 invalidateLibraryResolution(librarySource); | |
| 3171 } | 3177 } |
| 3172 } | 3178 } |
| 3173 } | 3179 } |
| 3174 | 3180 |
| 3175 /** | 3181 /** |
| 3176 * <b>Note:</b> This method must only be invoked while we are synchronized on
{@link #cacheLock}. | 3182 * <b>Note:</b> This method must only be invoked while we are synchronized on
{@link #cacheLock}. |
| 3177 * @param source the source that has been deleted | 3183 * @param source the source that has been deleted |
| 3178 */ | 3184 */ |
| 3179 void sourceRemoved(Source source) { | 3185 void sourceRemoved(Source source) { |
| 3180 DartEntry dartEntry = getDartEntry(source); | 3186 DartEntry dartEntry = getDartEntry(source); |
| (...skipping 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4447 } | 4453 } |
| 4448 void logError2(String message, Exception exception) { | 4454 void logError2(String message, Exception exception) { |
| 4449 } | 4455 } |
| 4450 void logError3(Exception exception) { | 4456 void logError3(Exception exception) { |
| 4451 } | 4457 } |
| 4452 void logInformation(String message) { | 4458 void logInformation(String message) { |
| 4453 } | 4459 } |
| 4454 void logInformation2(String message, Exception exception) { | 4460 void logInformation2(String message, Exception exception) { |
| 4455 } | 4461 } |
| 4456 } | 4462 } |
| OLD | NEW |