| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 part of mocks; | 5 part of mocks; |
| 6 | 6 |
| 7 class FieldRefMock implements M.FieldRef { | 7 class FieldRefMock implements M.FieldRef { |
| 8 final String id; | 8 final String id; |
| 9 final String name; | 9 final String name; |
| 10 final M.ObjectRef dartOwner; | 10 final M.ObjectRef dartOwner; |
| 11 final M.InstanceRef declaredType; | 11 final M.InstanceRef declaredType; |
| 12 final bool isConst; | 12 final bool isConst; |
| 13 final bool isFinal; | 13 final bool isFinal; |
| 14 final bool isStatic; | 14 final bool isStatic; |
| 15 | 15 |
| 16 const FieldRefMock( | 16 const FieldRefMock({this.id: 'field-id', this.name: 'field-name', |
| 17 {this.id: 'field-id', | 17 this.dartOwner, |
| 18 this.name: 'field-name', | 18 this.declaredType: const InstanceRefMock(name: 'dynamic'), |
| 19 this.dartOwner, | 19 this.isConst: false, |
| 20 this.declaredType: const InstanceRefMock(name: 'dynamic'), | 20 this.isFinal: false, this.isStatic: false}); |
| 21 this.isConst: false, | |
| 22 this.isFinal: false, | |
| 23 this.isStatic: false}); | |
| 24 } | 21 } |
| OLD | NEW |