|
WSF
|
#include <WsfParseSourceInclude.hpp>

Classes | |
| class | Entry |
Public Types | |
| enum | EntryType { cINCLUDE_COMMAND , cLINE_COMMENT , cBLOCK_COMMENT , cPREPROCESSOR_DEFINE , cPREPROCESSOR_VARIABLE } |
Public Member Functions | |
| WsfParseSourceInclude () | |
| WsfParseSourceInclude (const WsfParseSourceInclude &)=delete | |
| WsfParseSourceInclude (WsfParseSourceInclude &&)=default | |
| WsfParseSourceInclude & | operator= (const WsfParseSourceInclude &)=delete |
| WsfParseSourceInclude & | operator= (WsfParseSourceInclude &&)=default |
| ~WsfParseSourceInclude () | |
| void | AddInclude (const UtTextRange &aRange, UtTextDocument *aSourcePtr) |
| void | AddInclude (const UtTextRange &aRange, WsfParseSourceInclude *aIncludePtr) |
| void | AddVirtualInclude (WsfParseSourceInclude *aIncludePtr) |
| void | AddComment (const UtTextRange &aRange, bool aIsLineComment) |
| void | AddPreprocessorEntry (EntryType aEntryType, const UtTextRange &aRange) |
| WsfParseSourceIncludeId | GetId () const |
| WsfParseSourceInclude * | GetRoot () |
Static Public Member Functions | |
| static bool | IsValidLocation (int aLocation) |
Public Attributes | |
| UtTextRange | mLocation |
| The location of the include directive. This can be null for the 'main' input file. | |
| WsfParseSourceInclude * | mParentPtr |
| UtTextDocument * | mSourcePtr |
| size_t | mIncludeCount |
| The number of times this file has been included. | |
| std::vector< Entry > | mEntries |
Static Public Attributes | |
| static constexpr std::size_t | cVIRTUAL_LOCATION = 0x0fffffff |
| static const UtTextRange | cVIRTUAL_RANGE |
Represents an instance where a file is included. include_once where the file has already been used does not result in a WsfParseSourceInclude. Most of the time There is a 1-to-1 correlation between this class and UtTextDocument. This is primarily required for strange usage of include.
|
inline |
References mIncludeCount, mParentPtr, and mSourcePtr.
Referenced by AddInclude(), AddVirtualInclude(), GetRoot(), operator=(), operator=(), WsfParseSourceInclude(), and WsfParseSourceInclude().
|
delete |
References WsfParseSourceInclude().
|
default |
References WsfParseSourceInclude().
| WsfParseSourceInclude::~WsfParseSourceInclude | ( | ) |
References mEntries, and mParentPtr.
| void WsfParseSourceInclude::AddComment | ( | const UtTextRange & | aRange, |
| bool | aIsLineComment ) |
Adds a comment entry
| aRange | is the location of the comment in the input file |
| aIsLineComment | is whether the comment is a line (# or //) comment |
References cBLOCK_COMMENT, cLINE_COMMENT, mEntries, WsfParseSourceInclude::Entry::mLocation, and WsfParseSourceInclude::Entry::mType.
Referenced by operator=().
| void WsfParseSourceInclude::AddInclude | ( | const UtTextRange & | aRange, |
| UtTextDocument * | aSourcePtr ) |
References cINCLUDE_COMMAND, mEntries, WsfParseSourceInclude::Entry::mLocation, WsfParseSourceInclude::Entry::mTargetSource, and WsfParseSourceInclude::Entry::mType.
Referenced by operator=().
| void WsfParseSourceInclude::AddInclude | ( | const UtTextRange & | aRange, |
| WsfParseSourceInclude * | aIncludePtr ) |
| void WsfParseSourceInclude::AddPreprocessorEntry | ( | EntryType | aEntryType, |
| const UtTextRange & | aRange ) |
References mEntries, WsfParseSourceInclude::Entry::mLocation, and WsfParseSourceInclude::Entry::mType.
Referenced by operator=().
| void WsfParseSourceInclude::AddVirtualInclude | ( | WsfParseSourceInclude * | aIncludePtr | ) |
|
inline |
References mIncludeCount, and mSourcePtr.
| WsfParseSourceInclude * WsfParseSourceInclude::GetRoot | ( | ) |
References mParentPtr, and WsfParseSourceInclude().
|
inlinestatic |
|
delete |
References WsfParseSourceInclude().
|
default |
References AddComment(), AddInclude(), AddPreprocessorEntry(), AddVirtualInclude(), and WsfParseSourceInclude().
|
staticconstexpr |
|
static |
Referenced by AddVirtualInclude().
| std::vector<Entry> WsfParseSourceInclude::mEntries |
Referenced by AddComment(), AddInclude(), AddInclude(), AddPreprocessorEntry(), AddVirtualInclude(), wizard::ParseResults::FindIncludeAtPoint(), wizard::ParseResults::FindIncludes(), wizard::ParseResults::GetFileNotifications(), wizard::EditAssist_Include::SetIncludeData(), wizard::WsfStyler::UpdateStyle(), and ~WsfParseSourceInclude().
| size_t WsfParseSourceInclude::mIncludeCount |
The number of times this file has been included.
Referenced by GetId(), and WsfParseSourceInclude().
| UtTextRange WsfParseSourceInclude::mLocation |
The location of the include directive. This can be null for the 'main' input file.
| WsfParseSourceInclude* WsfParseSourceInclude::mParentPtr |
Referenced by GetRoot(), WsfParseSourceInclude(), and ~WsfParseSourceInclude().
| UtTextDocument* WsfParseSourceInclude::mSourcePtr |