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

Method WarnAfter

IDEHelper/Compiler/BfSystem.cpp:1875–1888  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1873}
1874
1875BfError* BfPassInstance::WarnAfter(int warningNumber, const StringImpl& warning, BfAstNode* refNode)
1876{
1877 auto parser = refNode->GetSourceData()->ToParserData();
1878 if (parser != NULL)
1879 {
1880 if (parser->IsUnwarnedAt(refNode))
1881 {
1882 mLastWasDisplayed = false;
1883 return NULL;
1884 }
1885 }
1886
1887 return WarnAt(warningNumber, warning, refNode->GetSourceData(), refNode->GetSrcEnd());
1888}
1889
1890BfError* BfPassInstance::WarnAfterAt(int warningNumber, const StringImpl& error, BfSourceData* bfSource, int srcIdx)
1891{

Callers

nothing calls this directly

Calls 4

GetSourceDataMethod · 0.80
IsUnwarnedAtMethod · 0.80
ToParserDataMethod · 0.45
GetSrcEndMethod · 0.45

Tested by

no test coverage detected