WSF
wizard::WsfScriptLookup Class Reference

#include <WsfScriptLookup.hpp>

Public Types

enum  StopLocation { cSTOP_AT_LOCATION , cSTOP_AT_END_OF_FUNCTION , cSTOP_AT_END_OF_STATEMENT }
enum  UpdateResult { cNO_SCRIPT , cFAILURE , cSUCCESS , cSUCCESS_NO_CHANGES }
typedef std::map< std::string, UsValRefSymbolMap

Public Member Functions

 WsfScriptLookup (Project *aProjectPtr)
 WsfScriptLookup (const WsfScriptLookup &)=delete
 WsfScriptLookup (WsfScriptLookup &&)=default
WsfScriptLookupoperator= (const WsfScriptLookup &)=delete
WsfScriptLookupoperator= (WsfScriptLookup &&)=default
 ~WsfScriptLookup ()
void SetScenario (Project *aProjectPtr)
void SetLocation (UtTextDocumentLocation aLocation, StopLocation aParseStopLocation=cSTOP_AT_LOCATION)
void SetStoreErrors (bool aStoreErrors)
UpdateResult Update ()
UsSymbolTableGetLocalScope ()
UsSymbolSearch (const std::string &aSymbolName)
UsTypeFindType (const std::string &aName)
UsTypeGetType (int aTypeId)
bool AddSymbolsInScope (SymbolMap &aSymbols)
bool AddSymbolsFromThis (SymbolMap &aSymbols)
bool AddSymbolsFromBuiltins (SymbolMap &aSymbols)
bool AddSymbolsFromType (SymbolMap &aSymbols, UsType *aTypePtr)
bool HasMethodSymbols ()
bool AddMethodSymbols (SymbolMap &aSymbols)
size_t GetInsertPosition () const
size_t GetReplaceCharacters () const
std::string GetIdentifierLeftOfCursor () const
WsfScriptDataGetScriptData () const
WsfScriptInfoGetScriptInfo () const
UtTextDocumentRange GetDefinitionLocation (UsSymbol *aSymPtr)
std::vector< WsfScriptParser::ErrorRecord > * GetErrors ()
std::string GetFunctionDescription (const std::string &aFunctionName, const UsFunction &aFunc, const std::string &aClassName=std::string())
std::string GetScriptValDescription (UsValRef aVal)
UtTextDocumentLocation GetLocation () const
bool GetCurrentCallInfo (int &aArgNumber, size_t &aOpenParenPos, size_t &aCloseParenPos, std::string &aFunctionName, std::vector< UsFunction > &aFunctionOptions)

Static Public Member Functions

static bool IdentifierToken (const char *aBufferBegin, const char *aBufferEnd, size_t aCharOffset, size_t &aBegin, size_t &aEnd)
static UtTextDocumentRange IdentifierRange (UtTextDocumentLocation aLocation)

Member Typedef Documentation

◆ SymbolMap

typedef std::map<std::string, UsValRef> wizard::WsfScriptLookup::SymbolMap

Member Enumeration Documentation

◆ StopLocation

Enumerator
cSTOP_AT_LOCATION 
cSTOP_AT_END_OF_FUNCTION 
cSTOP_AT_END_OF_STATEMENT 

◆ UpdateResult

Enumerator
cNO_SCRIPT 
cFAILURE 
cSUCCESS 
cSUCCESS_NO_CHANGES 

Constructor & Destructor Documentation

◆ WsfScriptLookup() [1/3]

wizard::WsfScriptLookup::WsfScriptLookup ( Project * aProjectPtr)
explicit

◆ WsfScriptLookup() [2/3]

wizard::WsfScriptLookup::WsfScriptLookup ( const WsfScriptLookup & )
delete

References WsfScriptLookup().

◆ WsfScriptLookup() [3/3]

wizard::WsfScriptLookup::WsfScriptLookup ( WsfScriptLookup && )
default

References WsfScriptLookup().

◆ ~WsfScriptLookup()

wizard::WsfScriptLookup::~WsfScriptLookup ( )

Member Function Documentation

◆ AddMethodSymbols()

◆ AddSymbolsFromBuiltins()

bool wizard::WsfScriptLookup::AddSymbolsFromBuiltins ( SymbolMap & aSymbols)

◆ AddSymbolsFromThis()

bool wizard::WsfScriptLookup::AddSymbolsFromThis ( SymbolMap & aSymbols)

◆ AddSymbolsFromType()

bool wizard::WsfScriptLookup::AddSymbolsFromType ( SymbolMap & aSymbols,
UsType * aTypePtr )

◆ AddSymbolsInScope()

bool wizard::WsfScriptLookup::AddSymbolsInScope ( SymbolMap & aSymbols)

◆ FindType()

UsType * wizard::WsfScriptLookup::FindType ( const std::string & aName)

◆ GetCurrentCallInfo()

◆ GetDefinitionLocation()

UtTextDocumentRange wizard::WsfScriptLookup::GetDefinitionLocation ( UsSymbol * aSymPtr)

◆ GetErrors()

std::vector< wizard::WsfScriptParser::ErrorRecord > * wizard::WsfScriptLookup::GetErrors ( )

◆ GetFunctionDescription()

std::string wizard::WsfScriptLookup::GetFunctionDescription ( const std::string & aFunctionName,
const UsFunction & aFunc,
const std::string & aClassName = std::string() )

◆ GetIdentifierLeftOfCursor()

std::string wizard::WsfScriptLookup::GetIdentifierLeftOfCursor ( ) const
inline

◆ GetInsertPosition()

size_t wizard::WsfScriptLookup::GetInsertPosition ( ) const
inline

◆ GetLocalScope()

UsSymbolTable * wizard::WsfScriptLookup::GetLocalScope ( )

Referenced by Search().

◆ GetLocation()

UtTextDocumentLocation wizard::WsfScriptLookup::GetLocation ( ) const
inline

◆ GetReplaceCharacters()

size_t wizard::WsfScriptLookup::GetReplaceCharacters ( ) const
inline

◆ GetScriptData()

◆ GetScriptInfo()

WsfScriptInfo * wizard::WsfScriptLookup::GetScriptInfo ( ) const
inline

◆ GetScriptValDescription()

◆ GetType()

UsType * wizard::WsfScriptLookup::GetType ( int aTypeId)

◆ HasMethodSymbols()

bool wizard::WsfScriptLookup::HasMethodSymbols ( )

◆ IdentifierRange()

UtTextDocumentRange wizard::WsfScriptLookup::IdentifierRange ( UtTextDocumentLocation aLocation)
static

◆ IdentifierToken()

bool wizard::WsfScriptLookup::IdentifierToken ( const char * aBufferBegin,
const char * aBufferEnd,
size_t aCharOffset,
size_t & aBegin,
size_t & aEnd )
static

References end(), and WsfParseUtil::IsAlphaNumeric().

Referenced by IdentifierRange().

◆ operator=() [1/2]

WsfScriptLookup & wizard::WsfScriptLookup::operator= ( const WsfScriptLookup & )
delete

References WsfScriptLookup().

◆ operator=() [2/2]

WsfScriptLookup & wizard::WsfScriptLookup::operator= ( WsfScriptLookup && )
default

References SetScenario(), and WsfScriptLookup().

◆ Search()

UsSymbol * wizard::WsfScriptLookup::Search ( const std::string & aSymbolName)

◆ SetLocation()

void wizard::WsfScriptLookup::SetLocation ( UtTextDocumentLocation aLocation,
StopLocation aParseStopLocation = cSTOP_AT_LOCATION )

◆ SetScenario()

void wizard::WsfScriptLookup::SetScenario ( Project * aProjectPtr)

Referenced by operator=().

◆ SetStoreErrors()

void wizard::WsfScriptLookup::SetStoreErrors ( bool aStoreErrors)

◆ Update()


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved