OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 fasta.formal_parameter_builder; | 5 library fasta.formal_parameter_builder; |
6 | 6 |
7 import '../parser/parser.dart' show FormalParameterType; | 7 import '../parser/parser.dart' show FormalParameterType; |
8 | 8 |
9 import 'builder.dart' | 9 import 'builder.dart' |
10 show LibraryBuilder, MetadataBuilder, ModifierBuilder, TypeBuilder; | 10 show LibraryBuilder, MetadataBuilder, ModifierBuilder, TypeBuilder; |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 bool get isRequired => kind.isRequired; | 31 bool get isRequired => kind.isRequired; |
32 | 32 |
33 bool get isPositional => kind.isPositional || kind.isRequired; | 33 bool get isPositional => kind.isPositional || kind.isRequired; |
34 | 34 |
35 bool get isNamed => kind.isNamed; | 35 bool get isNamed => kind.isNamed; |
36 | 36 |
37 bool get isOptional => !isRequired; | 37 bool get isOptional => !isRequired; |
38 | 38 |
39 bool get isLocal => true; | 39 bool get isLocal => true; |
| 40 |
| 41 @override |
| 42 String get fullNameForErrors => name; |
40 } | 43 } |
OLD | NEW |