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

Side by Side Diff: pkg/compiler/lib/src/use_unused_api.dart

Issue 1069983005: Model 'await for' as an explicit node in tree and fix its handling. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix failing assertion rebase Created 5 years, 8 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
« no previous file with comments | « pkg/compiler/lib/src/typechecker.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 /// This file use methods that aren't used by dart2js.dart, but that we wish to 5 /// This file use methods that aren't used by dart2js.dart, but that we wish to
6 /// keep anyway. This might be general API that isn't currently in use, 6 /// keep anyway. This might be general API that isn't currently in use,
7 /// debugging aids, or API only used for testing (see TODO below). 7 /// debugging aids, or API only used for testing (see TODO below).
8 8
9 library dart2js.use_unused_api; 9 library dart2js.use_unused_api;
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 void useConstant(constants.ConstantValue constant, 84 void useConstant(constants.ConstantValue constant,
85 dart2jslib.ConstantSystem cs) { 85 dart2jslib.ConstantSystem cs) {
86 constant.isObject; 86 constant.isObject;
87 cs.isBool(constant); 87 cs.isBool(constant);
88 } 88 }
89 89
90 void useNode(tree.Node node) { 90 void useNode(tree.Node node) {
91 node 91 node
92 ..asAsyncModifier() 92 ..asAsyncModifier()
93 ..asAsyncForIn()
93 ..asAwait() 94 ..asAwait()
94 ..asBreakStatement() 95 ..asBreakStatement()
95 ..asCascade() 96 ..asCascade()
96 ..asCatchBlock() 97 ..asCatchBlock()
97 ..asClassNode() 98 ..asClassNode()
98 ..asCombinator() 99 ..asCombinator()
99 ..asConditional() 100 ..asConditional()
100 ..asContinueStatement() 101 ..asContinueStatement()
101 ..asEnum() 102 ..asEnum()
102 ..asErrorExpression() 103 ..asErrorExpression()
(...skipping 16 matching lines...) Expand all
119 ..asPartOf() 120 ..asPartOf()
120 ..asRethrow() 121 ..asRethrow()
121 ..asReturn() 122 ..asReturn()
122 ..asStatement() 123 ..asStatement()
123 ..asStringInterpolation() 124 ..asStringInterpolation()
124 ..asStringInterpolationPart() 125 ..asStringInterpolationPart()
125 ..asStringJuxtaposition() 126 ..asStringJuxtaposition()
126 ..asStringNode() 127 ..asStringNode()
127 ..asSwitchCase() 128 ..asSwitchCase()
128 ..asSwitchStatement() 129 ..asSwitchStatement()
130 ..asSyncForIn()
129 ..asTryStatement() 131 ..asTryStatement()
130 ..asTypeAnnotation() 132 ..asTypeAnnotation()
131 ..asTypeVariable() 133 ..asTypeVariable()
132 ..asTypedef() 134 ..asTypedef()
133 ..asWhile() 135 ..asWhile()
134 ..asYield(); 136 ..asYield();
135 } 137 }
136 138
137 void useUtil(util.Link link) { 139 void useUtil(util.Link link) {
138 link.reversePrependAll(link); 140 link.reversePrependAll(link);
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 visitFieldDefinition(tree_ir.FieldDefinition node) {} 299 visitFieldDefinition(tree_ir.FieldDefinition node) {}
298 300
299 visitFieldInitializer(tree_ir.FieldInitializer node) {} 301 visitFieldInitializer(tree_ir.FieldInitializer node) {}
300 visitSuperInitializer(tree_ir.SuperInitializer node) {} 302 visitSuperInitializer(tree_ir.SuperInitializer node) {}
301 } 303 }
302 304
303 useTreeVisitors() { 305 useTreeVisitors() {
304 new DummyTreeVisitor().visitRootNode(null); 306 new DummyTreeVisitor().visitRootNode(null);
305 new DummyTreeVisitor().visitInitializer(null); 307 new DummyTreeVisitor().visitInitializer(null);
306 } 308 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/typechecker.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698