Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Side by Side Diff: pkg/front_end/lib/src/fasta/testing/validating_instrumentation.dart

Issue 3010613003: Simplify annotations in runtime check tests. (Closed)
Patch Set: Address code review comment Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 12 matching lines...) Expand all
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 [ 32 'checks': const [
33 'checkCall', 33 'callKind',
34 'checkFormal', 34 'checkFormal',
35 'checkInterface',
35 'checkReturn', 36 'checkReturn',
36 'checkTearOff', 37 'checkTearOff',
37 'forwardingStub', 38 'forwardingStub',
38 ], 39 ],
39 }; 40 };
40 41
41 /// Map from file URI to the as-yet unsatisfied expectations from that file, 42 /// Map from file URI to the as-yet unsatisfied expectations from that file,
42 /// organized by file offset. 43 /// organized by file offset.
43 final _unsatisfiedExpectations = <Uri, Map<int, List<_Expectation>>>{}; 44 final _unsatisfiedExpectations = <Uri, Map<int, List<_Expectation>>>{};
44 45
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 this.property, this.value, this.commentOffset, this.commentLength); 254 this.property, this.value, this.commentOffset, this.commentLength);
254 } 255 }
255 256
256 class _Fix { 257 class _Fix {
257 final int offset; 258 final int offset;
258 final int length; 259 final int length;
259 final String replacement; 260 final String replacement;
260 261
261 _Fix(this.offset, this.length, this.replacement); 262 _Fix(this.offset, this.length, this.replacement);
262 } 263 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698