MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / getFunctionHashById

Function getFunctionHashById

src/builtin/module_builtin_ast.cpp:1095–1099  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1093 }
1094
1095 uint64_t getFunctionHashById(Function *fun, int id, void * pctx, Context * , LineInfoArg * ) {
1096 auto fn = ((Context*)pctx)->getFunction(id);
1097 DAS_ASSERT(fn->mangledName == fun->getMangledName());
1098 return getFunctionHash(fun, fn->code, ((Context*)pctx));
1099 }
1100
1101 bool modAotRequire(Module *mod, StringBuilderWriter *ss, Context * , LineInfoArg * ) {
1102 return mod->aotRequire(*ss) != ModuleAotType::no_aot;

Callers

nothing calls this directly

Calls 2

getFunctionHashFunction · 0.85
getMangledNameMethod · 0.45

Tested by

no test coverage detected