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/declared_variables.dart'; | 9 import 'package:analyzer/context/declared_variables.dart'; |
10 import 'package:analyzer/dart/ast/ast.dart'; | 10 import 'package:analyzer/dart/ast/ast.dart'; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 * results are "eventually consistent" with the file system by simply calling | 67 * results are "eventually consistent" with the file system by simply calling |
68 * [changeFile] any time the contents of a file on the file system have changed. | 68 * [changeFile] any time the contents of a file on the file system have changed. |
69 * | 69 * |
70 * | 70 * |
71 * TODO(scheglov) Clean up the list of implicitly analyzed files. | 71 * TODO(scheglov) Clean up the list of implicitly analyzed files. |
72 */ | 72 */ |
73 class AnalysisDriver { | 73 class AnalysisDriver { |
74 /** | 74 /** |
75 * The version of data format, should be incremented on every format change. | 75 * The version of data format, should be incremented on every format change. |
76 */ | 76 */ |
77 static const int DATA_VERSION = 12; | 77 static const int DATA_VERSION = 13; |
78 | 78 |
79 /** | 79 /** |
80 * The name of the driver, e.g. the name of the folder. | 80 * The name of the driver, e.g. the name of the folder. |
81 */ | 81 */ |
82 final String name; | 82 final String name; |
83 | 83 |
84 /** | 84 /** |
85 * The scheduler that schedules analysis work in this, and possibly other | 85 * The scheduler that schedules analysis work in this, and possibly other |
86 * analysis drivers. | 86 * analysis drivers. |
87 */ | 87 */ |
(...skipping 1593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1681 libraryDeclarations.add(new TopLevelDeclarationInSource( | 1681 libraryDeclarations.add(new TopLevelDeclarationInSource( |
1682 file.source, declaration, isExported)); | 1682 file.source, declaration, isExported)); |
1683 } | 1683 } |
1684 } | 1684 } |
1685 } | 1685 } |
1686 | 1686 |
1687 // We're not done yet. | 1687 // We're not done yet. |
1688 return false; | 1688 return false; |
1689 } | 1689 } |
1690 } | 1690 } |
OLD | NEW |