| 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 const DART_CONSTANT_SYSTEM = const DartConstantSystem(); | 5 const DART_CONSTANT_SYSTEM = const DartConstantSystem(); |
| 6 | 6 |
| 7 class BitNotOperation implements UnaryOperation { | 7 class BitNotOperation implements UnaryOperation { |
| 8 final SourceString name = const SourceString('~'); | 8 final SourceString name = const SourceString('~'); |
| 9 bool isUserDefinable() => true; | 9 bool isUserDefinable() => true; |
| 10 const BitNotOperation(); | 10 const BitNotOperation(); |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 StringConstant createString(DartString string, Node diagnosticNode) | 335 StringConstant createString(DartString string, Node diagnosticNode) |
| 336 => new StringConstant(string, diagnosticNode); | 336 => new StringConstant(string, diagnosticNode); |
| 337 BoolConstant createBool(bool value) => new BoolConstant(value); | 337 BoolConstant createBool(bool value) => new BoolConstant(value); |
| 338 NullConstant createNull() => new NullConstant(); | 338 NullConstant createNull() => new NullConstant(); |
| 339 | 339 |
| 340 bool isInt(Constant constant) => constant.isInt(); | 340 bool isInt(Constant constant) => constant.isInt(); |
| 341 bool isDouble(Constant constant) => constant.isDouble(); | 341 bool isDouble(Constant constant) => constant.isDouble(); |
| 342 bool isString(Constant constant) => constant.isString(); | 342 bool isString(Constant constant) => constant.isString(); |
| 343 bool isBool(Constant constant) => constant.isBool(); | 343 bool isBool(Constant constant) => constant.isBool(); |
| 344 bool isNull(Constant constant) => constant.isNull(); | 344 bool isNull(Constant constant) => constant.isNull(); |
| 345 } | 345 |
| 346 bool isSubtype(Compiler compiler, DartType s, DartType t) { |
| 347 return compiler.types.isSubtype(s, t); |
| 348 } |
| 349 } |
| OLD | NEW |