| 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 'package:front_end/src/fasta/parser/parser.dart' | 7 import '../parser/parser.dart' show FormalParameterType; |
| 8 show FormalParameterType; | |
| 9 | 8 |
| 10 import 'builder.dart' | 9 import 'builder.dart' |
| 11 show LibraryBuilder, MetadataBuilder, ModifierBuilder, TypeBuilder; | 10 show LibraryBuilder, MetadataBuilder, ModifierBuilder, TypeBuilder; |
| 12 | 11 |
| 13 abstract class FormalParameterBuilder<T extends TypeBuilder> | 12 abstract class FormalParameterBuilder<T extends TypeBuilder> |
| 14 extends ModifierBuilder { | 13 extends ModifierBuilder { |
| 15 final List<MetadataBuilder> metadata; | 14 final List<MetadataBuilder> metadata; |
| 16 | 15 |
| 17 final int modifiers; | 16 final int modifiers; |
| 18 | 17 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 32 bool get isRequired => kind.isRequired; | 31 bool get isRequired => kind.isRequired; |
| 33 | 32 |
| 34 bool get isPositional => kind.isPositional || kind.isRequired; | 33 bool get isPositional => kind.isPositional || kind.isRequired; |
| 35 | 34 |
| 36 bool get isNamed => kind.isNamed; | 35 bool get isNamed => kind.isNamed; |
| 37 | 36 |
| 38 bool get isOptional => !isRequired; | 37 bool get isOptional => !isRequired; |
| 39 | 38 |
| 40 bool get isLocal => true; | 39 bool get isLocal => true; |
| 41 } | 40 } |
| OLD | NEW |