| OLD | NEW |
| 1 // Copyright (c) 2015, the Dartino 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.debug_info_function_codegen; | 5 library dartino_compiler.debug_info_function_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'; | 8 import 'package:compiler/src/resolution/tree_elements.dart'; |
| 9 import 'package:compiler/src/tree/tree.dart'; | 9 import 'package:compiler/src/tree/tree.dart'; |
| 10 import 'package:compiler/src/universe/selector.dart'; | 10 import 'package:compiler/src/universe/selector.dart'; |
| 11 | 11 |
| 12 import 'package:compiler/src/dart_types.dart' show | 12 import 'package:compiler/src/dart_types.dart' show |
| 13 DartType; | 13 DartType; |
| 14 | 14 |
| 15 import 'package:compiler/src/diagnostics/spannable.dart' show | 15 import 'package:compiler/src/diagnostics/spannable.dart' show |
| 16 Spannable; | 16 Spannable; |
| 17 | 17 |
| 18 import 'bytecode_assembler.dart'; | 18 import 'bytecode_assembler.dart'; |
| 19 import 'closure_environment.dart'; | 19 import 'closure_environment.dart'; |
| 20 import 'codegen_visitor.dart'; | 20 import 'codegen_visitor.dart'; |
| 21 | 21 |
| 22 import 'fletch_function_builder.dart' show | 22 import 'dartino_function_builder.dart' show |
| 23 FletchFunctionBuilder; | 23 DartinoFunctionBuilder; |
| 24 | 24 |
| 25 import 'debug_registry.dart' show | 25 import 'debug_registry.dart' show |
| 26 DebugRegistry; | 26 DebugRegistry; |
| 27 | 27 |
| 28 import 'fletch_context.dart'; | 28 import 'dartino_context.dart'; |
| 29 import 'function_codegen.dart'; | 29 import 'function_codegen.dart'; |
| 30 import 'debug_info.dart'; | 30 import 'debug_info.dart'; |
| 31 | 31 |
| 32 class DebugInfoFunctionCodegen extends FunctionCodegen with DebugRegistry { | 32 class DebugInfoFunctionCodegen extends FunctionCodegen with DebugRegistry { |
| 33 final FletchCompilerImplementation compiler; | 33 final DartinoCompilerImplementation compiler; |
| 34 final DebugInfo debugInfo; | 34 final DebugInfo debugInfo; |
| 35 | 35 |
| 36 DebugInfoFunctionCodegen(this.debugInfo, | 36 DebugInfoFunctionCodegen(this.debugInfo, |
| 37 FletchFunctionBuilder functionBuilder, | 37 DartinoFunctionBuilder functionBuilder, |
| 38 FletchContext context, | 38 DartinoContext context, |
| 39 TreeElements elements, | 39 TreeElements elements, |
| 40 ClosureEnvironment closureEnvironment, | 40 ClosureEnvironment closureEnvironment, |
| 41 FunctionElement function, | 41 FunctionElement function, |
| 42 this.compiler) | 42 this.compiler) |
| 43 : super(functionBuilder, context, elements, null, | 43 : super(functionBuilder, context, elements, null, |
| 44 closureEnvironment, function) { | 44 closureEnvironment, function) { |
| 45 if (functionBuilder.isInstanceMember) pushVariableDeclaration(thisValue); | 45 if (functionBuilder.isInstanceMember) pushVariableDeclaration(thisValue); |
| 46 } | 46 } |
| 47 | 47 |
| 48 void recordDebugInfo(Node node) { | 48 void recordDebugInfo(Node node) { |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 void visitForValue(Node node) { | 144 void visitForValue(Node node) { |
| 145 recordDebugInfo(node); | 145 recordDebugInfo(node); |
| 146 super.visitForValue(node); | 146 super.visitForValue(node); |
| 147 } | 147 } |
| 148 | 148 |
| 149 void visitForEffect(Node node) { | 149 void visitForEffect(Node node) { |
| 150 recordDebugInfo(node); | 150 recordDebugInfo(node); |
| 151 super.visitForEffect(node); | 151 super.visitForEffect(node); |
| 152 } | 152 } |
| 153 } | 153 } |
| OLD | NEW |