MCPcopy Create free account
hub / github.com/WheretIB/nullc / CreateAlias

Method CreateAlias

NULLC/ParseClass.h:347–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345 return funcType;
346 }
347 static AliasInfo* CreateAlias(InplaceStr name, TypeInfo* type)
348 {
349 AliasInfo *info = new (typeInfoPool.Allocate(sizeof(AliasInfo))) AliasInfo;
350 info->name = name;
351 info->nameHash = GetStringHash(name.begin, name.end);
352 info->type = type;
353 info->next = NULL;
354 return info;
355 }
356 GenericContext* CreateGenericContext(unsigned genericStart)
357 {
358 genericInfo = new (typeInfoPool.Allocate(sizeof(GenericContext))) GenericContext();

Callers

nothing calls this directly

Calls 2

GetStringHashFunction · 0.70
AllocateMethod · 0.45

Tested by

no test coverage detected