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

Method CreateFunctionType

NULLC/ParseClass.h:339–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337 MemberVariable *firstVariable, *lastVariable;
338
339 FunctionType* CreateFunctionType(TypeInfo *retType, unsigned int paramCount)
340 {
341 funcType = new (typeInfoPool.Allocate(sizeof(FunctionType))) FunctionType();
342 funcType->paramType = (TypeInfo**)typeInfoPool.Allocate(paramCount * sizeof(TypeInfo*));
343 funcType->paramCount = paramCount;
344 funcType->retType = retType;
345 return funcType;
346 }
347 static AliasInfo* CreateAlias(InplaceStr name, TypeInfo* type)
348 {
349 AliasInfo *info = new (typeInfoPool.Allocate(sizeof(AliasInfo))) AliasInfo;

Callers 2

ImportModuleMethod · 0.80
GetFunctionTypeFunction · 0.80

Calls 1

AllocateMethod · 0.45

Tested by

no test coverage detected