FindValidateProgramPipelineExtra searches for the ValidateProgramPipelineExtra in the extras, returning the ValidateProgramPipelineExtra if found, otherwise nil.
(a arena.Arena, extras *api.CmdExtras)
| 147 | // FindValidateProgramPipelineExtra searches for the ValidateProgramPipelineExtra in the extras, |
| 148 | // returning the ValidateProgramPipelineExtra if found, otherwise nil. |
| 149 | func FindValidateProgramPipelineExtra(a arena.Arena, extras *api.CmdExtras) ValidateProgramPipelineExtraʳ { |
| 150 | for _, e := range extras.All() { |
| 151 | if pi, ok := e.(ValidateProgramPipelineExtra); ok { |
| 152 | return MakeValidateProgramPipelineExtraʳ(a).Set(pi) |
| 153 | } |
| 154 | } |
| 155 | return NilValidateProgramPipelineExtraʳ |
| 156 | } |
| 157 | |
| 158 | // FindStaticContextState searches for the StaticContextState in the extras, |
| 159 | // returning the StaticContextState if found, otherwise nil. |
no test coverage detected