Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart

Issue 862703002: Implement constructor bodies and initializers in CPS->JS backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix test case Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 backend_ast_emitter; 5 library backend_ast_emitter;
6 6
7 import '../tree_ir/tree_ir_nodes.dart' as tree; 7 import '../tree_ir/tree_ir_nodes.dart' as tree;
8 import 'backend_ast_nodes.dart'; 8 import 'backend_ast_nodes.dart';
9 import '../constants/expressions.dart'; 9 import '../constants/expressions.dart';
10 import '../constants/values.dart'; 10 import '../constants/values.dart';
(...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 @override 902 @override
903 visitGetField(tree.GetField node, arg) => errorUnsupportedNode(node); 903 visitGetField(tree.GetField node, arg) => errorUnsupportedNode(node);
904 904
905 @override 905 @override
906 visitSetField(tree.SetField node, arg) => errorUnsupportedNode(node); 906 visitSetField(tree.SetField node, arg) => errorUnsupportedNode(node);
907 907
908 @override 908 @override
909 visitCreateBox(tree.CreateBox node, arg) => errorUnsupportedNode(node); 909 visitCreateBox(tree.CreateBox node, arg) => errorUnsupportedNode(node);
910 910
911 @override 911 @override
912 visitCreateClosureClass(tree.CreateClosureClass node, arg) { 912 visitCreateInstance(tree.CreateInstance node, arg) {
913 return errorUnsupportedNode(node); 913 return errorUnsupportedNode(node);
914 } 914 }
915 915
916 errorUnsupportedNode(tree.JsSpecificNode node) { 916 errorUnsupportedNode(tree.JsSpecificNode node) {
917 throw '$node not supported by dart backend'; 917 throw '$node not supported by dart backend';
918 } 918 }
919 } 919 }
920 920
921 class TypeGenerator { 921 class TypeGenerator {
922 922
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
1258 : super(name, ElementKind.VARIABLE, enclosingElement, variables, null); 1258 : super(name, ElementKind.VARIABLE, enclosingElement, variables, null);
1259 1259
1260 ExecutableElement get executableContext => enclosingElement; 1260 ExecutableElement get executableContext => enclosingElement;
1261 1261
1262 ExecutableElement get memberContext => executableContext.memberContext; 1262 ExecutableElement get memberContext => executableContext.memberContext;
1263 1263
1264 bool get isLocal => true; 1264 bool get isLocal => true;
1265 1265
1266 LibraryElement get implementationLibrary => enclosingElement.library; 1266 LibraryElement get implementationLibrary => enclosingElement.library;
1267 } 1267 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698