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'; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 * results are "eventually consistent" with the file system by simply calling | 85 * results are "eventually consistent" with the file system by simply calling |
86 * [changeFile] any time the contents of a file on the file system have changed. | 86 * [changeFile] any time the contents of a file on the file system have changed. |
87 * | 87 * |
88 * | 88 * |
89 * TODO(scheglov) Clean up the list of implicitly analyzed files. | 89 * TODO(scheglov) Clean up the list of implicitly analyzed files. |
90 */ | 90 */ |
91 class AnalysisDriver implements AnalysisDriverGeneric { | 91 class AnalysisDriver implements AnalysisDriverGeneric { |
92 /** | 92 /** |
93 * The version of data format, should be incremented on every format change. | 93 * The version of data format, should be incremented on every format change. |
94 */ | 94 */ |
95 static const int DATA_VERSION = 41; | 95 static const int DATA_VERSION = 42; |
96 | 96 |
97 /** | 97 /** |
98 * The number of exception contexts allowed to write. Once this field is | 98 * The number of exception contexts allowed to write. Once this field is |
99 * zero, we stop writing any new exception contexts in this process. | 99 * zero, we stop writing any new exception contexts in this process. |
100 */ | 100 */ |
101 static int allowedNumberOfContextsToWrite = 10; | 101 static int allowedNumberOfContextsToWrite = 10; |
102 | 102 |
103 /** | 103 /** |
104 * The scheduler that schedules analysis work in this, and possibly other | 104 * The scheduler that schedules analysis work in this, and possibly other |
105 * analysis drivers. | 105 * analysis drivers. |
(...skipping 2015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2121 libraryDeclarations.add(new TopLevelDeclarationInSource( | 2121 libraryDeclarations.add(new TopLevelDeclarationInSource( |
2122 file.source, declaration, isExported)); | 2122 file.source, declaration, isExported)); |
2123 } | 2123 } |
2124 } | 2124 } |
2125 } | 2125 } |
2126 | 2126 |
2127 // We're not done yet. | 2127 // We're not done yet. |
2128 return false; | 2128 return false; |
2129 } | 2129 } |
2130 } | 2130 } |
OLD | NEW |