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

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: 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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 null, 300 null,
301 0, 301 0,
302 null, 302 null,
303 "main", 303 "main",
304 null, 304 null,
305 null, 305 null,
306 AsyncMarker.Sync, 306 AsyncMarker.Sync,
307 ProcedureKind.Method, 307 ProcedureKind.Method,
308 library, 308 library,
309 -1, 309 -1,
310 -1,
310 -1); 311 -1);
311 library.addBuilder(mainBuilder.name, mainBuilder, -1); 312 library.addBuilder(mainBuilder.name, mainBuilder, -1);
312 mainBuilder.body = new ExpressionStatement( 313 mainBuilder.body = new ExpressionStatement(
313 new Throw(new StringLiteral("${errors.join('\n')}"))); 314 new Throw(new StringLiteral("${errors.join('\n')}")));
314 } 315 }
315 library.build(); 316 library.build();
316 return link(<Library>[library.library]); 317 return link(<Library>[library.library]);
317 } 318 }
318 319
319 /// Creates a program by combining [libraries] with the libraries of 320 /// Creates a program by combining [libraries] with the libraries of
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 } 658 }
658 for (Constructor constructor in superclass.constructors) { 659 for (Constructor constructor in superclass.constructors) {
659 if (constructor.name.name.isEmpty) { 660 if (constructor.name.name.isEmpty) {
660 return constructor.function.requiredParameterCount == 0 661 return constructor.function.requiredParameterCount == 0
661 ? constructor 662 ? constructor
662 : null; 663 : null;
663 } 664 }
664 } 665 }
665 return null; 666 return null;
666 } 667 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698