| 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:async'; | 7 import 'dart:async'; | 
| 8 | 8 | 
| 9 import 'package:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; | 
| 10 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; | 10 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; | 
| (...skipping 7030 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 7041 | 7041 | 
| 7042   test_function_documented() async { | 7042   test_function_documented() async { | 
| 7043     var library = await checkLibrary(''' | 7043     var library = await checkLibrary(''' | 
| 7044 // Extra comment so doc comment offset != 0 | 7044 // Extra comment so doc comment offset != 0 | 
| 7045 /** | 7045 /** | 
| 7046  * Docs | 7046  * Docs | 
| 7047  */ | 7047  */ | 
| 7048 f() {}'''); | 7048 f() {}'''); | 
| 7049     if (isStrongMode) { | 7049     if (isStrongMode) { | 
| 7050       checkElementText(library, r''' | 7050       checkElementText(library, r''' | 
|  | 7051 /** | 
|  | 7052  * Docs | 
|  | 7053  */ | 
| 7051 dynamic f() {} | 7054 dynamic f() {} | 
| 7052 '''); | 7055 '''); | 
| 7053     } else { | 7056     } else { | 
| 7054       checkElementText(library, r''' | 7057       checkElementText(library, r''' | 
|  | 7058 /** | 
|  | 7059  * Docs | 
|  | 7060  */ | 
| 7055 dynamic f() {} | 7061 dynamic f() {} | 
| 7056 '''); | 7062 '''); | 
| 7057     } | 7063     } | 
| 7058   } | 7064   } | 
| 7059 | 7065 | 
| 7060   test_function_entry_point() async { | 7066   test_function_entry_point() async { | 
| 7061     var library = await checkLibrary('main() {}'); | 7067     var library = await checkLibrary('main() {}'); | 
| 7062     if (isStrongMode) { | 7068     checkElementText(library, r''' | 
| 7063       checkElementText(library, r''' |  | 
| 7064 dynamic main() {} | 7069 dynamic main() {} | 
| 7065 '''); | 7070 '''); | 
| 7066     } else { |  | 
| 7067       checkElementText(library, r''' |  | 
| 7068 dynamic main() {} |  | 
| 7069 '''); |  | 
| 7070     } |  | 
| 7071   } | 7071   } | 
| 7072 | 7072 | 
| 7073   test_function_entry_point_in_export() async { | 7073   test_function_entry_point_in_export() async { | 
| 7074     addLibrarySource('/a.dart', 'library a; main() {}'); | 7074     addLibrarySource('/a.dart', 'library a; main() {}'); | 
| 7075     var library = await checkLibrary('export "a.dart";'); | 7075     var library = await checkLibrary('export "a.dart";'); | 
| 7076     if (isStrongMode) { | 7076     if (isStrongMode) { | 
| 7077       checkElementText(library, r''' | 7077       checkElementText(library, r''' | 
| 7078 export 'a.dart'; | 7078 export 'a.dart'; | 
| 7079 '''); | 7079 '''); | 
| 7080     } else { | 7080     } else { | 
| (...skipping 6067 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 13148       fail('Unexpectedly tried to get unlinked summary for $uri'); | 13148       fail('Unexpectedly tried to get unlinked summary for $uri'); | 
| 13149     } | 13149     } | 
| 13150     return serializedUnit; | 13150     return serializedUnit; | 
| 13151   } | 13151   } | 
| 13152 | 13152 | 
| 13153   @override | 13153   @override | 
| 13154   bool hasLibrarySummary(String uri) { | 13154   bool hasLibrarySummary(String uri) { | 
| 13155     return true; | 13155     return true; | 
| 13156   } | 13156   } | 
| 13157 } | 13157 } | 
| OLD | NEW | 
|---|