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

Side by Side Diff: pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart

Issue 2746013003: [fasta] Add and correct even more offsets (Closed)
Patch Set: Created 3 years, 9 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.kernel_enum_builder; 5 library fasta.kernel_enum_builder;
6 6
7 import 'package:kernel/ast.dart' 7 import 'package:kernel/ast.dart'
8 show 8 show
9 Arguments, 9 Arguments,
10 AsyncMarker, 10 AsyncMarker,
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 null, 131 null,
132 0, 132 0,
133 stringType, 133 stringType,
134 "toString", 134 "toString",
135 null, 135 null,
136 null, 136 null,
137 AsyncMarker.Sync, 137 AsyncMarker.Sync,
138 ProcedureKind.Method, 138 ProcedureKind.Method,
139 parent, 139 parent,
140 charOffset, 140 charOffset,
141 charOffset,
141 charEndOffset); 142 charEndOffset);
142 members["toString"] = toStringBuilder; 143 members["toString"] = toStringBuilder;
143 String className = name; 144 String className = name;
144 for (String name in constants) { 145 for (String name in constants) {
145 if (members.containsKey(name)) { 146 if (members.containsKey(name)) {
146 inputError(null, null, "Duplicated name: $name"); 147 inputError(null, null, "Duplicated name: $name");
147 continue; 148 continue;
148 } 149 }
149 KernelFieldBuilder fieldBuilder = new KernelFieldBuilder( 150 KernelFieldBuilder fieldBuilder = new KernelFieldBuilder(
150 null, 151 null,
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 Arguments arguments = 226 Arguments arguments =
226 new Arguments(<Expression>[new IntLiteral(index++)]); 227 new Arguments(<Expression>[new IntLiteral(index++)]);
227 field.initializer = 228 field.initializer =
228 new ConstructorInvocation(constructor, arguments, isConst: true); 229 new ConstructorInvocation(constructor, arguments, isConst: true);
229 } 230 }
230 return super.build(libraryBuilder); 231 return super.build(libraryBuilder);
231 } 232 }
232 233
233 Builder findConstructorOrFactory(String name) => null; 234 Builder findConstructorOrFactory(String name) => null;
234 } 235 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698