| 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 part of dart2js; | |
| 6 | |
| 7 interface Operation { | 5 interface Operation { |
| 8 final SourceString name; | 6 final SourceString name; |
| 9 bool isUserDefinable(); | 7 bool isUserDefinable(); |
| 10 } | 8 } |
| 11 | 9 |
| 12 interface UnaryOperation extends Operation { | 10 interface UnaryOperation extends Operation { |
| 13 /** Returns [:null:] if it was unable to fold the operation. */ | 11 /** Returns [:null:] if it was unable to fold the operation. */ |
| 14 Constant fold(Constant constant); | 12 Constant fold(Constant constant); |
| 15 apply(value); | 13 apply(value); |
| 16 } | 14 } |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 bool isInt(Constant constant); | 61 bool isInt(Constant constant); |
| 64 /** Returns true if the [constant] is a double at runtime. */ | 62 /** Returns true if the [constant] is a double at runtime. */ |
| 65 bool isDouble(Constant constant); | 63 bool isDouble(Constant constant); |
| 66 /** Returns true if the [constant] is a string at runtime. */ | 64 /** Returns true if the [constant] is a string at runtime. */ |
| 67 bool isString(Constant constant); | 65 bool isString(Constant constant); |
| 68 /** Returns true if the [constant] is a boolean at runtime. */ | 66 /** Returns true if the [constant] is a boolean at runtime. */ |
| 69 bool isBool(Constant constant); | 67 bool isBool(Constant constant); |
| 70 /** Returns true if the [constant] is null at runtime. */ | 68 /** Returns true if the [constant] is null at runtime. */ |
| 71 bool isNull(Constant constant); | 69 bool isNull(Constant constant); |
| 72 } | 70 } |
| OLD | NEW |