loadModDef returns the module definition for a module ref, if it exists
(ref string)
| 983 | |
| 984 | // loadModDef returns the module definition for a module ref, if it exists |
| 985 | func (h *shellCallHandler) loadModDef(ref string) *moduleDef { |
| 986 | if v, exists := h.modDefs.Load(ref); exists { |
| 987 | if def, ok := v.(*moduleDef); ok { |
| 988 | return def |
| 989 | } |
| 990 | } |
| 991 | return nil |
| 992 | } |
| 993 | |
| 994 | // GetDef returns the type definitions for a given state |
| 995 | // |
no test coverage detected