GetDef returns the introspection definition for the last function call
(modDef *moduleDef)
| 372 | |
| 373 | // GetDef returns the introspection definition for the last function call |
| 374 | func (st *ShellState) GetDef(modDef *moduleDef) (*modFunction, error) { |
| 375 | if st == nil || st.IsEmpty() { |
| 376 | return modDef.MainObject.AsObject.Constructor, nil |
| 377 | } |
| 378 | return st.Function().GetDef(modDef) |
| 379 | } |
| 380 | |
| 381 | // GetDef returns the introspection definition for this function call |
| 382 | func (f FunctionCall) GetDef(modDef *moduleDef) (*modFunction, error) { |
no test coverage detected