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

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

Issue 968843003: Implement type argument access and reification of runtime types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 927 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 visitSetField(tree.SetField node, arg) => errorUnsupportedNode(node); 938 visitSetField(tree.SetField node, arg) => errorUnsupportedNode(node);
939 939
940 @override 940 @override
941 visitCreateBox(tree.CreateBox node, arg) => errorUnsupportedNode(node); 941 visitCreateBox(tree.CreateBox node, arg) => errorUnsupportedNode(node);
942 942
943 @override 943 @override
944 visitCreateInstance(tree.CreateInstance node, arg) { 944 visitCreateInstance(tree.CreateInstance node, arg) {
945 return errorUnsupportedNode(node); 945 return errorUnsupportedNode(node);
946 } 946 }
947 947
948 @override
949 Expression visitReadTypeVariable(tree.ReadTypeVariable node, arg) {
950 return errorUnsupportedNode(node);
951 }
952
953 @override
954 Expression visitReifyRuntimeType(tree.ReifyRuntimeType node, arg) {
955 return errorUnsupportedNode(node);
956 }
957
948 errorUnsupportedNode(tree.JsSpecificNode node) { 958 errorUnsupportedNode(tree.JsSpecificNode node) {
949 throw '$node not supported by dart backend'; 959 throw '$node not supported by dart backend';
950 } 960 }
951 } 961 }
952 962
953 class TypeGenerator { 963 class TypeGenerator {
954 964
955 /// TODO(johnniwinther): Remove this when issue 21283 has been resolved. 965 /// TODO(johnniwinther): Remove this when issue 21283 has been resolved.
956 static int pseudoNameCounter = 0; 966 static int pseudoNameCounter = 0;
957 967
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
1290 : super(name, ElementKind.VARIABLE, enclosingElement, variables, null); 1300 : super(name, ElementKind.VARIABLE, enclosingElement, variables, null);
1291 1301
1292 ExecutableElement get executableContext => enclosingElement; 1302 ExecutableElement get executableContext => enclosingElement;
1293 1303
1294 ExecutableElement get memberContext => executableContext.memberContext; 1304 ExecutableElement get memberContext => executableContext.memberContext;
1295 1305
1296 bool get isLocal => true; 1306 bool get isLocal => true;
1297 1307
1298 LibraryElement get implementationLibrary => enclosingElement.library; 1308 LibraryElement get implementationLibrary => enclosingElement.library;
1299 } 1309 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698