(func: ObjectParserMapFunc<P>)
| 117 | } |
| 118 | |
| 119 | map(func: ObjectParserMapFunc<P>): this { |
| 120 | const prop = this._property; |
| 121 | if (typeof prop === 'object' && prop !== null && !Array.isArray(prop)) { |
| 122 | for (const label in prop) { |
| 123 | const item = new ObjectParserProp(prop[label], this._context, createStack(this._stack, label)); |
| 124 | func(item as any, label, prop); |
| 125 | } |
| 126 | } else { |
| 127 | this._context.onError(new ObjectParserError(this._stack, 'Property is not a non-array object.')); |
| 128 | } |
| 129 | return this; |
| 130 | } |
| 131 | |
| 132 | mapRaw(func: ObjectParserMapRawFunc<P>): this { |
| 133 | const prop = this._property; |
nothing calls this directly
no test coverage detected