OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 library fletchc.constructor_codegen; | 5 library fletchc.constructor_codegen; |
6 | 6 |
7 import 'package:compiler/src/elements/elements.dart'; | 7 import 'package:compiler/src/elements/elements.dart'; |
8 import 'package:compiler/src/resolution/tree_elements.dart' show | 8 import 'package:compiler/src/resolution/tree_elements.dart' show |
9 TreeElements; | 9 TreeElements; |
10 import 'package:compiler/src/tree/tree.dart'; | 10 import 'package:compiler/src/tree/tree.dart'; |
11 import 'package:compiler/src/universe/call_structure.dart' show | 11 import 'package:compiler/src/universe/call_structure.dart' show |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 lazyFieldInitializerCodegenFor(functionBuilder, field); | 366 lazyFieldInitializerCodegenFor(functionBuilder, field); |
367 | 367 |
368 // We only want the value of the actual initializer, not the usual | 368 // We only want the value of the actual initializer, not the usual |
369 // 'body'. | 369 // 'body'. |
370 codegen.visitForValue(initializer); | 370 codegen.visitForValue(initializer); |
371 } | 371 } |
372 }); | 372 }); |
373 assert(fieldIndex <= classBuilder.fields); | 373 assert(fieldIndex <= classBuilder.fields); |
374 } | 374 } |
375 } | 375 } |
OLD | NEW |