MCPcopy Create free account
hub / github.com/beefytech/Beef / BfSystem_GetParserLocationName

Function BfSystem_GetParserLocationName

IDEHelper/Compiler/BfSystem.cpp:4311–4325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4309};
4310
4311BF_EXPORT const char* BfSystem_GetParserLocationName(BfParser* parser, int line, int column)
4312{
4313 int idx = parser->GetIndexAtLine(line);
4314 if (idx == -1)
4315 return NULL;
4316 idx += column;
4317
4318 BfLocationNameVisitor visitor;
4319 visitor.mIndex = idx;
4320 visitor.VisitMembers(parser->mRootNode);
4321
4322 String& outString = *gTLStrReturn.Get();
4323 outString = visitor.mName;
4324 return outString.c_str();
4325}
4326
4327BF_EXPORT BfCompiler* BF_CALLTYPE BfSystem_CreateCompiler(BfSystem* bfSystem, bool isResolveOnly)
4328{

Callers

nothing calls this directly

Calls 4

GetIndexAtLineMethod · 0.80
VisitMembersMethod · 0.45
GetMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected