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 // Test file for testing source mappings of operations. | 5 // Test file for testing source mappings of operations. |
6 | 6 |
7 var counter = 0; | 7 var counter = 0; |
8 | 8 |
9 void record(result) { | 9 void record(result) { |
10 counter++; | 10 counter++; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 const Complex(this.re, this.im); | 52 const Complex(this.re, this.im); |
53 | 53 |
54 operator +(Complex other) => new Complex(re + other.re, im + other.im); | 54 operator +(Complex other) => new Complex(re + other.re, im + other.im); |
55 | 55 |
56 // TODO(johnniwinther): Support implicit null check in '=='. | 56 // TODO(johnniwinther): Support implicit null check in '=='. |
57 //operator ==(Complex other) => re == other.re && im == other.im; | 57 //operator ==(Complex other) => re == other.re && im == other.im; |
58 | 58 |
59 int get hashCode => 13 * re.hashCode + 17 * im.hashCode; | 59 int get hashCode => 13 * re.hashCode + 17 * im.hashCode; |
60 } | 60 } |
OLD | NEW |