MCPcopy Create free account
hub / github.com/SeeFlowerX/stackplz / GetArgTypeByName

Function GetArgTypeByName

user/argtype/iargtype.go:200–210  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

198}
199
200func GetArgTypeByName(name string) IArgType {
201 for _, arg_type := range arg_types {
202 if arg_type.GetName() == name {
203 return arg_type
204 }
205 if arg_type.HasAliasName(name) {
206 return arg_type
207 }
208 }
209 panic(fmt.Sprintf("GetArgType failed, name=%s not exists", name))
210}
211
212func PreRegister() {
213 // 先注册好各种内置类型

Callers 2

SetTypeByNameMethod · 0.92
RegisterAliasFunction · 0.85

Calls 2

GetNameMethod · 0.65
HasAliasNameMethod · 0.65

Tested by

no test coverage detected