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.ObjectRef dartOwner; | 22 final M.ObjectRef dartOwner; |
23 final bool isStatic; | 23 final bool isStatic; |
24 final bool isConst; | 24 final bool isConst; |
25 final M.FunctionKind kind; | 25 final M.FunctionKind kind; |
26 final M.SourceLocation location; | 26 final M.SourceLocation location; |
27 final M.CodeRef code; | 27 final M.CodeRef code; |
28 const FunctionMock({this.id, this.name, this.dartOwner, | 28 const FunctionMock({this.id, this.name, this.dartOwner, |
29 this.isStatic : false, this.isConst : false, this.kind, this.location, | 29 this.isStatic : false, this.isConst : false, this.kind, this.location, |
30 this.code}); | 30 this.code}); |
31 } | 31 } |
OLD | NEW |