| 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' show | 8 import '../universe/call_structure.dart' show |
| 9 CallStructure, | 9 CallStructure; |
| 10 import '../universe/selector.dart' show |
| 10 Selector, | 11 Selector, |
| 11 SelectorKind; | 12 SelectorKind; |
| 12 | 13 |
| 13 enum UnaryOperatorKind { | 14 enum UnaryOperatorKind { |
| 14 NOT, | 15 NOT, |
| 15 NEGATE, | 16 NEGATE, |
| 16 COMPLEMENT, | 17 COMPLEMENT, |
| 17 } | 18 } |
| 18 | 19 |
| 19 class UnaryOperator { | 20 class UnaryOperator { |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 const IncDecOperator._(IncDecOperatorKind.DEC, '--', BinaryOperator.SUB); | 411 const IncDecOperator._(IncDecOperatorKind.DEC, '--', BinaryOperator.SUB); |
| 411 | 412 |
| 412 static IncDecOperator parse(String value) { | 413 static IncDecOperator parse(String value) { |
| 413 switch (value) { | 414 switch (value) { |
| 414 case '++': return INC; | 415 case '++': return INC; |
| 415 case '--': return DEC; | 416 case '--': return DEC; |
| 416 default: return null; | 417 default: return null; |
| 417 } | 418 } |
| 418 } | 419 } |
| 419 } | 420 } |
| OLD | NEW |