| 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 'package:analyzer/dart/ast/ast.dart'; | 7 import 'package:analyzer/dart/ast/ast.dart'; |
| 8 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; | 8 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; |
| 9 import 'package:analyzer/dart/constant/value.dart'; | 9 import 'package:analyzer/dart/constant/value.dart'; |
| 10 import 'package:analyzer/dart/element/element.dart'; | 10 import 'package:analyzer/dart/element/element.dart'; |
| (...skipping 3891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3902 | 3902 |
| 3903 test_invalid_setterParameter_fieldFormalParameter() { | 3903 test_invalid_setterParameter_fieldFormalParameter() { |
| 3904 checkLibrary(''' | 3904 checkLibrary(''' |
| 3905 class C { | 3905 class C { |
| 3906 int foo; | 3906 int foo; |
| 3907 void set bar(this.foo) {} | 3907 void set bar(this.foo) {} |
| 3908 } | 3908 } |
| 3909 '''); | 3909 '''); |
| 3910 } | 3910 } |
| 3911 | 3911 |
| 3912 test_invalid_setterParameter_fieldFormalParameter_self() { |
| 3913 checkLibrary(''' |
| 3914 class C { |
| 3915 set x(this.x) {} |
| 3916 } |
| 3917 '''); |
| 3918 } |
| 3919 |
| 3912 test_library() { | 3920 test_library() { |
| 3913 checkLibrary(''); | 3921 checkLibrary(''); |
| 3914 } | 3922 } |
| 3915 | 3923 |
| 3916 test_library_documented() { | 3924 test_library_documented() { |
| 3917 checkLibrary(''' | 3925 checkLibrary(''' |
| 3918 // Extra comment so doc comment offset != 0 | 3926 // Extra comment so doc comment offset != 0 |
| 3919 /** | 3927 /** |
| 3920 * Docs | 3928 * Docs |
| 3921 */ | 3929 */ |
| (...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5117 fail('Unexpectedly tried to get unlinked summary for $uri'); | 5125 fail('Unexpectedly tried to get unlinked summary for $uri'); |
| 5118 } | 5126 } |
| 5119 return serializedUnit; | 5127 return serializedUnit; |
| 5120 } | 5128 } |
| 5121 | 5129 |
| 5122 @override | 5130 @override |
| 5123 bool hasLibrarySummary(String uri) { | 5131 bool hasLibrarySummary(String uri) { |
| 5124 return true; | 5132 return true; |
| 5125 } | 5133 } |
| 5126 } | 5134 } |
| OLD | NEW |