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

Function reportError

src/simulate/runtime_string.cpp:589–600  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

587 }
588
589 string reportError(const struct LineInfo & at, const string & message,
590 const string & extra, const string & fixme, CompilationError erc) {
591 const char * src = nullptr;
592 uint32_t len = 0;
593 if ( at.fileInfo ) at.fileInfo->getSourceAndLength(src, len);
594 return reportError(
595 src, len,
596 at.fileInfo ? at.fileInfo->name.c_str() : nullptr,
597 at.line, at.column, at.last_line, at.last_column,
598 at.fileInfo ? at.fileInfo->tabSize : 4,
599 message, extra, fixme, erc );
600 }
601
602 string reportError ( const char * st, uint32_t stlen, const char * fileName,
603 int row, int col, int lrow, int lcol, int tabSize, const string & message,

Callers 15

aot_compileFunction · 0.85
compile_and_runFunction · 0.85
compile_scriptFunction · 0.85
evalMethod · 0.85
init_dyn_modulesFunction · 0.85
inferTypesDirtyMethod · 0.85
das_error_outputFunction · 0.85
das_error_reportFunction · 0.85
ModuleFileAccessMethod · 0.85
rtti_builtin_simulateFunction · 0.85
rtti_builtin_compile_exFunction · 0.85

Calls 5

getFewLinesFunction · 0.85
getSourceAndLengthMethod · 0.80
c_strMethod · 0.45
emptyMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected