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

Function RegisterAliasType

user/argtype/iargtype.go:284–291  ·  view source on GitHub ↗
(type_index, alias_type_index uint32)

Source from the content-addressed store, hash-verified

282}
283
284func RegisterAliasType(type_index, alias_type_index uint32) IArgType {
285 if at, dup := arg_types[type_index]; dup {
286 panic(fmt.Sprintf("duplicate register for ArgType name=%s index=%d", at.GetName(), at.GetTypeIndex()))
287 }
288 p := GetArgType(alias_type_index)
289 arg_types[type_index] = p
290 return p
291}

Callers 1

initFunction · 0.85

Calls 3

GetArgTypeFunction · 0.85
GetNameMethod · 0.65
GetTypeIndexMethod · 0.65

Tested by

no test coverage detected