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 3882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3893 | 3893 |
3894 test_invalid_importPrefix_asTypeArgument() { | 3894 test_invalid_importPrefix_asTypeArgument() { |
3895 checkLibrary(''' | 3895 checkLibrary(''' |
3896 import 'dart:async' as ppp; | 3896 import 'dart:async' as ppp; |
3897 class C { | 3897 class C { |
3898 List<ppp> v; | 3898 List<ppp> v; |
3899 } | 3899 } |
3900 '''); | 3900 '''); |
3901 } | 3901 } |
3902 | 3902 |
| 3903 test_invalid_setterParameter_fieldFormalParameter() { |
| 3904 checkLibrary(''' |
| 3905 class C { |
| 3906 int foo; |
| 3907 void set bar(this.foo) {} |
| 3908 } |
| 3909 '''); |
| 3910 } |
| 3911 |
3903 test_library() { | 3912 test_library() { |
3904 checkLibrary(''); | 3913 checkLibrary(''); |
3905 } | 3914 } |
3906 | 3915 |
3907 test_library_documented() { | 3916 test_library_documented() { |
3908 checkLibrary(''' | 3917 checkLibrary(''' |
3909 // Extra comment so doc comment offset != 0 | 3918 // Extra comment so doc comment offset != 0 |
3910 /** | 3919 /** |
3911 * Docs | 3920 * Docs |
3912 */ | 3921 */ |
(...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5096 fail('Unexpectedly tried to get unlinked summary for $uri'); | 5105 fail('Unexpectedly tried to get unlinked summary for $uri'); |
5097 } | 5106 } |
5098 return serializedUnit; | 5107 return serializedUnit; |
5099 } | 5108 } |
5100 | 5109 |
5101 @override | 5110 @override |
5102 bool hasLibrarySummary(String uri) { | 5111 bool hasLibrarySummary(String uri) { |
5103 return true; | 5112 return true; |
5104 } | 5113 } |
5105 } | 5114 } |
OLD | NEW |