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.dart' show PublicName; |
8 import '../universe/call_structure.dart' show CallStructure; | 8 import '../universe/call_structure.dart' show CallStructure; |
9 import '../universe/selector.dart' show Selector, SelectorKind; | 9 import '../universe/selector.dart' show Selector, SelectorKind; |
10 | 10 |
11 enum UnaryOperatorKind { | 11 enum UnaryOperatorKind { |
12 NOT, | 12 NOT, |
13 NEGATE, | 13 NEGATE, |
14 COMPLEMENT, | 14 COMPLEMENT, |
15 } | 15 } |
16 | 16 |
17 class UnaryOperator { | 17 class UnaryOperator { |
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 // ignore: MISSING_RETURN | 502 // ignore: MISSING_RETURN |
503 static IncDecOperator fromKind(IncDecOperatorKind kind) { | 503 static IncDecOperator fromKind(IncDecOperatorKind kind) { |
504 switch (kind) { | 504 switch (kind) { |
505 case IncDecOperatorKind.INC: | 505 case IncDecOperatorKind.INC: |
506 return INC; | 506 return INC; |
507 case IncDecOperatorKind.DEC: | 507 case IncDecOperatorKind.DEC: |
508 return DEC; | 508 return DEC; |
509 } | 509 } |
510 } | 510 } |
511 } | 511 } |
OLD | NEW |