Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: pkg/front_end/lib/src/fasta/builder/formal_parameter_builder.dart

Issue 2916333002: Setup correct scope for initializers and complain about fields initialized more than once. (Closed)
Patch Set: A parenthesized expression doesn't have a name. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698