| OLD | NEW |
| 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:convert'; | 5 import 'dart:convert'; |
| 6 import 'dart:typed_data'; | 6 import 'dart:typed_data'; |
| 7 | 7 |
| 8 import 'package:analyzer/dart/ast/ast.dart'; | 8 import 'package:analyzer/dart/ast/ast.dart'; |
| 9 import 'package:analyzer/dart/ast/token.dart'; | 9 import 'package:analyzer/dart/ast/token.dart'; |
| 10 import 'package:analyzer/error/listener.dart'; | 10 import 'package:analyzer/error/listener.dart'; |
| (...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 this._resourceProvider, | 568 this._resourceProvider, |
| 569 this._sourceFactory, | 569 this._sourceFactory, |
| 570 this._analysisOptions, | 570 this._analysisOptions, |
| 571 this._salt) { | 571 this._salt) { |
| 572 _testView = new FileSystemStateTestView(this); | 572 _testView = new FileSystemStateTestView(this); |
| 573 } | 573 } |
| 574 | 574 |
| 575 /** | 575 /** |
| 576 * Return the known files. | 576 * Return the known files. |
| 577 */ | 577 */ |
| 578 Iterable<FileState> get knownFiles => | 578 List<FileState> get knownFiles => |
| 579 _pathToFiles.values.map((files) => files.first); | 579 _pathToFiles.values.map((files) => files.first).toList(); |
| 580 | 580 |
| 581 @visibleForTesting | 581 @visibleForTesting |
| 582 FileSystemStateTestView get test => _testView; | 582 FileSystemStateTestView get test => _testView; |
| 583 | 583 |
| 584 /** | 584 /** |
| 585 * Return the canonical [FileState] for the given absolute [path]. The | 585 * Return the canonical [FileState] for the given absolute [path]. The |
| 586 * returned file has the last known state since if was last refreshed. | 586 * returned file has the last known state since if was last refreshed. |
| 587 * | 587 * |
| 588 * Here "canonical" means that if the [path] is in a package `lib` then the | 588 * Here "canonical" means that if the [path] is in a package `lib` then the |
| 589 * returned file will have the `package:` style URI. | 589 * returned file will have the `package:` style URI. |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 .where((f) => f._transitiveFiles == null) | 705 .where((f) => f._transitiveFiles == null) |
| 706 .toSet(); | 706 .toSet(); |
| 707 } | 707 } |
| 708 | 708 |
| 709 Set<FileState> get filesWithoutTransitiveSignature { | 709 Set<FileState> get filesWithoutTransitiveSignature { |
| 710 return state._uriToFile.values | 710 return state._uriToFile.values |
| 711 .where((f) => f._transitiveSignature == null) | 711 .where((f) => f._transitiveSignature == null) |
| 712 .toSet(); | 712 .toSet(); |
| 713 } | 713 } |
| 714 } | 714 } |
| OLD | NEW |