OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 import 'dart:async'; | 4 import 'dart:async'; |
5 import 'dart:convert'; | 5 import 'dart:convert'; |
6 import 'dart:io'; | 6 import 'dart:io'; |
7 | 7 |
8 import 'package:front_end/src/base/instrumentation.dart'; | 8 import 'package:front_end/src/base/instrumentation.dart'; |
9 import 'package:front_end/src/fasta/compiler_context.dart' show CompilerContext; | 9 import 'package:front_end/src/fasta/compiler_context.dart' show CompilerContext; |
10 import 'package:front_end/src/fasta/messages.dart'; | 10 import 'package:front_end/src/fasta/messages.dart'; |
(...skipping 11 matching lines...) Expand all Loading... |
22 static const _FEATURES = const { | 22 static const _FEATURES = const { |
23 'inference': const [ | 23 'inference': const [ |
24 'topType', | 24 'topType', |
25 'typeArg', | 25 'typeArg', |
26 'typeArgs', | 26 'typeArgs', |
27 'promotedType', | 27 'promotedType', |
28 'type', | 28 'type', |
29 'returnType', | 29 'returnType', |
30 'target', | 30 'target', |
31 ], | 31 ], |
| 32 'checks': const [ |
| 33 'checkCall', |
| 34 'checkFormal', |
| 35 'checkReturn', |
| 36 'checkTearOff', |
| 37 'forwardingStub', |
| 38 ], |
32 }; | 39 }; |
33 | 40 |
34 /// Map from file URI to the as-yet unsatisfied expectations from that file, | 41 /// Map from file URI to the as-yet unsatisfied expectations from that file, |
35 /// organized by file offset. | 42 /// organized by file offset. |
36 final _unsatisfiedExpectations = <Uri, Map<int, List<_Expectation>>>{}; | 43 final _unsatisfiedExpectations = <Uri, Map<int, List<_Expectation>>>{}; |
37 | 44 |
38 /// Information about "testedFeatures" annotations, organized by file URI and | 45 /// Information about "testedFeatures" annotations, organized by file URI and |
39 /// file offset. The inner map is guaranteed to be in ascending order of | 46 /// file offset. The inner map is guaranteed to be in ascending order of |
40 /// file offset. | 47 /// file offset. |
41 final _testedFeaturesState = <Uri, Map<int, Set<String>>>{}; | 48 final _testedFeaturesState = <Uri, Map<int, Set<String>>>{}; |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 this.property, this.value, this.commentOffset, this.commentLength); | 253 this.property, this.value, this.commentOffset, this.commentLength); |
247 } | 254 } |
248 | 255 |
249 class _Fix { | 256 class _Fix { |
250 final int offset; | 257 final int offset; |
251 final int length; | 258 final int length; |
252 final String replacement; | 259 final String replacement; |
253 | 260 |
254 _Fix(this.offset, this.length, this.replacement); | 261 _Fix(this.offset, this.length, this.replacement); |
255 } | 262 } |
OLD | NEW |