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

Method setFileInfo

src/simulate/debug_info.cpp:841–848  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

839 }
840
841 FileInfo * FileAccess::setFileInfo ( const string & fileName, FileInfoPtr && info ) {
842 // TODO: test. for now we need to allow replace
843 // if ( files.find(fileName)!=files.end() ) return nullptr;
844 files[fileName] = das::move(info);
845 auto ins = files.find(fileName);
846 ins->second->name = (char *) ins->first.c_str();
847 return ins->second.get();
848 }
849
850 bool FileAccess::invalidateFileInfo ( const string & fileName ) {
851 auto it = files.find(fileName);

Callers 9

compile_and_runFunction · 0.80
compileBuiltinModuleMethod · 0.80
rtti_builtin_compile_exFunction · 0.80
introduceFileFunction · 0.80
compileLiteralFunction · 0.80
compileLiteralFunction · 0.80
tutorialFunction · 0.80
ExprCalcMethod · 0.80

Calls 3

findMethod · 0.45
c_strMethod · 0.45
getMethod · 0.45

Tested by 2

compileLiteralFunction · 0.64
compileLiteralFunction · 0.64