MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / GetCorrectedLine

Method GetCorrectedLine

Source/Scripting/scriptfile.cpp:355–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355LineFile ScriptFile::GetCorrectedLine(unsigned line) const {
356 LOGD << "Getting corrected line A." << std::endl;
357 FileRangeList::const_iterator iter = GetFileRange(file_range, line);
358 LOGD << "Getting corrected line B." << std::endl;
359 const IncludeFileRange& range = (*iter);
360 LOGD << "Getting corrected line C." << std::endl;
361
362 return LineFile(line - range.offset, range.file_path);
363}
364
365bool ScriptFileUtil::DetectScriptFileChanged(const Path& path) {
366 ScriptFileMap& file_map = ScriptFileCache::Instance()->files;

Callers

nothing calls this directly

Calls 2

GetFileRangeFunction · 0.85
LineFileClass · 0.85

Tested by

no test coverage detected