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/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
10 import 'package:analyzer/error/error.dart'; | 10 import 'package:analyzer/error/error.dart'; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 * | 59 * |
60 * | 60 * |
61 * TODO(scheglov) Clean up the list of implicitly analyzed files. | 61 * TODO(scheglov) Clean up the list of implicitly analyzed files. |
62 * | 62 * |
63 * TODO(scheglov) Handle not existing 'dart:x' URIs (while user is typing). | 63 * TODO(scheglov) Handle not existing 'dart:x' URIs (while user is typing). |
64 */ | 64 */ |
65 class AnalysisDriver { | 65 class AnalysisDriver { |
66 /** | 66 /** |
67 * The version of data format, should be incremented on every format change. | 67 * The version of data format, should be incremented on every format change. |
68 */ | 68 */ |
69 static const int DATA_VERSION = 1; | 69 static const int DATA_VERSION = 2; |
70 | 70 |
71 String name; | 71 String name; |
72 final PerformanceLog _logger; | 72 final PerformanceLog _logger; |
73 | 73 |
74 /** | 74 /** |
75 * The resource provider for working with files. | 75 * The resource provider for working with files. |
76 */ | 76 */ |
77 final ResourceProvider _resourceProvider; | 77 final ResourceProvider _resourceProvider; |
78 | 78 |
79 /** | 79 /** |
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1022 /** | 1022 /** |
1023 * Complete the [signal] future if it is not completed yet. It is safe to | 1023 * Complete the [signal] future if it is not completed yet. It is safe to |
1024 * call this method multiple times, but the [signal] will complete only once. | 1024 * call this method multiple times, but the [signal] will complete only once. |
1025 */ | 1025 */ |
1026 void notify() { | 1026 void notify() { |
1027 if (!_completer.isCompleted) { | 1027 if (!_completer.isCompleted) { |
1028 _completer.complete(null); | 1028 _completer.complete(null); |
1029 } | 1029 } |
1030 } | 1030 } |
1031 } | 1031 } |
OLD | NEW |