GetTypeDef returns the introspection definition for the return type of the last function call
(modDef *moduleDef)
| 366 | |
| 367 | // GetTypeDef returns the introspection definition for the return type of the last function call |
| 368 | func (st *ShellState) GetTypeDef(modDef *moduleDef) (*modTypeDef, error) { |
| 369 | fn, err := st.GetDef(modDef) |
| 370 | return fn.ReturnType, err |
| 371 | } |
| 372 | |
| 373 | // GetDef returns the introspection definition for the last function call |
| 374 | func (st *ShellState) GetDef(modDef *moduleDef) (*modFunction, error) { |
no test coverage detected