| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 dart2js.operators; | 5 library dart2js.operators; |
| 6 | 6 |
| 7 import '../elements/elements.dart'; | 7 import '../elements/elements.dart'; |
| 8 import '../universe/universe.dart'; | 8 import '../universe/universe.dart' show |
| 9 CallStructure, |
| 10 Selector, |
| 11 SelectorKind; |
| 9 | 12 |
| 10 enum UnaryOperatorKind { | 13 enum UnaryOperatorKind { |
| 11 NOT, | 14 NOT, |
| 12 NEGATE, | 15 NEGATE, |
| 13 COMPLEMENT, | 16 COMPLEMENT, |
| 14 } | 17 } |
| 15 | 18 |
| 16 class UnaryOperator { | 19 class UnaryOperator { |
| 17 final UnaryOperatorKind kind; | 20 final UnaryOperatorKind kind; |
| 18 final String name; | 21 final String name; |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 const IncDecOperator._(IncDecOperatorKind.DEC, '--', BinaryOperator.SUB); | 410 const IncDecOperator._(IncDecOperatorKind.DEC, '--', BinaryOperator.SUB); |
| 408 | 411 |
| 409 static IncDecOperator parse(String value) { | 412 static IncDecOperator parse(String value) { |
| 410 switch (value) { | 413 switch (value) { |
| 411 case '++': return INC; | 414 case '++': return INC; |
| 412 case '--': return DEC; | 415 case '--': return DEC; |
| 413 default: return null; | 416 default: return null; |
| 414 } | 417 } |
| 415 } | 418 } |
| 416 } | 419 } |
| OLD | NEW |