Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 fasta.operators; | 5 library fasta.operators; |
| 6 | 6 |
| 7 /// The user-definable operators in Dart. | 7 /// The user-definable operators in Dart. |
| 8 /// | 8 /// |
| 9 /// The names have been chosen to represent their normal semantic meaning. | 9 /// The names have been chosen to represent their normal semantic meaning. |
| 10 enum Operator { | 10 enum Operator { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 70 case Operator.leftShift: return "<<"; | 70 case Operator.leftShift: return "<<"; |
| 71 case Operator.lessThan: return "<"; | 71 case Operator.lessThan: return "<"; |
| 72 case Operator.lessThanEquals: return "<="; | 72 case Operator.lessThanEquals: return "<="; |
| 73 case Operator.modulo: return "%"; | 73 case Operator.modulo: return "%"; |
| 74 case Operator.multiply: return "*"; | 74 case Operator.multiply: return "*"; |
| 75 case Operator.rightShift: return ">>"; | 75 case Operator.rightShift: return ">>"; |
| 76 case Operator.subtract: return "-"; | 76 case Operator.subtract: return "-"; |
| 77 case Operator.truncatingDivide: return "~/"; | 77 case Operator.truncatingDivide: return "~/"; |
| 78 case Operator.unaryMinus: return "unary-"; | 78 case Operator.unaryMinus: return "unary-"; |
| 79 } | 79 } |
| 80 return null; | |
|
ahe
2017/02/15 22:16:06
Why is this necessary?
| |
| 80 } | 81 } |
| OLD | NEW |