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 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
843 check( | 843 check( |
844 element1, element2, 'isDeferred', | 844 element1, element2, 'isDeferred', |
845 element1.isDeferred, element2.isDeferred); | 845 element1.isDeferred, element2.isDeferred); |
846 checkElementIdentities( | 846 checkElementIdentities( |
847 element1, element2, 'deferredImport', | 847 element1, element2, 'deferredImport', |
848 element1.deferredImport, element2.deferredImport); | 848 element1.deferredImport, element2.deferredImport); |
849 if (element1.isDeferred) { | 849 if (element1.isDeferred) { |
850 checkElementProperties(element1, element2, | 850 checkElementProperties(element1, element2, |
851 'loadLibrary', element1.loadLibrary, element2.loadLibrary); | 851 'loadLibrary', element1.loadLibrary, element2.loadLibrary); |
852 } | 852 } |
853 // TODO(johnniwinther): Check members. | 853 element1.forEachLocalMember((Element member1) { |
| 854 String name = member1.name; |
| 855 Element member2 = element2.lookupLocalMember(name); |
| 856 checkElementIdentities(element1, element2, 'lookupLocalMember:$name', |
| 857 member1, member2); |
| 858 }); |
854 } | 859 } |
855 | 860 |
856 @override | 861 @override |
857 void visitErroneousElement( | 862 void visitErroneousElement( |
858 ErroneousElement element1, ErroneousElement element2) { | 863 ErroneousElement element1, ErroneousElement element2) { |
859 check(element1, element2, 'messageKind', | 864 check(element1, element2, 'messageKind', |
860 element1.messageKind, element2.messageKind); | 865 element1.messageKind, element2.messageKind); |
861 } | 866 } |
862 } | 867 } |
OLD | NEW |