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

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

Issue 2746013003: [fasta] Add and correct even more offsets (Closed)
Patch Set: Removed formalParametersToken parameter 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_target; 5 library fasta.kernel_target;
6 6
7 import 'dart:async' show Future; 7 import 'dart:async' show Future;
8 8
9 import 'dart:io' show File, IOSink; 9 import 'dart:io' show File, IOSink;
10 10
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 null, 312 null,
313 0, 313 0,
314 null, 314 null,
315 "main", 315 "main",
316 null, 316 null,
317 null, 317 null,
318 AsyncMarker.Sync, 318 AsyncMarker.Sync,
319 ProcedureKind.Method, 319 ProcedureKind.Method,
320 library, 320 library,
321 -1, 321 -1,
322 -1,
322 -1); 323 -1);
323 library.addBuilder(mainBuilder.name, mainBuilder, -1); 324 library.addBuilder(mainBuilder.name, mainBuilder, -1);
324 mainBuilder.body = new ExpressionStatement( 325 mainBuilder.body = new ExpressionStatement(
325 new Throw(new StringLiteral("${errors.join('\n')}"))); 326 new Throw(new StringLiteral("${errors.join('\n')}")));
326 } 327 }
327 library.build(); 328 library.build();
328 return link(<Library>[library.library]); 329 return link(<Library>[library.library]);
329 } 330 }
330 331
331 /// Creates a program by combining [libraries] with the libraries of 332 /// Creates a program by combining [libraries] with the libraries of
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 } 670 }
670 for (Constructor constructor in superclass.constructors) { 671 for (Constructor constructor in superclass.constructors) {
671 if (constructor.name.name.isEmpty) { 672 if (constructor.name.name.isEmpty) {
672 return constructor.function.requiredParameterCount == 0 673 return constructor.function.requiredParameterCount == 0
673 ? constructor 674 ? constructor
674 : null; 675 : null;
675 } 676 }
676 } 677 }
677 return null; 678 return null;
678 } 679 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_procedure_builder.dart ('k') | pkg/front_end/lib/src/fasta/parser/listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698