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 InstanceRefMock implements M.InstanceRef { | 7 class InstanceRefMock implements M.InstanceRef { |
8 final String id; | 8 final String id; |
9 final String name; | 9 final String name; |
10 final M.InstanceKind kind; | 10 final M.InstanceKind kind; |
11 final M.ClassRef clazz; | 11 final M.ClassRef clazz; |
12 final String valueAsString; | 12 final String valueAsString; |
13 final bool valueAsStringIsTruncated; | 13 final bool valueAsStringIsTruncated; |
14 final int length; | 14 final int length; |
15 final M.ClassRef typeClass; | 15 final M.ClassRef typeClass; |
16 final M.ClassRef parameterizedClass; | 16 final M.ClassRef parameterizedClass; |
17 final M.InstanceRef pattern; | 17 final M.InstanceRef pattern; |
18 final M.FunctionRef closureFunction; | 18 final M.FunctionRef closureFunction; |
19 final M.ContextRef closureContext; | 19 final M.ContextRef closureContext; |
20 | 20 |
21 const InstanceRefMock({this.id: 'instance-id', this.name: 'instance-name', | 21 const InstanceRefMock( |
22 this.kind: M.InstanceKind.vNull, this.clazz, | 22 {this.id: 'instance-id', |
23 this.valueAsString: 'null', | 23 this.name: 'instance-name', |
24 this.valueAsStringIsTruncated, this.length, | 24 this.kind: M.InstanceKind.vNull, |
25 this.typeClass, this.parameterizedClass, this.pattern, | 25 this.clazz, |
26 this.closureFunction, this.closureContext}); | 26 this.valueAsString: 'null', |
| 27 this.valueAsStringIsTruncated, |
| 28 this.length, |
| 29 this.typeClass, |
| 30 this.parameterizedClass, |
| 31 this.pattern, |
| 32 this.closureFunction, |
| 33 this.closureContext}); |
27 } | 34 } |
28 | 35 |
29 class InstanceMock implements M.Instance { | 36 class InstanceMock implements M.Instance { |
30 final String id; | 37 final String id; |
31 final String name; | 38 final String name; |
32 final String vmName; | 39 final String vmName; |
33 final M.InstanceKind kind; | 40 final M.InstanceKind kind; |
34 final M.ClassRef clazz; | 41 final M.ClassRef clazz; |
35 final int size; | 42 final int size; |
36 final String valueAsString; | 43 final String valueAsString; |
(...skipping 21 matching lines...) Expand all Loading... |
58 final M.Breakpoint activationBreakpoint; | 65 final M.Breakpoint activationBreakpoint; |
59 final bool isCaseSensitive; | 66 final bool isCaseSensitive; |
60 final bool isMultiLine; | 67 final bool isMultiLine; |
61 final M.FunctionRef oneByteFunction; | 68 final M.FunctionRef oneByteFunction; |
62 final M.FunctionRef twoByteFunction; | 69 final M.FunctionRef twoByteFunction; |
63 final M.FunctionRef externalOneByteFunction; | 70 final M.FunctionRef externalOneByteFunction; |
64 final M.FunctionRef externalTwoByteFunction; | 71 final M.FunctionRef externalTwoByteFunction; |
65 final M.InstanceRef oneByteBytecode; | 72 final M.InstanceRef oneByteBytecode; |
66 final M.InstanceRef twoByteBytecode; | 73 final M.InstanceRef twoByteBytecode; |
67 | 74 |
68 const InstanceMock({this.id: 'instance-id', this.name: 'instance-name', | 75 const InstanceMock( |
69 this.vmName: 'instance-vmName', | 76 {this.id: 'instance-id', |
70 this.kind: M.InstanceKind.vNull, | 77 this.name: 'instance-name', |
71 this.clazz: const ClassRefMock(), this.size: 0, | 78 this.vmName: 'instance-vmName', |
72 this.valueAsString: 'null', this.valueAsStringIsTruncated, | 79 this.kind: M.InstanceKind.vNull, |
73 this.length, this.typeClass, this.parameterizedClass, | 80 this.clazz: const ClassRefMock(), |
74 this.pattern, this.closureFunction, this.closureContext, | 81 this.size: 0, |
75 this.offset, this.count, this.typedElements, this.fields, | 82 this.valueAsString: 'null', |
76 this.nativeFields, this.elements, this.associations, | 83 this.valueAsStringIsTruncated, |
77 this.key, this.value, this.referent, this.typeArguments, | 84 this.length, |
78 this.parameterIndex, this.targetType, this.bound, | 85 this.typeClass, |
79 this.activationBreakpoint, this.isCaseSensitive, | 86 this.parameterizedClass, |
80 this.isMultiLine, this.oneByteFunction, | 87 this.pattern, |
81 this.twoByteFunction, this.externalOneByteFunction, | 88 this.closureFunction, |
82 this.externalTwoByteFunction, this.oneByteBytecode, | 89 this.closureContext, |
83 this.twoByteBytecode}); | 90 this.offset, |
| 91 this.count, |
| 92 this.typedElements, |
| 93 this.fields, |
| 94 this.nativeFields, |
| 95 this.elements, |
| 96 this.associations, |
| 97 this.key, |
| 98 this.value, |
| 99 this.referent, |
| 100 this.typeArguments, |
| 101 this.parameterIndex, |
| 102 this.targetType, |
| 103 this.bound, |
| 104 this.activationBreakpoint, |
| 105 this.isCaseSensitive, |
| 106 this.isMultiLine, |
| 107 this.oneByteFunction, |
| 108 this.twoByteFunction, |
| 109 this.externalOneByteFunction, |
| 110 this.externalTwoByteFunction, |
| 111 this.oneByteBytecode, |
| 112 this.twoByteBytecode}); |
84 } | 113 } |
OLD | NEW |