HasFunction checks if an object has a function with the given name.
(fp functionProvider, name string)
| 600 | |
| 601 | // HasFunction checks if an object has a function with the given name. |
| 602 | func (m *moduleDef) HasFunction(fp functionProvider, name string) bool { |
| 603 | if fp == nil { |
| 604 | return false |
| 605 | } |
| 606 | fn, _ := m.GetFunction(fp, name) |
| 607 | return fn != nil |
| 608 | } |
| 609 | |
| 610 | // LoadTypeDef rebinds shallow TypeDef refs onto the canonical typedefs loaded |
| 611 | // from currentTypeDefs(returnAllTypes: true). |
nothing calls this directly
no test coverage detected