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

Side by Side Diff: pkg/analyzer/lib/src/context/context.dart

Issue 1994243002: Dangling comment reference cleanup in analyzer. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « pkg/analyzer/lib/source/sdk_ext.dart ('k') | pkg/analyzer/lib/src/context/source.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 // 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
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/source/sdk_ext.dart ('k') | pkg/analyzer/lib/src/context/source.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698