| 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: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/context/context_root.dart'; | 9 import 'package:analyzer/context/context_root.dart'; |
| 10 import 'package:analyzer/context/declared_variables.dart'; | 10 import 'package:analyzer/context/declared_variables.dart'; |
| 11 import 'package:analyzer/dart/ast/ast.dart'; | 11 import 'package:analyzer/dart/ast/ast.dart'; |
| 12 import 'package:analyzer/dart/element/element.dart' | 12 import 'package:analyzer/dart/element/element.dart' |
| 13 show CompilationUnitElement, LibraryElement; | 13 show CompilationUnitElement, LibraryElement; |
| 14 import 'package:analyzer/error/error.dart'; | 14 import 'package:analyzer/error/error.dart'; |
| 15 import 'package:analyzer/error/listener.dart'; | 15 import 'package:analyzer/error/listener.dart'; |
| 16 import 'package:analyzer/exception/exception.dart'; | 16 import 'package:analyzer/exception/exception.dart'; |
| 17 import 'package:analyzer/file_system/file_system.dart'; | 17 import 'package:analyzer/file_system/file_system.dart'; |
| 18 import 'package:analyzer/src/dart/analysis/file_state.dart'; | 18 import 'package:analyzer/src/dart/analysis/file_state.dart'; |
| 19 import 'package:analyzer/src/dart/analysis/file_tracker.dart'; | 19 import 'package:analyzer/src/dart/analysis/file_tracker.dart'; |
| 20 import 'package:analyzer/src/dart/analysis/index.dart'; | 20 import 'package:analyzer/src/dart/analysis/index.dart'; |
| 21 import 'package:analyzer/src/dart/analysis/library_analyzer.dart'; | 21 import 'package:analyzer/src/dart/analysis/library_analyzer.dart'; |
| 22 import 'package:analyzer/src/dart/analysis/library_context.dart'; | 22 import 'package:analyzer/src/dart/analysis/library_context.dart'; |
| 23 import 'package:analyzer/src/dart/analysis/search.dart'; | 23 import 'package:analyzer/src/dart/analysis/search.dart'; |
| 24 import 'package:analyzer/src/dart/analysis/status.dart'; | 24 import 'package:analyzer/src/dart/analysis/status.dart'; |
| 25 import 'package:analyzer/src/dart/analysis/top_level_declaration.dart'; | 25 import 'package:analyzer/src/dart/analysis/top_level_declaration.dart'; |
| 26 import 'package:analyzer/src/generated/engine.dart' | 26 import 'package:analyzer/src/generated/engine.dart' |
| 27 show AnalysisContext, AnalysisEngine, AnalysisOptions; | 27 show AnalysisContext, AnalysisEngine, AnalysisOptions; |
| 28 import 'package:analyzer/src/generated/source.dart'; | 28 import 'package:analyzer/src/generated/source.dart'; |
| 29 import 'package:analyzer/src/lint/registry.dart' as linter; | 29 import 'package:analyzer/src/lint/registry.dart' as linter; |
| 30 import 'package:analyzer/src/summary/api_signature.dart'; | |
| 31 import 'package:analyzer/src/summary/format.dart'; | 30 import 'package:analyzer/src/summary/format.dart'; |
| 32 import 'package:analyzer/src/summary/idl.dart'; | 31 import 'package:analyzer/src/summary/idl.dart'; |
| 33 import 'package:analyzer/src/summary/package_bundle_reader.dart'; | 32 import 'package:analyzer/src/summary/package_bundle_reader.dart'; |
| 33 import 'package:front_end/src/base/api_signature.dart'; |
| 34 import 'package:front_end/src/incremental/byte_store.dart'; | 34 import 'package:front_end/src/incremental/byte_store.dart'; |
| 35 import 'package:meta/meta.dart'; | 35 import 'package:meta/meta.dart'; |
| 36 | 36 |
| 37 /** | 37 /** |
| 38 * This class computes [AnalysisResult]s for Dart files. | 38 * This class computes [AnalysisResult]s for Dart files. |
| 39 * | 39 * |
| 40 * Let the set of "explicitly analyzed files" denote the set of paths that have | 40 * Let the set of "explicitly analyzed files" denote the set of paths that have |
| 41 * been passed to [addFile] but not subsequently passed to [removeFile]. Let | 41 * been passed to [addFile] but not subsequently passed to [removeFile]. Let |
| 42 * the "current analysis results" denote the map from the set of explicitly | 42 * the "current analysis results" denote the map from the set of explicitly |
| 43 * analyzed files to the most recent [AnalysisResult] delivered to [results] | 43 * analyzed files to the most recent [AnalysisResult] delivered to [results] |
| (...skipping 2056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2100 libraryDeclarations.add(new TopLevelDeclarationInSource( | 2100 libraryDeclarations.add(new TopLevelDeclarationInSource( |
| 2101 file.source, declaration, isExported)); | 2101 file.source, declaration, isExported)); |
| 2102 } | 2102 } |
| 2103 } | 2103 } |
| 2104 } | 2104 } |
| 2105 | 2105 |
| 2106 // We're not done yet. | 2106 // We're not done yet. |
| 2107 return false; | 2107 return false; |
| 2108 } | 2108 } |
| 2109 } | 2109 } |
| OLD | NEW |