| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 library analyzer.src.context.context; | 5 library analyzer.src.context.context; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 | 9 |
| 10 import 'package:analyzer/instrumentation/instrumentation.dart'; | 10 import 'package:analyzer/instrumentation/instrumentation.dart'; |
| (...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1150 setValue(INCLUDED_PARTS, Source.EMPTY_LIST); | 1150 setValue(INCLUDED_PARTS, Source.EMPTY_LIST); |
| 1151 setValue(IS_LAUNCHABLE, false); | 1151 setValue(IS_LAUNCHABLE, false); |
| 1152 setValue(LIBRARY_ELEMENT, library); | 1152 setValue(LIBRARY_ELEMENT, library); |
| 1153 setValue(LIBRARY_ELEMENT1, library); | 1153 setValue(LIBRARY_ELEMENT1, library); |
| 1154 setValue(LIBRARY_ELEMENT2, library); | 1154 setValue(LIBRARY_ELEMENT2, library); |
| 1155 setValue(LIBRARY_ELEMENT3, library); | 1155 setValue(LIBRARY_ELEMENT3, library); |
| 1156 setValue(LIBRARY_ELEMENT4, library); | 1156 setValue(LIBRARY_ELEMENT4, library); |
| 1157 setValue(LIBRARY_ELEMENT5, library); | 1157 setValue(LIBRARY_ELEMENT5, library); |
| 1158 setValue(LIBRARY_ELEMENT6, library); | 1158 setValue(LIBRARY_ELEMENT6, library); |
| 1159 setValue(LIBRARY_ELEMENT7, library); | 1159 setValue(LIBRARY_ELEMENT7, library); |
| 1160 setValue(LIBRARY_ELEMENT8, library); | |
| 1161 setValue(LINE_INFO, new LineInfo(<int>[0])); | 1160 setValue(LINE_INFO, new LineInfo(<int>[0])); |
| 1162 setValue(PARSE_ERRORS, AnalysisError.NO_ERRORS); | 1161 setValue(PARSE_ERRORS, AnalysisError.NO_ERRORS); |
| 1163 entry.setState(PARSED_UNIT, CacheState.FLUSHED); | 1162 entry.setState(PARSED_UNIT, CacheState.FLUSHED); |
| 1164 entry.setState(RESOLVE_TYPE_NAMES_ERRORS, CacheState.FLUSHED); | 1163 entry.setState(RESOLVE_TYPE_NAMES_ERRORS, CacheState.FLUSHED); |
| 1165 setValue(SCAN_ERRORS, AnalysisError.NO_ERRORS); | 1164 setValue(SCAN_ERRORS, AnalysisError.NO_ERRORS); |
| 1166 setValue(SOURCE_KIND, SourceKind.LIBRARY); | 1165 setValue(SOURCE_KIND, SourceKind.LIBRARY); |
| 1167 entry.setState(TOKEN_STREAM, CacheState.FLUSHED); | 1166 entry.setState(TOKEN_STREAM, CacheState.FLUSHED); |
| 1168 setValue(UNITS, <Source>[librarySource]); | 1167 setValue(UNITS, <Source>[librarySource]); |
| 1169 | 1168 |
| 1170 LibrarySpecificUnit unit = | 1169 LibrarySpecificUnit unit = |
| (...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2157 DartSdk sdk = factory.dartSdk; | 2156 DartSdk sdk = factory.dartSdk; |
| 2158 if (sdk == null) { | 2157 if (sdk == null) { |
| 2159 throw new IllegalArgumentException( | 2158 throw new IllegalArgumentException( |
| 2160 "The source factory for an SDK analysis context must have a DartUriRes
olver"); | 2159 "The source factory for an SDK analysis context must have a DartUriRes
olver"); |
| 2161 } | 2160 } |
| 2162 return new AnalysisCache(<CachePartition>[ | 2161 return new AnalysisCache(<CachePartition>[ |
| 2163 AnalysisEngine.instance.partitionManager_new.forSdk(sdk) | 2162 AnalysisEngine.instance.partitionManager_new.forSdk(sdk) |
| 2164 ]); | 2163 ]); |
| 2165 } | 2164 } |
| 2166 } | 2165 } |
| OLD | NEW |