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

Side by Side Diff: tests/compiler/dart2js/serialization/test_helper.dart

Issue 1975153002: Support (de)serialization from command-line (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 4 years, 7 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
« no previous file with comments | « tests/compiler/dart2js/serialization/resolved_ast_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 library dart2js.serialization_test_helper; 5 library dart2js.serialization_test_helper;
6 6
7 import 'dart:io';
8 import '../memory_compiler.dart';
9 import 'package:async_helper/async_helper.dart';
10 import 'package:compiler/src/common/resolution.dart'; 7 import 'package:compiler/src/common/resolution.dart';
11 import 'package:compiler/src/commandline_options.dart';
12 import 'package:compiler/src/constants/constructors.dart';
13 import 'package:compiler/src/constants/expressions.dart'; 8 import 'package:compiler/src/constants/expressions.dart';
14 import 'package:compiler/src/dart_types.dart'; 9 import 'package:compiler/src/dart_types.dart';
15 import 'package:compiler/src/compiler.dart'; 10 import 'package:compiler/src/compiler.dart';
16 import 'package:compiler/src/diagnostics/invariant.dart';
17 import 'package:compiler/src/elements/elements.dart'; 11 import 'package:compiler/src/elements/elements.dart';
18 import 'package:compiler/src/elements/visitor.dart';
19 import 'package:compiler/src/ordered_typeset.dart';
20 import 'package:compiler/src/serialization/element_serialization.dart';
21 import 'package:compiler/src/serialization/equivalence.dart'; 12 import 'package:compiler/src/serialization/equivalence.dart';
22 import 'package:compiler/src/serialization/json_serializer.dart';
23 import 'package:compiler/src/serialization/serialization.dart';
24 import 'package:compiler/src/tree/nodes.dart'; 13 import 'package:compiler/src/tree/nodes.dart';
25 14
26 /// Strategy for checking equivalence. 15 /// Strategy for checking equivalence.
27 /// 16 ///
28 /// Use this strategy to fail early with contextual information in the event of 17 /// Use this strategy to fail early with contextual information in the event of
29 /// inequivalence. 18 /// inequivalence.
30 class CheckStrategy implements TestStrategy { 19 class CheckStrategy implements TestStrategy {
31 const CheckStrategy(); 20 const CheckStrategy();
32 21
33 @override 22 @override
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 375
387 if (impact1 == null) { 376 if (impact1 == null) {
388 throw 'Missing impact for $member1. $member2 has $impact2'; 377 throw 'Missing impact for $member1. $member2 has $impact2';
389 } 378 }
390 if (impact2 == null) { 379 if (impact2 == null) {
391 throw 'Missing impact for $member2. $member1 has $impact1'; 380 throw 'Missing impact for $member2. $member1 has $impact1';
392 } 381 }
393 382
394 testResolutionImpactEquivalence(impact1, impact2, const CheckStrategy()); 383 testResolutionImpactEquivalence(impact1, impact2, const CheckStrategy());
395 } 384 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/serialization/resolved_ast_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698