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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 check(element1, element2, 'libraryName', | 346 check(element1, element2, 'libraryName', |
347 element1.libraryName, element2.libraryName); | 347 element1.libraryName, element2.libraryName); |
348 visitMembers(element1, element2); | 348 visitMembers(element1, element2); |
349 visit(element1.entryCompilationUnit, element2.entryCompilationUnit); | 349 visit(element1.entryCompilationUnit, element2.entryCompilationUnit); |
350 | 350 |
351 checkElementLists( | 351 checkElementLists( |
352 element1, element2, 'compilationUnits', | 352 element1, element2, 'compilationUnits', |
353 LibrarySerializer.getCompilationUnits(element1), | 353 LibrarySerializer.getCompilationUnits(element1), |
354 LibrarySerializer.getCompilationUnits(element2)); | 354 LibrarySerializer.getCompilationUnits(element2)); |
355 | 355 |
356 checkElementListIdentities( | 356 checkElementLists( |
357 element1, element2, 'imports', | 357 element1, element2, 'imports', |
358 LibrarySerializer.getImports(element1), | 358 LibrarySerializer.getImports(element1), |
359 LibrarySerializer.getImports(element2)); | 359 LibrarySerializer.getImports(element2)); |
360 checkElementListIdentities( | 360 checkElementLists( |
361 element1, element2, 'exports', element1.exports, element2.exports); | 361 element1, element2, 'exports', element1.exports, element2.exports); |
362 | 362 |
363 checkElementListIdentities( | 363 checkElementListIdentities( |
364 element1, element2, 'importScope', | 364 element1, element2, 'importScope', |
365 LibrarySerializer.getImportedElements(element1), | 365 LibrarySerializer.getImportedElements(element1), |
366 LibrarySerializer.getImportedElements(element2)); | 366 LibrarySerializer.getImportedElements(element2)); |
367 | 367 |
368 checkElementListIdentities( | 368 checkElementListIdentities( |
369 element1, element2, 'exportScope', | 369 element1, element2, 'exportScope', |
370 LibrarySerializer.getExportedElements(element1), | 370 LibrarySerializer.getExportedElements(element1), |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
853 // TODO(johnniwinther): Check members. | 853 // TODO(johnniwinther): Check members. |
854 } | 854 } |
855 | 855 |
856 @override | 856 @override |
857 void visitErroneousElement( | 857 void visitErroneousElement( |
858 ErroneousElement element1, ErroneousElement element2) { | 858 ErroneousElement element1, ErroneousElement element2) { |
859 check(element1, element2, 'messageKind', | 859 check(element1, element2, 'messageKind', |
860 element1.messageKind, element2.messageKind); | 860 element1.messageKind, element2.messageKind); |
861 } | 861 } |
862 } | 862 } |
OLD | NEW |