OLD | NEW |
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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 @override | 98 @override |
99 visitRedirectingFactory( | 99 visitRedirectingFactory( |
100 constants.RedirectingFactoryConstantConstructor constructor, arg) { | 100 constants.RedirectingFactoryConstantConstructor constructor, arg) { |
101 } | 101 } |
102 | 102 |
103 @override | 103 @override |
104 visitRedirectingGenerative( | 104 visitRedirectingGenerative( |
105 constants.RedirectingGenerativeConstantConstructor constructor, arg) { | 105 constants.RedirectingGenerativeConstantConstructor constructor, arg) { |
106 } | 106 } |
| 107 |
| 108 @override |
| 109 visitErroneous(constants.ErroneousConstantConstructor constructor, arg) { |
| 110 } |
107 } | 111 } |
108 | 112 |
109 void useConstant([constants.ConstantValue constant, | 113 void useConstant([constants.ConstantValue constant, |
110 constants.ConstantExpression expression, | 114 constants.ConstantExpression expression, |
111 constants.ConstructedConstantExpression constructedConstant, | 115 constants.ConstructedConstantExpression constructedConstant, |
112 constants.ConstantSystem cs, | 116 constants.ConstantSystem cs, |
113 constants.Environment env]) { | 117 constants.Environment env]) { |
114 constant.isObject; | 118 constant.isObject; |
115 cs.isBool(constant); | 119 cs.isBool(constant); |
116 constructedConstant.computeInstanceType(); | 120 constructedConstant.computeInstanceType(); |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 | 337 |
334 class TreeVisitor1 extends tree_ir.ExpressionVisitor1 | 338 class TreeVisitor1 extends tree_ir.ExpressionVisitor1 |
335 with tree_ir.StatementVisitor1 { | 339 with tree_ir.StatementVisitor1 { |
336 noSuchMethod(inv) {} | 340 noSuchMethod(inv) {} |
337 } | 341 } |
338 | 342 |
339 useTreeVisitors() { | 343 useTreeVisitors() { |
340 new TreeVisitor1().visitExpression(null, null); | 344 new TreeVisitor1().visitExpression(null, null); |
341 new TreeVisitor1().visitStatement(null, null); | 345 new TreeVisitor1().visitStatement(null, null); |
342 } | 346 } |
OLD | NEW |