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

Side by Side Diff: pkg/analyzer/lib/src/dart/analysis/driver.dart

Issue 2579763003: If there is a changed file, hasFilesToAnalyze is true. (Closed)
Patch Set: Created 4 years 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 | « no previous file | pkg/analyzer/test/src/dart/analysis/driver_test.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:collection'; 6 import 'dart:collection';
7 import 'dart:typed_data'; 7 import 'dart:typed_data';
8 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/element/element.dart' show CompilationUnitElement; 10 import 'package:analyzer/dart/element/element.dart' show CompilationUnitElement;
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 267
268 /** 268 /**
269 * The current file system state. 269 * The current file system state.
270 */ 270 */
271 FileSystemState get fsState => _fsState; 271 FileSystemState get fsState => _fsState;
272 272
273 /** 273 /**
274 * Return `true` if the driver has a file to analyze. 274 * Return `true` if the driver has a file to analyze.
275 */ 275 */
276 bool get hasFilesToAnalyze { 276 bool get hasFilesToAnalyze {
277 return _requestedFiles.isNotEmpty || 277 return _changedFiles.isNotEmpty ||
278 _requestedFiles.isNotEmpty ||
278 _requestedParts.isNotEmpty || 279 _requestedParts.isNotEmpty ||
279 _filesToAnalyze.isNotEmpty || 280 _filesToAnalyze.isNotEmpty ||
280 _partsToAnalyze.isNotEmpty; 281 _partsToAnalyze.isNotEmpty;
281 } 282 }
282 283
283 /** 284 /**
284 * Return the set of files that are known at this moment. This set does not 285 * Return the set of files that are known at this moment. This set does not
285 * always include all added files or all implicitly used file. If a file has 286 * always include all added files or all implicitly used file. If a file has
286 * not been processed yet, it might be missing. 287 * not been processed yet, it might be missing.
287 */ 288 */
(...skipping 1306 matching lines...) Expand 10 before | Expand all | Expand 10 after
1594 libraryDeclarations.add(new TopLevelDeclarationInSource( 1595 libraryDeclarations.add(new TopLevelDeclarationInSource(
1595 file.source, declaration, isExported)); 1596 file.source, declaration, isExported));
1596 } 1597 }
1597 } 1598 }
1598 } 1599 }
1599 1600
1600 // We're not done yet. 1601 // We're not done yet.
1601 return false; 1602 return false;
1602 } 1603 }
1603 } 1604 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/src/dart/analysis/driver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698