| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 * results are "eventually consistent" with the file system by simply calling | 78 * results are "eventually consistent" with the file system by simply calling |
| 79 * [changeFile] any time the contents of a file on the file system have changed. | 79 * [changeFile] any time the contents of a file on the file system have changed. |
| 80 * | 80 * |
| 81 * | 81 * |
| 82 * TODO(scheglov) Clean up the list of implicitly analyzed files. | 82 * TODO(scheglov) Clean up the list of implicitly analyzed files. |
| 83 */ | 83 */ |
| 84 class AnalysisDriver implements AnalysisDriverGeneric { | 84 class AnalysisDriver implements AnalysisDriverGeneric { |
| 85 /** | 85 /** |
| 86 * The version of data format, should be incremented on every format change. | 86 * The version of data format, should be incremented on every format change. |
| 87 */ | 87 */ |
| 88 static const int DATA_VERSION = 37; | 88 static const int DATA_VERSION = 38; |
| 89 | 89 |
| 90 /** | 90 /** |
| 91 * The number of exception contexts allowed to write. Once this field is | 91 * The number of exception contexts allowed to write. Once this field is |
| 92 * zero, we stop writing any new exception contexts in this process. | 92 * zero, we stop writing any new exception contexts in this process. |
| 93 */ | 93 */ |
| 94 static int allowedNumberOfContextsToWrite = 10; | 94 static int allowedNumberOfContextsToWrite = 10; |
| 95 | 95 |
| 96 /** | 96 /** |
| 97 * The scheduler that schedules analysis work in this, and possibly other | 97 * The scheduler that schedules analysis work in this, and possibly other |
| 98 * analysis drivers. | 98 * analysis drivers. |
| (...skipping 1970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2069 libraryDeclarations.add(new TopLevelDeclarationInSource( | 2069 libraryDeclarations.add(new TopLevelDeclarationInSource( |
| 2070 file.source, declaration, isExported)); | 2070 file.source, declaration, isExported)); |
| 2071 } | 2071 } |
| 2072 } | 2072 } |
| 2073 } | 2073 } |
| 2074 | 2074 |
| 2075 // We're not done yet. | 2075 // We're not done yet. |
| 2076 return false; | 2076 return false; |
| 2077 } | 2077 } |
| 2078 } | 2078 } |
| OLD | NEW |