| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 * results are "eventually consistent" with the file system by simply calling | 65 * results are "eventually consistent" with the file system by simply calling |
| 66 * [changeFile] any time the contents of a file on the file system have changed. | 66 * [changeFile] any time the contents of a file on the file system have changed. |
| 67 * | 67 * |
| 68 * | 68 * |
| 69 * TODO(scheglov) Clean up the list of implicitly analyzed files. | 69 * TODO(scheglov) Clean up the list of implicitly analyzed files. |
| 70 */ | 70 */ |
| 71 class AnalysisDriver implements AnalysisDriverGeneric { | 71 class AnalysisDriver implements AnalysisDriverGeneric { |
| 72 /** | 72 /** |
| 73 * The version of data format, should be incremented on every format change. | 73 * The version of data format, should be incremented on every format change. |
| 74 */ | 74 */ |
| 75 static const int DATA_VERSION = 27; | 75 static const int DATA_VERSION = 28; |
| 76 | 76 |
| 77 /** | 77 /** |
| 78 * The number of exception contexts allowed to write. Once this field is | 78 * The number of exception contexts allowed to write. Once this field is |
| 79 * zero, we stop writing any new exception contexts in this process. | 79 * zero, we stop writing any new exception contexts in this process. |
| 80 */ | 80 */ |
| 81 static int allowedNumberOfContextsToWrite = 10; | 81 static int allowedNumberOfContextsToWrite = 10; |
| 82 | 82 |
| 83 /** | 83 /** |
| 84 * The name of the driver, e.g. the name of the folder. | 84 * The name of the driver, e.g. the name of the folder. |
| 85 */ | 85 */ |
| (...skipping 1847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1933 libraryDeclarations.add(new TopLevelDeclarationInSource( | 1933 libraryDeclarations.add(new TopLevelDeclarationInSource( |
| 1934 file.source, declaration, isExported)); | 1934 file.source, declaration, isExported)); |
| 1935 } | 1935 } |
| 1936 } | 1936 } |
| 1937 } | 1937 } |
| 1938 | 1938 |
| 1939 // We're not done yet. | 1939 // We're not done yet. |
| 1940 return false; | 1940 return false; |
| 1941 } | 1941 } |
| 1942 } | 1942 } |
| OLD | NEW |