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

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

Issue 1924053003: Serialize more properties of ConstructorElement. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: dartfmt 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
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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 element1.type, element2.type); 553 element1.type, element2.type);
554 check(element1, element2, 'isConst', 554 check(element1, element2, 'isConst',
555 element1.isConst, element2.isConst); 555 element1.isConst, element2.isConst);
556 check(element1, element2, 'isExternal', 556 check(element1, element2, 'isExternal',
557 element1.isExternal, element2.isExternal); 557 element1.isExternal, element2.isExternal);
558 if (element1.isConst && !element1.isExternal) { 558 if (element1.isConst && !element1.isExternal) {
559 constantConstructorEquivalence( 559 constantConstructorEquivalence(
560 element1.constantConstructor, 560 element1.constantConstructor,
561 element2.constantConstructor); 561 element2.constantConstructor);
562 } 562 }
563 check(element1, element2, 'isRedirectingGenerative',
564 element1.isRedirectingGenerative, element2.isRedirectingGenerative);
565 check(element1, element2, 'isRedirectingFactory',
566 element1.isRedirectingFactory, element2.isRedirectingFactory);
567 checkElementIdentities(element1, element2, 'effectiveTarget',
568 element1.effectiveTarget, element2.effectiveTarget);
569 checkElementIdentities(element1, element2, 'definingConstructor',
570 element1.definingConstructor, element2.definingConstructor);
571 check(
572 element1, element2, 'effectiveTargetType',
573 element1.computeEffectiveTargetType(element1.enclosingClass.thisType),
574 element2.computeEffectiveTargetType(element2.enclosingClass.thisType),
575 areTypesEquivalent);
576 checkElementIdentities(element1, element2, 'immediateRedirectionTarget',
577 element1.immediateRedirectionTarget,
578 element2.immediateRedirectionTarget);
579 checkElementIdentities(element1, element2, 'redirectionDeferredPrefix',
580 element1.redirectionDeferredPrefix, element2.redirectionDeferredPrefix);
563 } 581 }
564 582
565 @override 583 @override
566 void visitAbstractFieldElement(AbstractFieldElement element1, 584 void visitAbstractFieldElement(AbstractFieldElement element1,
567 AbstractFieldElement element2) { 585 AbstractFieldElement element2) {
568 visit(element1.getter, element2.getter); 586 visit(element1.getter, element2.getter);
569 visit(element1.setter, element2.setter); 587 visit(element1.setter, element2.setter);
570 } 588 }
571 589
572 @override 590 @override
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 void visitPrefixElement(PrefixElement element1, PrefixElement element2) { 693 void visitPrefixElement(PrefixElement element1, PrefixElement element2) {
676 check( 694 check(
677 element1, element2, 'isDeferred', 695 element1, element2, 'isDeferred',
678 element1.isDeferred, element2.isDeferred); 696 element1.isDeferred, element2.isDeferred);
679 checkElementIdentities( 697 checkElementIdentities(
680 element1, element2, 'importedLibrary', 698 element1, element2, 'importedLibrary',
681 element1.deferredImport, element2.deferredImport); 699 element1.deferredImport, element2.deferredImport);
682 // TODO(johnniwinther): Check members. 700 // TODO(johnniwinther): Check members.
683 } 701 }
684 } 702 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698