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

Method FunctionInfo

NULLC/ParseClass.h:467–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465{
466public:
467 explicit FunctionInfo(const char *funcName, unsigned int hash, unsigned int originalHash)
468 {
469 name = funcName;
470 nameLength = (int)strlen(name);
471 nameHash = hash;
472 nameHashOrig = originalHash;
473
474 address = 0;
475 codeSize = 0;
476 funcPtr = NULL;
477 indexInArr = 0;
478 retType = NULL;
479 visible = true;
480 implemented = false;
481 pure = false;
482 explicitlyReturned = false;
483 genericInstance = false;
484 typeConstructor = false;
485 generic = NULL;
486 genericBase = NULL;
487 functionNode = NULL;
488 type = NORMAL;
489 funcType = NULL;
490 allParamSize = 0;
491 parentClass = NULL;
492 parentFunc = NULL;
493 parentNamespace = NULL;
494
495 extraParam = firstParam = lastParam = NULL;
496 funcContext = NULL;
497 afterNode = NULL;
498 paramCount = 0;
499 firstExternal = lastExternal = NULL;
500 externalCount = 0;
501 externalSize = 0;
502 closeUpvals = false;
503 firstLocal = lastLocal = NULL;
504 localCount = 0;
505
506 maxBlockDepth = 0;
507 closeListStart = 0;
508
509 childAlias = NULL;
510#ifdef NULLC_ENABLE_C_TRANSLATION
511 yieldCount = 0;
512#endif
513#ifdef NULLC_LLVM_SUPPORT
514 llvmFunction = NULL;
515 llvmImplemented = false;
516#endif
517 }
518
519 void AddParameter(VariableInfo *variable)
520 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected