| 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/dart/ast/ast.dart'; | 10 import 'package:analyzer/dart/ast/ast.dart'; |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 | 208 |
| 209 /** | 209 /** |
| 210 * The most recently incrementally resolved library source, or `null` when it | 210 * The most recently incrementally resolved library source, or `null` when it |
| 211 * was already validated, or the most recent change was not incrementally | 211 * was already validated, or the most recent change was not incrementally |
| 212 * resolved. | 212 * resolved. |
| 213 */ | 213 */ |
| 214 Source incrementalResolutionValidation_lastLibrarySource; | 214 Source incrementalResolutionValidation_lastLibrarySource; |
| 215 | 215 |
| 216 /** | 216 /** |
| 217 * The result of incremental resolution result of | 217 * The result of incremental resolution result of |
| 218 * [incrementalResolutionValidation_lastSource]. | 218 * [incrementalResolutionValidation_lastUnitSource]. |
| 219 */ | 219 */ |
| 220 CompilationUnit incrementalResolutionValidation_lastUnit; | 220 CompilationUnit incrementalResolutionValidation_lastUnit; |
| 221 | 221 |
| 222 /** | 222 /** |
| 223 * Initialize a newly created analysis context. | 223 * Initialize a newly created analysis context. |
| 224 */ | 224 */ |
| 225 AnalysisContextImpl() { | 225 AnalysisContextImpl() { |
| 226 _privatePartition = new UniversalCachePartition(this); | 226 _privatePartition = new UniversalCachePartition(this); |
| 227 _cache = createCacheFromSourceFactory(null); | 227 _cache = createCacheFromSourceFactory(null); |
| 228 _taskManager = AnalysisEngine.instance.taskManager; | 228 _taskManager = AnalysisEngine.instance.taskManager; |
| (...skipping 1969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2198 } | 2198 } |
| 2199 DartSdk sdk = factory.dartSdk; | 2199 DartSdk sdk = factory.dartSdk; |
| 2200 if (sdk == null) { | 2200 if (sdk == null) { |
| 2201 throw new IllegalArgumentException( | 2201 throw new IllegalArgumentException( |
| 2202 "The source factory for an SDK analysis context must have a DartUriRes
olver"); | 2202 "The source factory for an SDK analysis context must have a DartUriRes
olver"); |
| 2203 } | 2203 } |
| 2204 return new AnalysisCache( | 2204 return new AnalysisCache( |
| 2205 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); | 2205 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); |
| 2206 } | 2206 } |
| 2207 } | 2207 } |
| OLD | NEW |