OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Fletch 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.closure_environment; | 5 library fletchc.closure_environment; |
6 | 6 |
7 import 'package:compiler/src/util/util.dart' show | 7 import 'package:compiler/src/util/util.dart' show |
8 SpannableAssertionFailure; | 8 SpannableAssertionFailure; |
9 | 9 |
10 import 'package:compiler/src/resolution/semantic_visitor.dart'; | 10 import 'package:compiler/src/resolution/semantic_visitor.dart'; |
(...skipping 13 matching lines...) Expand all Loading... |
24 MessageKind, | 24 MessageKind, |
25 Registry; | 25 Registry; |
26 | 26 |
27 import 'package:compiler/src/elements/elements.dart'; | 27 import 'package:compiler/src/elements/elements.dart'; |
28 import 'package:compiler/src/resolution/resolution.dart'; | 28 import 'package:compiler/src/resolution/resolution.dart'; |
29 import 'package:compiler/src/tree/tree.dart'; | 29 import 'package:compiler/src/tree/tree.dart'; |
30 import 'package:compiler/src/universe/universe.dart'; | 30 import 'package:compiler/src/universe/universe.dart'; |
31 import 'package:compiler/src/util/util.dart' show Spannable; | 31 import 'package:compiler/src/util/util.dart' show Spannable; |
32 import 'package:compiler/src/dart_types.dart'; | 32 import 'package:compiler/src/dart_types.dart'; |
33 | 33 |
34 import 'fletch_context.dart'; | |
35 | |
36 import 'fletch_constants.dart' show | |
37 CompiledFunctionConstant, | |
38 FletchClassConstant; | |
39 | |
40 import '../bytecodes.dart' show | |
41 Bytecode; | |
42 | |
43 import 'compiled_function.dart' show | |
44 CompiledFunction; | |
45 | |
46 import 'fletch_selector.dart'; | |
47 | |
48 enum CaptureMode { | 34 enum CaptureMode { |
49 /** | 35 /** |
50 * If a local is marked [ByValue], the local is read in closures. | 36 * If a local is marked [ByValue], the local is read in closures. |
51 */ | 37 */ |
52 ByValue, | 38 ByValue, |
53 | 39 |
54 /** | 40 /** |
55 * If a local is marked [ByReference], a write to the local can be observed | 41 * If a local is marked [ByReference], a write to the local can be observed |
56 * from a closure. | 42 * from a closure. |
57 * | 43 * |
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
803 | 789 |
804 void bulkHandleNode(Node node, String message, _) { | 790 void bulkHandleNode(Node node, String message, _) { |
805 } | 791 } |
806 | 792 |
807 void applyInitializers(FunctionExpression initializers, _) { | 793 void applyInitializers(FunctionExpression initializers, _) { |
808 } | 794 } |
809 | 795 |
810 void applyParameters(NodeList parameters, _) { | 796 void applyParameters(NodeList parameters, _) { |
811 } | 797 } |
812 } | 798 } |
OLD | NEW |