| 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 | 7 import 'dart:async' show |
| 8 Future; | 8 Future; |
| 9 | 9 |
| 10 import 'dart:io' show | 10 import 'dart:io' show |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 } | 223 } |
| 224 try { | 224 try { |
| 225 if (astKind == AstKind.Analyzer) { | 225 if (astKind == AstKind.Analyzer) { |
| 226 loader.buildElementStore(); | 226 loader.buildElementStore(); |
| 227 } else { | 227 } else { |
| 228 loader.computeHierarchy(program); | 228 loader.computeHierarchy(program); |
| 229 } | 229 } |
| 230 await loader.buildBodies(astKind); | 230 await loader.buildBodies(astKind); |
| 231 loader.finishStaticInvocations(); | 231 loader.finishStaticInvocations(); |
| 232 finishAllConstructors(); | 232 finishAllConstructors(); |
| 233 loader.finishNativeMethods(); |
| 233 transformMixinApplications(); | 234 transformMixinApplications(); |
| 234 errors.addAll(loader.collectCompileTimeErrors().map((e) => e.format())); | 235 errors.addAll(loader.collectCompileTimeErrors().map((e) => e.format())); |
| 235 if (errors.isNotEmpty) { | 236 if (errors.isNotEmpty) { |
| 236 return handleInputError(uri, null, isFullProgram: true); | 237 return handleInputError(uri, null, isFullProgram: true); |
| 237 } | 238 } |
| 238 if (uri == null) return program; | 239 if (uri == null) return program; |
| 239 return await writeLinkedProgram(uri, program, isFullProgram: true); | 240 return await writeLinkedProgram(uri, program, isFullProgram: true); |
| 240 } on InputError catch (e) { | 241 } on InputError catch (e) { |
| 241 return handleInputError(uri, e, isFullProgram: true); | 242 return handleInputError(uri, e, isFullProgram: true); |
| 242 } catch (e, s) { | 243 } catch (e, s) { |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 superclass = superclass.superclass; | 592 superclass = superclass.superclass; |
| 592 } | 593 } |
| 593 for (Constructor constructor in superclass.constructors) { | 594 for (Constructor constructor in superclass.constructors) { |
| 594 if (constructor.name.name.isEmpty) { | 595 if (constructor.name.name.isEmpty) { |
| 595 return constructor.function.requiredParameterCount == 0 ? | 596 return constructor.function.requiredParameterCount == 0 ? |
| 596 constructor : null; | 597 constructor : null; |
| 597 } | 598 } |
| 598 } | 599 } |
| 599 return null; | 600 return null; |
| 600 } | 601 } |
| OLD | NEW |