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

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

Issue 2916333002: Setup correct scope for initializers and complain about fields initialized more than once. (Closed)
Patch Set: More typos. 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
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/builder/formal_parameter_builder.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.field_builder; 5 library fasta.field_builder;
6 6
7 import 'builder.dart' show LibraryBuilder, MemberBuilder; 7 import 'builder.dart' show LibraryBuilder, MemberBuilder;
8 8
9 import 'package:kernel/ast.dart' show DartType; 9 import 'package:kernel/ast.dart' show DartType;
10 10
11 abstract class FieldBuilder<T> extends MemberBuilder { 11 abstract class FieldBuilder<T> extends MemberBuilder {
12 final String name; 12 final String name;
13 13
14 final int modifiers; 14 final int modifiers;
15 15
16 FieldBuilder( 16 FieldBuilder(
17 this.name, this.modifiers, LibraryBuilder compilationUnit, int charOffset) 17 this.name, this.modifiers, LibraryBuilder compilationUnit, int charOffset)
18 : super(compilationUnit, charOffset); 18 : super(compilationUnit, charOffset);
19 19
20 DartType get builtType; 20 DartType get builtType;
21 21
22 void set initializer(T value); 22 void set initializer(T value);
23 23
24 bool get hasInitializer;
25
24 bool get isField => true; 26 bool get isField => true;
25 } 27 }
OLDNEW
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/builder/formal_parameter_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698