WithNoReparse instructs NewImageForProto to skip the reparse step. The reparse step is usually needed when unmarshalling the image from bytes. It reconstitutes custom options, from unrecognized bytes to known extension fields.
()
| 451 | // step is usually needed when unmarshalling the image from bytes. It reconstitutes |
| 452 | // custom options, from unrecognized bytes to known extension fields. |
| 453 | func WithNoReparse() NewImageForProtoOption { |
| 454 | return func(options *newImageForProtoOptions) { |
| 455 | options.noReparse = true |
| 456 | } |
| 457 | } |
| 458 | |
| 459 | // WithUnusedImportsComputation instructs NewImageForProto to compute unused imports |
| 460 | // for the files. These are usually computed by the compiler and stored in the image. |
no outgoing calls
no test coverage detected
searching dependent graphs…