21 : _FilePath(
Move(FilePath))
24 ClearLineIndexCache();
61 void ClearLineIndexCache() { _LineIndexCache.SetNumZeroed(1,
false); }
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition SourceFileProject.h:78
VERSECOMPILER_API TSRef< CSourceFileModule > FindOrAddSubmodule(const CUTF8StringView &ModuleName, const CUTF8StringView &DirPath)
Definition SourceFileProject.cpp:91
CSourceFileModule(const CUTF8StringView &ModuleName, const CUTF8StringView &ModuleFilePath)
Definition SourceFileProject.h:80
virtual const CUTF8String & GetFilePath() const override
Definition SourceFileProject.h:87
VERSECOMPILER_API CUTF8StringView GetDirPath() const
Definition SourceFileProject.cpp:78
VERSECOMPILER_API TOptional< TSRef< CSourceFileSnippet > > FindSnippetByFilePath(const CUTF8StringView &FilePath, bool bRecursive) const
Definition SourceFileProject.cpp:102
VERSECOMPILER_API TOptional< TSRef< CSourceFileModule > > FindSubmodule(const CUTF8StringView &ModuleName) const
Definition SourceFileProject.cpp:85
void AddSnippet(const uLang::TSRef< ISourceSnippet > &Snippet)
Definition SourceFileProject.h:94
CSourceFileModule(const CUTF8StringView &ModuleName, CUTF8String &&ModuleFilePath)
Definition SourceFileProject.h:83
bool RemoveSnippet(const uLang::TSRef< ISourceSnippet > &Snippet, bool bRecursive)
Definition SourceFileProject.h:95
Definition SourceFileProject.h:111
VERSECOMPILER_API TOptional< TSRef< CSourceFileSnippet > > FindSnippetByFilePath(const CUTF8StringView &FilePath) const
Definition SourceFileProject.cpp:232
VERSECOMPILER_API bool RemoveSnippet(const CUTF8StringView &FilePath)
Definition SourceFileProject.cpp:266
VERSECOMPILER_API CSourceFileModule * GetModuleForFilePath(const CUTF8StringView &FilePath)
Definition SourceFileProject.cpp:211
virtual EOrigin GetOrigin() const override
Definition SourceFileProject.h:119
virtual const CUTF8String & GetDirPath() const override
Definition SourceFileProject.h:117
virtual const CUTF8String & GetFilePath() const override
Definition SourceFileProject.h:118
VERSECOMPILER_API TOptional< TSRef< CSourceFileSnippet > > AddSnippet(const CUTF8StringView &FilePath)
Definition SourceFileProject.cpp:253
Definition SourceFileProject.h:142
VERSECOMPILER_API bool RemoveSnippet(const CUTF8StringView &FilePath)
Definition SourceFileProject.cpp:716
VERSECOMPILER_API TOptional< TSRef< CSourceFileSnippet > > AddSnippet(const CUTF8StringView &FilePath)
Definition SourceFileProject.cpp:702
virtual const CUTF8String & GetFilePath() const override
Definition SourceFileProject.h:154
static VERSECOMPILER_API bool IsValidModuleName(const CUTF8StringView &ModuleName)
Definition SourceFileProject.cpp:749
static VERSECOMPILER_API bool IsSnippetFile(const CUTF8StringView &FilePath)
Definition SourceFileProject.cpp:729
static VERSECOMPILER_API bool IsValidSnippetFileName(const CUTF8StringView &FileName)
Definition SourceFileProject.cpp:768
VERSECOMPILER_API bool WriteVSCodeWorkspaceFile(const CUTF8String &WorkspaceFilePath, const CUTF8String &ProjectFilePath, const TSRef< CDiagnostics > &Diagnostics)
Definition SourceFileProject.cpp:682
VERSECOMPILER_API bool WriteProjectFile(const CUTF8String &ProjectFilePath, const TSRef< CDiagnostics > &Diagnostics)
Definition SourceFileProject.cpp:676
static VERSECOMPILER_API bool IsModuleFile(const CUTF8StringView &FilePath)
Definition SourceFileProject.cpp:734
static VERSECOMPILER_API bool IsPackageFile(const CUTF8StringView &FilePath)
Definition SourceFileProject.cpp:739
static VERSECOMPILER_API bool IsProjectFile(const CUTF8StringView &FilePath)
Definition SourceFileProject.cpp:744
VERSECOMPILER_API TOptional< TSRef< CSourceFileSnippet > > FindSnippetByFilePath(const CUTF8StringView &FilePath) const
Definition SourceFileProject.cpp:688
Definition SourceFileProject.h:18
uint64_t GetSourceVersion() const override
Definition SourceFileProject.h:58
virtual void SetPath(const CUTF8String &Path) override
Definition SourceFileProject.h:32
const CUTF8StringView & GetFilePath() const
Definition SourceFileProject.h:38
CSourceFileSnippet(CUTF8String &&FilePath, const TSRef< IFileSystem > &FileSystem)
Definition SourceFileProject.h:20
TOptional< SIndexedSourceText > GetIndexedSourceText()
Definition SourceFileProject.cpp:60
bool IsSnippetValid(Verse::Vst::Snippet &Snippet) const override
Definition SourceFileProject.h:57
void SetModifiedText(const CUTF8StringView &Text)
Definition SourceFileProject.h:42
static constexpr char _InvalidSnippetCharacters[]
Definition SourceFileProject.h:28
void MarkDirty(int32_t MinDeadLine)
Definition SourceFileProject.h:51
virtual TOptional< uLang::TSRef< Verse::Vst::Snippet > > GetVst() const override
Definition SourceFileProject.h:34
bool HasModifiedText() const
Definition SourceFileProject.h:40
const CUTF8StringView & GetModifiedText() const
Definition SourceFileProject.h:41
virtual CUTF8String GetPath() const override
Definition SourceFileProject.h:31
virtual VERSECOMPILER_API TOptional< CUTF8String > GetText() const override
Definition SourceFileProject.cpp:23
virtual void SetVst(TSRef< Verse::Vst::Snippet > Snippet) override
Definition SourceFileProject.h:35
void UnsetModifiedText()
Definition SourceFileProject.h:43
Definition SourceProject.h:59
VERSECOMPILER_API void AddSnippet(const uLang::TSRef< ISourceSnippet > &Snippet)
Definition SourceProject.cpp:40
VERSECOMPILER_API bool RemoveSnippet(const uLang::TSRef< ISourceSnippet > &Snippet, bool bRecursive)
Definition SourceProject.cpp:47
Definition SourceProject.h:103
EOrigin
Where the source code of this package originates.
Definition SourceProject.h:212
@ FileSystem
Definition SourceProject.h:215
Definition SourceProject.h:275
Definition UTF8StringView.h:15
Definition SourceProject.h:21
Definition SharedPointer.h:77
Definition VVMEngineEnvironment.h:23
@ Unspecified
Not sure if success or failure.
uLang::TUTF8String< CHeapRawAllocator > CUTF8String
A string allocated on the heap.
Definition UTF8String.h:269
ULANG_FORCEINLINE TRemoveReference< T >::Type && Move(T &&Obj)
Definition References.h:86
Definition Optional.h:131
uint64_t _SnippetVersion
Definition VstNode.h:913
Definition SourceProjectWriter.h:17