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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 import 'dart:async'; | 5 import 'dart:async'; |
6 import 'dart:collection' show Queue; | 6 import 'dart:collection' show Queue; |
7 | 7 |
8 import 'package:kernel/ast.dart' as ir; | 8 import 'package:kernel/ast.dart' as ir; |
9 import 'package:kernel/checks.dart' show CheckParentPointers; | 9 import 'package:kernel/checks.dart' show CheckParentPointers; |
10 | 10 |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 // TODO(ahe): Add setInitializers to [ir.Constructor]. | 376 // TODO(ahe): Add setInitializers to [ir.Constructor]. |
377 for (ir.Initializer initializer in irFunction.initializers) { | 377 for (ir.Initializer initializer in irFunction.initializers) { |
378 initializer.parent = constructor; | 378 initializer.parent = constructor; |
379 } | 379 } |
380 } else { | 380 } else { |
381 assert(irFunction.kind != null); | 381 assert(irFunction.kind != null); |
382 procedure.function = irFunction.node; | 382 procedure.function = irFunction.node; |
383 procedure.kind = irFunction.kind; | 383 procedure.kind = irFunction.kind; |
384 } | 384 } |
385 endFactoryScope(function); | 385 endFactoryScope(function); |
| 386 member.transformerFlags = visitor.transformerFlags; |
386 assert(() { | 387 assert(() { |
387 visitor.locals.forEach(checkMember); | 388 visitor.locals.forEach(checkMember); |
388 return true; | 389 return true; |
389 }); | 390 }); |
390 }); | 391 }); |
391 return member; | 392 return member; |
392 }); | 393 }); |
393 } | 394 } |
394 | 395 |
395 /// Adds the type parameters of the enclosing class of [function] to | 396 /// Adds the type parameters of the enclosing class of [function] to |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
651 } | 652 } |
652 | 653 |
653 class ConstructorTarget { | 654 class ConstructorTarget { |
654 final ConstructorElement element; | 655 final ConstructorElement element; |
655 final DartType type; | 656 final DartType type; |
656 | 657 |
657 ConstructorTarget(this.element, this.type); | 658 ConstructorTarget(this.element, this.type); |
658 | 659 |
659 String toString() => "ConstructorTarget($element, $type)"; | 660 String toString() => "ConstructorTarget($element, $type)"; |
660 } | 661 } |
OLD | NEW |