| 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 FunctionRefMock implements M.FunctionRef { | 7 class FunctionRefMock implements M.FunctionRef { |
| 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 bool isStatic; | 11 final bool isStatic; |
| 12 final bool isConst; | 12 final bool isConst; |
| 13 final M.FunctionKind kind; | 13 final M.FunctionKind kind; |
| 14 | 14 |
| 15 const FunctionRefMock({this.id, this.name, this.dartOwner, | 15 const FunctionRefMock({this.id, this.name, this.dartOwner, |
| 16 this.isStatic : false, this.isConst : false, this.kind}); | 16 this.isStatic : false, this.isConst : false, this.kind}); |
| 17 } | 17 } |
| 18 | 18 |
| 19 class FunctionMock implements M.Function { | 19 class FunctionMock implements M.Function { |
| 20 final String id; | 20 final String id; |
| 21 final String name; | 21 final String name; |
| 22 final M.ClassRef clazz; |
| 23 final int size; |
| 22 final M.ObjectRef dartOwner; | 24 final M.ObjectRef dartOwner; |
| 23 final bool isStatic; | 25 final bool isStatic; |
| 24 final bool isConst; | 26 final bool isConst; |
| 25 final M.FunctionKind kind; | 27 final M.FunctionKind kind; |
| 26 final M.SourceLocation location; | 28 final M.SourceLocation location; |
| 27 final M.CodeRef code; | 29 final M.CodeRef code; |
| 28 const FunctionMock({this.id, this.name, this.dartOwner, | 30 const FunctionMock({this.id, this.name, this.clazz, this.size, this.dartOwner, |
| 29 this.isStatic : false, this.isConst : false, this.kind, this.location, | 31 this.isStatic : false, this.isConst : false, this.kind, this.location, |
| 30 this.code}); | 32 this.code}); |
| 31 } | 33 } |
| OLD | NEW |