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

Side by Side Diff: tests/compiler/dart2js/serialization_test.dart

Issue 1881013002: Expand ResolvedAst to handle synthetic constructors. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments + fix test, cps and compilation units for injected members. Created 4 years, 8 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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; 5 library dart2js.serialization_test;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 import 'memory_compiler.dart'; 8 import 'memory_compiler.dart';
9 import 'package:async_helper/async_helper.dart'; 9 import 'package:async_helper/async_helper.dart';
10 import 'package:compiler/src/commandline_options.dart'; 10 import 'package:compiler/src/commandline_options.dart';
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 String message = 340 String message =
341 'Missing member for $member1 in\n ${members2.join('\n ')}'; 341 'Missing member for $member1 in\n ${members2.join('\n ')}';
342 if (member1.isAbstractField) { 342 if (member1.isAbstractField) {
343 // TODO(johnniwinther): Ensure abstract fields are handled correctly. 343 // TODO(johnniwinther): Ensure abstract fields are handled correctly.
344 //print(message); 344 //print(message);
345 continue; 345 continue;
346 } else { 346 } else {
347 throw message; 347 throw message;
348 } 348 }
349 } 349 }
350 //print('Checking member ${member1} against ${member2}');
351 visit(member1, member2); 350 visit(member1, member2);
352 } 351 }
353 } 352 }
354 353
355 @override 354 @override
356 void visitClassElement(ClassElement element1, ClassElement element2) { 355 void visitClassElement(ClassElement element1, ClassElement element2) {
357 checkElementIdentities(null, null, null, element1, element2); 356 checkElementIdentities(null, null, null, element1, element2);
358 check(element1, element2, 'name', 357 check(element1, element2, 'name',
359 element1.name, element2.name); 358 element1.name, element2.name);
360 check(element1, element2, 'sourcePosition', 359 check(element1, element2, 'sourcePosition',
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 void visitPrefixElement(PrefixElement element1, PrefixElement element2) { 631 void visitPrefixElement(PrefixElement element1, PrefixElement element2) {
633 check( 632 check(
634 element1, element2, 'isDeferred', 633 element1, element2, 'isDeferred',
635 element1.isDeferred, element2.isDeferred); 634 element1.isDeferred, element2.isDeferred);
636 checkElementIdentities( 635 checkElementIdentities(
637 element1, element2, 'importedLibrary', 636 element1, element2, 'importedLibrary',
638 element1.deferredImport, element2.deferredImport); 637 element1.deferredImport, element2.deferredImport);
639 // TODO(johnniwinther): Check members. 638 // TODO(johnniwinther): Check members.
640 } 639 }
641 } 640 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/serialization_model_test.dart ('k') | tests/compiler/dart2js/serialization_test_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698