(ctx, syntax)
| 287 | } |
| 288 | |
| 289 | function buildDefaults(ctx, syntax) { |
| 290 | for (const child of ctx._children) buildDefaults(child, syntax); |
| 291 | for (const field of ctx._proto.fields ?? []) { |
| 292 | setPackedOption(ctx, field, syntax); |
| 293 | setDefaultValue(ctx, field, syntax); |
| 294 | } |
| 295 | return ctx; |
| 296 | } |
| 297 | |
| 298 | function getDefaultWriteTest(ctx, field) { |
| 299 | const def = ctx._defaults[field.name]; |
no test coverage detected
searching dependent graphs…