| 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 test.src.serialization.elements_test; | 5 library test.src.serialization.elements_test; |
| 6 | 6 |
| 7 import 'dart:convert'; | 7 import 'dart:convert'; |
| 8 | 8 |
| 9 import 'package:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
| 10 import 'package:analyzer/dart/element/element.dart'; | 10 import 'package:analyzer/dart/element/element.dart'; |
| (...skipping 2387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2398 } | 2398 } |
| 2399 | 2399 |
| 2400 test_enum_values() { | 2400 test_enum_values() { |
| 2401 checkLibrary('enum E { v1, v2 }'); | 2401 checkLibrary('enum E { v1, v2 }'); |
| 2402 } | 2402 } |
| 2403 | 2403 |
| 2404 test_enums() { | 2404 test_enums() { |
| 2405 checkLibrary('enum E1 { v1 } enum E2 { v2 }'); | 2405 checkLibrary('enum E1 { v1 } enum E2 { v2 }'); |
| 2406 } | 2406 } |
| 2407 | 2407 |
| 2408 test_executable_parameter_type_typedef() { |
| 2409 checkLibrary(r''' |
| 2410 typedef F(int p); |
| 2411 main(F f) {} |
| 2412 '''); |
| 2413 } |
| 2414 |
| 2408 test_export_class() { | 2415 test_export_class() { |
| 2409 addLibrarySource('/a.dart', 'class C {}'); | 2416 addLibrarySource('/a.dart', 'class C {}'); |
| 2410 checkLibrary('export "a.dart";'); | 2417 checkLibrary('export "a.dart";'); |
| 2411 } | 2418 } |
| 2412 | 2419 |
| 2413 test_export_class_type_alias() { | 2420 test_export_class_type_alias() { |
| 2414 addLibrarySource( | 2421 addLibrarySource( |
| 2415 '/a.dart', 'class C {} exends _D with _E; class _D {} class _E {}'); | 2422 '/a.dart', 'class C {} exends _D with _E; class _D {} class _E {}'); |
| 2416 checkLibrary('export "a.dart";'); | 2423 checkLibrary('export "a.dart";'); |
| 2417 } | 2424 } |
| (...skipping 1274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3692 fail('Unexpectedly tried to get unlinked summary for $uri'); | 3699 fail('Unexpectedly tried to get unlinked summary for $uri'); |
| 3693 } | 3700 } |
| 3694 return serializedUnit; | 3701 return serializedUnit; |
| 3695 } | 3702 } |
| 3696 | 3703 |
| 3697 @override | 3704 @override |
| 3698 bool hasLibrarySummary(String uri) { | 3705 bool hasLibrarySummary(String uri) { |
| 3699 return true; | 3706 return true; |
| 3700 } | 3707 } |
| 3701 } | 3708 } |
| OLD | NEW |