OLD | NEW |
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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 void visitClassElement(ClassElement element1, ClassElement element2) { | 384 void visitClassElement(ClassElement element1, ClassElement element2) { |
385 checkElementIdentities(null, null, null, element1, element2); | 385 checkElementIdentities(null, null, null, element1, element2); |
386 check(element1, element2, 'name', | 386 check(element1, element2, 'name', |
387 element1.name, element2.name); | 387 element1.name, element2.name); |
388 if (!element1.isUnnamedMixinApplication) { | 388 if (!element1.isUnnamedMixinApplication) { |
389 check(element1, element2, 'sourcePosition', | 389 check(element1, element2, 'sourcePosition', |
390 element1.sourcePosition, element2.sourcePosition); | 390 element1.sourcePosition, element2.sourcePosition); |
391 } else { | 391 } else { |
392 check(element1, element2, 'sourcePosition.uri', | 392 check(element1, element2, 'sourcePosition.uri', |
393 element1.sourcePosition.uri, element2.sourcePosition.uri); | 393 element1.sourcePosition.uri, element2.sourcePosition.uri); |
| 394 MixinApplicationElement mixin1 = element1; |
| 395 MixinApplicationElement mixin2 = element2; |
| 396 checkElementIdentities(mixin1, mixin2, 'subclass', |
| 397 mixin1.subclass, mixin2.subclass); |
| 398 checkTypes(mixin1, mixin2, 'mixinType', |
| 399 mixin1.mixinType, mixin2.mixinType); |
394 } | 400 } |
395 checkElementIdentities( | 401 checkElementIdentities( |
396 element1, element2, 'library', | 402 element1, element2, 'library', |
397 element1.library, element2.library); | 403 element1.library, element2.library); |
398 checkElementIdentities( | 404 checkElementIdentities( |
399 element1, element2, 'compilationUnit', | 405 element1, element2, 'compilationUnit', |
400 element1.compilationUnit, element2.compilationUnit); | 406 element1.compilationUnit, element2.compilationUnit); |
401 checkTypeLists( | 407 checkTypeLists( |
402 element1, element2, 'typeVariables', | 408 element1, element2, 'typeVariables', |
403 element1.typeVariables, element2.typeVariables); | 409 element1.typeVariables, element2.typeVariables); |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 void visitPrefixElement(PrefixElement element1, PrefixElement element2) { | 751 void visitPrefixElement(PrefixElement element1, PrefixElement element2) { |
746 check( | 752 check( |
747 element1, element2, 'isDeferred', | 753 element1, element2, 'isDeferred', |
748 element1.isDeferred, element2.isDeferred); | 754 element1.isDeferred, element2.isDeferred); |
749 checkElementIdentities( | 755 checkElementIdentities( |
750 element1, element2, 'importedLibrary', | 756 element1, element2, 'importedLibrary', |
751 element1.deferredImport, element2.deferredImport); | 757 element1.deferredImport, element2.deferredImport); |
752 // TODO(johnniwinther): Check members. | 758 // TODO(johnniwinther): Check members. |
753 } | 759 } |
754 } | 760 } |
OLD | NEW |