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

Side by Side Diff: pkg/analyzer/lib/src/task/options_work_manager.dart

Issue 2342733002: Break up another large file (Closed)
Patch Set: fixed floating comment Created 4 years, 3 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/src/task/options.dart ('k') | pkg/analyzer/lib/src/task/strong/checker.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.task.options_work_manager; 5 library analyzer.src.task.options_work_manager;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/error/error.dart';
9 import 'package:analyzer/src/context/cache.dart'; 10 import 'package:analyzer/src/context/cache.dart';
10 import 'package:analyzer/src/generated/engine.dart' 11 import 'package:analyzer/src/generated/engine.dart'
11 show AnalysisEngine, AnalysisErrorInfo, CacheState, InternalAnalysisContext; 12 show AnalysisEngine, AnalysisErrorInfo, CacheState, InternalAnalysisContext;
12 import 'package:analyzer/src/generated/error.dart';
13 import 'package:analyzer/src/generated/source.dart'; 13 import 'package:analyzer/src/generated/source.dart';
14 import 'package:analyzer/src/task/options.dart'; 14 import 'package:analyzer/src/task/options.dart';
15 import 'package:analyzer/task/model.dart'; 15 import 'package:analyzer/task/model.dart';
16 16
17 /// The manager for analysis options specific analysis. 17 /// The manager for analysis options specific analysis.
18 class OptionsWorkManager implements WorkManager { 18 class OptionsWorkManager implements WorkManager {
19 /// The context for which work is being managed. 19 /// The context for which work is being managed.
20 final InternalAnalysisContext context; 20 final InternalAnalysisContext context;
21 21
22 /// The options file sources. 22 /// The options file sources.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 bool _needsComputing(AnalysisTarget target, ResultDescriptor result) { 160 bool _needsComputing(AnalysisTarget target, ResultDescriptor result) {
161 CacheState state = analysisCache.getState(target, result); 161 CacheState state = analysisCache.getState(target, result);
162 return state != CacheState.VALID && state != CacheState.ERROR; 162 return state != CacheState.VALID && state != CacheState.ERROR;
163 } 163 }
164 164
165 /// Return `true` if the given target is an analysis options source. 165 /// Return `true` if the given target is an analysis options source.
166 static bool _isOptionsSource(AnalysisTarget target) => 166 static bool _isOptionsSource(AnalysisTarget target) =>
167 target is Source && 167 target is Source &&
168 AnalysisEngine.isAnalysisOptionsFileName(target.fullName); 168 AnalysisEngine.isAnalysisOptionsFileName(target.fullName);
169 } 169 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/task/options.dart ('k') | pkg/analyzer/lib/src/task/strong/checker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698