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

Method AddLocation

IDEHelper/Compiler/BfCompiler.cpp:8783–8797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8781 }
8782
8783 void AddLocation(BfAstNode* node)
8784 {
8785 if (node == NULL)
8786 return;
8787 auto parserData = node->GetSourceData()->ToParserData();
8788 if (parserData != NULL)
8789 {
8790 mResult += parserData->mFileName;
8791
8792 int lineNum = 0;
8793 int column = 0;
8794 parserData->GetLineCharAtIdx(node->GetSrcStart(), lineNum, column);
8795 mResult += StrFormat("\t%d\t%d", lineNum, column);
8796 }
8797 };
8798
8799 void AddFieldDef(BfFieldDef* fieldDef)
8800 {

Callers 3

GetTypeDefListMethod · 0.80
GetTypeDefMatchesMethod · 0.80
GetTypeDefInfoMethod · 0.80

Calls 4

GetSourceDataMethod · 0.80
GetLineCharAtIdxMethod · 0.80
ToParserDataMethod · 0.45
GetSrcStartMethod · 0.45

Tested by

no test coverage detected