| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |