(field)
| 147 | |
| 148 | // JS_STRING serializes numeric scalars as strings — applies to every TYPES entry except the non-numeric ones. |
| 149 | function fieldShouldUseStringAsNumber(field) { |
| 150 | if (field.options.jstype !== 'JS_STRING') return false; |
| 151 | const t = TYPES[field.type]; |
| 152 | return !!t && t.m !== 'String' && t.m !== 'Boolean' && t.m !== 'Bytes'; |
| 153 | } |
| 154 | |
| 155 | function compileScalarFieldRead(ctx, field) { |
| 156 | const sub = getSubMessage(ctx, field); |
no outgoing calls
no test coverage detected
searching dependent graphs…