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

Method getOrigin

src/ast/ast.cpp:1025–1035  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1023 }
1024
1025 FunctionPtr Function::getOrigin() const {
1026 if ( fromGeneric ) {
1027 auto origin = fromGeneric;
1028 while ( origin->fromGeneric ) {
1029 origin = origin->fromGeneric;
1030 }
1031 return origin;
1032 } else {
1033 return nullptr;
1034 }
1035 }
1036
1037 // built-in function
1038

Callers 12

preVisitExpressionMethod · 0.80
preVisitMethod · 0.80
makeCallMacroMethod · 0.80
getSearchModuleMethod · 0.80
getFunctionVisModuleMethod · 0.80
canCallPrivateMethod · 0.80
isVisibleFuncMethod · 0.80
findFuncAddrMethod · 0.80
findMatchingFunctionsMethod · 0.80
getCurrentSearchModuleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected