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

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

Issue 1130813002: dart2js cps: Handle error cases. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Whitelist unused API due to semantic visitor being WIP Created 5 years, 7 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 970 matching lines...) Expand 10 before | Expand all | Expand 10 after
981 981
982 @override 982 @override
983 visitCreateBox(tree.CreateBox node, arg) => errorUnsupportedNode(node); 983 visitCreateBox(tree.CreateBox node, arg) => errorUnsupportedNode(node);
984 984
985 @override 985 @override
986 visitCreateInstance(tree.CreateInstance node, arg) { 986 visitCreateInstance(tree.CreateInstance node, arg) {
987 return errorUnsupportedNode(node); 987 return errorUnsupportedNode(node);
988 } 988 }
989 989
990 @override 990 @override
991 visitCreateInvocationMirror(tree.CreateInvocationMirror node, arg) {
992 return errorUnsupportedNode(node);
993 }
994
995 @override
991 Expression visitReadTypeVariable(tree.ReadTypeVariable node, arg) { 996 Expression visitReadTypeVariable(tree.ReadTypeVariable node, arg) {
992 return errorUnsupportedNode(node); 997 return errorUnsupportedNode(node);
993 } 998 }
994 999
995 @override 1000 @override
996 Expression visitReifyRuntimeType(tree.ReifyRuntimeType node, arg) { 1001 Expression visitReifyRuntimeType(tree.ReifyRuntimeType node, arg) {
997 return errorUnsupportedNode(node); 1002 return errorUnsupportedNode(node);
998 } 1003 }
999 1004
1000 errorUnsupportedNode(tree.JsSpecificNode node) { 1005 errorUnsupportedNode(tree.JsSpecificNode node) {
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
1365 : super(name, ElementKind.VARIABLE, enclosingElement, variables, null); 1370 : super(name, ElementKind.VARIABLE, enclosingElement, variables, null);
1366 1371
1367 ExecutableElement get executableContext => enclosingElement; 1372 ExecutableElement get executableContext => enclosingElement;
1368 1373
1369 ExecutableElement get memberContext => executableContext.memberContext; 1374 ExecutableElement get memberContext => executableContext.memberContext;
1370 1375
1371 bool get isLocal => true; 1376 bool get isLocal => true;
1372 1377
1373 LibraryElement get implementationLibrary => enclosingElement.library; 1378 LibraryElement get implementationLibrary => enclosingElement.library;
1374 } 1379 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/type_propagation.dart ('k') | pkg/compiler/lib/src/js_backend/codegen/codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698