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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 element1.name, element2.name); | 433 element1.name, element2.name); |
434 check(element1, element2, 'sourcePosition', | 434 check(element1, element2, 'sourcePosition', |
435 element1.sourcePosition, element2.sourcePosition); | 435 element1.sourcePosition, element2.sourcePosition); |
436 checkTypes( | 436 checkTypes( |
437 element1, element2, 'type', | 437 element1, element2, 'type', |
438 element1.type, element2.type); | 438 element1.type, element2.type); |
439 check(element1, element2, 'isConst', | 439 check(element1, element2, 'isConst', |
440 element1.isConst, element2.isConst); | 440 element1.isConst, element2.isConst); |
441 check(element1, element2, 'isFinal', | 441 check(element1, element2, 'isFinal', |
442 element1.isFinal, element2.isFinal); | 442 element1.isFinal, element2.isFinal); |
443 if (element1.isConst) { | 443 checkConstants( |
444 checkConstants( | 444 element1, element2, 'constant', |
445 element1, element2, 'constant', | 445 element1.constant, element2.constant); |
446 element1.constant, element2.constant); | |
447 } | |
448 check(element1, element2, 'isTopLevel', | 446 check(element1, element2, 'isTopLevel', |
449 element1.isTopLevel, element2.isTopLevel); | 447 element1.isTopLevel, element2.isTopLevel); |
450 check(element1, element2, 'isStatic', | 448 check(element1, element2, 'isStatic', |
451 element1.isStatic, element2.isStatic); | 449 element1.isStatic, element2.isStatic); |
452 check(element1, element2, 'isInstanceMember', | 450 check(element1, element2, 'isInstanceMember', |
453 element1.isInstanceMember, element2.isInstanceMember); | 451 element1.isInstanceMember, element2.isInstanceMember); |
454 | 452 |
455 checkElementIdentities( | 453 checkElementIdentities( |
456 element1, element2, 'library', | 454 element1, element2, 'library', |
457 element1.library, element2.library); | 455 element1.library, element2.library); |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
677 void visitPrefixElement(PrefixElement element1, PrefixElement element2) { | 675 void visitPrefixElement(PrefixElement element1, PrefixElement element2) { |
678 check( | 676 check( |
679 element1, element2, 'isDeferred', | 677 element1, element2, 'isDeferred', |
680 element1.isDeferred, element2.isDeferred); | 678 element1.isDeferred, element2.isDeferred); |
681 checkElementIdentities( | 679 checkElementIdentities( |
682 element1, element2, 'importedLibrary', | 680 element1, element2, 'importedLibrary', |
683 element1.deferredImport, element2.deferredImport); | 681 element1.deferredImport, element2.deferredImport); |
684 // TODO(johnniwinther): Check members. | 682 // TODO(johnniwinther): Check members. |
685 } | 683 } |
686 } | 684 } |
OLD | NEW |