OLD | NEW |
(Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file |
| 4 |
| 5 part of mocks; |
| 6 |
| 7 class FunctionRefMock implements M.FunctionRef { |
| 8 final String id; |
| 9 final String name; |
| 10 final M.ObjectRef dartOwner; |
| 11 final bool isStatic; |
| 12 final bool isConst; |
| 13 final M.FunctionKind kind; |
| 14 |
| 15 const FunctionRefMock({this.id, this.name, this.dartOwner, |
| 16 this.isStatic : false, this.isConst : false, this.kind}); |
| 17 } |
| 18 |
| 19 class FunctionMock implements M.Function { |
| 20 final String id; |
| 21 final String name; |
| 22 final M.ObjectRef dartOwner; |
| 23 final bool isStatic; |
| 24 final bool isConst; |
| 25 final M.FunctionKind kind; |
| 26 final M.SourceLocation location; |
| 27 final M.CodeRef code; |
| 28 const FunctionMock({this.id, this.name, this.dartOwner, |
| 29 this.isStatic : false, this.isConst : false, this.kind, this.location, |
| 30 this.code}); |
| 31 } |
OLD | NEW |