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 25 matching lines...) Expand all Loading... |
36 bool get isPositional => kind.isPositional || kind.isRequired; | 36 bool get isPositional => kind.isPositional || kind.isRequired; |
37 | 37 |
38 bool get isNamed => kind.isNamed; | 38 bool get isNamed => kind.isNamed; |
39 | 39 |
40 bool get isOptional => !isRequired; | 40 bool get isOptional => !isRequired; |
41 | 41 |
42 bool get isLocal => true; | 42 bool get isLocal => true; |
43 | 43 |
44 @override | 44 @override |
45 String get fullNameForErrors => name; | 45 String get fullNameForErrors => name; |
| 46 |
| 47 FormalParameterBuilder forFormalParameterInitializerScope(); |
46 } | 48 } |
OLD | NEW |