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.task.dart; | 5 library analyzer.src.task.dart; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 import 'dart:math' as math; | 8 import 'dart:math' as math; |
9 | 9 |
10 import 'package:analyzer/src/context/cache.dart'; | 10 import 'package:analyzer/src/context/cache.dart'; |
(...skipping 2855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2866 void _addPublicNames(CompilationUnitElement compilationUnit) { | 2866 void _addPublicNames(CompilationUnitElement compilationUnit) { |
2867 compilationUnit.accessors.forEach(_addIfPublic); | 2867 compilationUnit.accessors.forEach(_addIfPublic); |
2868 compilationUnit.enums.forEach(_addIfPublic); | 2868 compilationUnit.enums.forEach(_addIfPublic); |
2869 compilationUnit.functions.forEach(_addIfPublic); | 2869 compilationUnit.functions.forEach(_addIfPublic); |
2870 compilationUnit.functionTypeAliases.forEach(_addIfPublic); | 2870 compilationUnit.functionTypeAliases.forEach(_addIfPublic); |
2871 compilationUnit.types.forEach(_addIfPublic); | 2871 compilationUnit.types.forEach(_addIfPublic); |
2872 } | 2872 } |
2873 } | 2873 } |
2874 | 2874 |
2875 /** | 2875 /** |
2876 * A task that finishes resolution by requesting [RESOLVED_UNIT6] for every | 2876 * A task that finishes resolution by requesting [RESOLVED_UNIT_NO_CONSTANTS] fo
r every |
2877 * unit in the libraries closure and produces [LIBRARY_ELEMENT]. | 2877 * unit in the libraries closure and produces [LIBRARY_ELEMENT]. |
2878 */ | 2878 */ |
2879 class ResolveLibraryReferencesTask extends SourceBasedAnalysisTask { | 2879 class ResolveLibraryReferencesTask extends SourceBasedAnalysisTask { |
2880 /** | 2880 /** |
2881 * The name of the [LIBRARY_ELEMENT6] input. | 2881 * The name of the [LIBRARY_ELEMENT6] input. |
2882 */ | 2882 */ |
2883 static const String LIBRARY_INPUT = 'LIBRARY_INPUT'; | 2883 static const String LIBRARY_INPUT = 'LIBRARY_INPUT'; |
2884 | 2884 |
2885 /** | 2885 /** |
2886 * The task descriptor describing this kind of task. | 2886 * The task descriptor describing this kind of task. |
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3519 @override | 3519 @override |
3520 bool moveNext() { | 3520 bool moveNext() { |
3521 if (_newSources.isEmpty) { | 3521 if (_newSources.isEmpty) { |
3522 return false; | 3522 return false; |
3523 } | 3523 } |
3524 currentTarget = _newSources.first; | 3524 currentTarget = _newSources.first; |
3525 _newSources.remove(currentTarget); | 3525 _newSources.remove(currentTarget); |
3526 return true; | 3526 return true; |
3527 } | 3527 } |
3528 } | 3528 } |
OLD | NEW |