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

Method HandleGeneratorErrors

IDEHelper/Compiler/BfCompiler.cpp:9095–9110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9093}
9094
9095void BfCompiler::HandleGeneratorErrors(StringImpl& result)
9096{
9097 if ((mPassInstance->mErrors.IsEmpty()) && (mPassInstance->mOutStream.IsEmpty()))
9098 return;
9099
9100 result.Clear();
9101
9102 for (auto& msg : mPassInstance->mOutStream)
9103 {
9104 String error = msg;
9105 error.Replace('\n', '\r');
9106 result += "!error\t";
9107 result += error;
9108 result += "\n";
9109 }
9110}
9111
9112String BfCompiler::GetGeneratorTypeDefList()
9113{

Callers

nothing calls this directly

Calls 3

IsEmptyMethod · 0.45
ClearMethod · 0.45
ReplaceMethod · 0.45

Tested by

no test coverage detected