Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
Symbol Struct Reference

#include <symbols.h>

+ Collaboration diagram for Symbol:

Public Member Functions

 Symbol ()=default
 
 Symbol (int lineNum, Token token)
 
 Symbol (int lineNum, Token token, const QByteArray &lexem)
 
 Symbol (int lineNum, Token token, const QByteArray &lexem, qsizetype from, qsizetype len)
 
QByteArray lexem () const
 
QByteArray unquotedLexem () const
 
 operator SubArray () const
 
bool operator== (const Symbol &o) const
 

Public Attributes

int lineNum = -1
 
Token token = NOTOKEN
 
QByteArray lex
 
qsizetype from = 0
 
qsizetype len = -1
 

Detailed Description

Definition at line 48 of file symbols.h.

Constructor & Destructor Documentation

◆ Symbol() [1/4]

Symbol::Symbol ( )
inlinedefault

◆ Symbol() [2/4]

Symbol::Symbol ( int  lineNum,
Token  token 
)
inline

Definition at line 81 of file symbols.h.

◆ Symbol() [3/4]

Symbol::Symbol ( int  lineNum,
Token  token,
const QByteArray lexem 
)
inline

Definition at line 82 of file symbols.h.

◆ Symbol() [4/4]

Symbol::Symbol ( int  lineNum,
Token  token,
const QByteArray lexem,
qsizetype  from,
qsizetype  len 
)
inline

Definition at line 86 of file symbols.h.

Member Function Documentation

◆ lexem()

QByteArray Symbol::lexem ( ) const
inline

Definition at line 92 of file symbols.h.

References from, lex, and QByteArray::mid().

Referenced by composePreprocessorOutput(), Parser::defaultErrorMsg(), SymbolStack::lexem(), Preprocessor::macroExpandIdentifier(), and Moc::parsePropertyAttributes().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator SubArray()

Symbol::operator SubArray ( ) const
inline

Definition at line 94 of file symbols.h.

References from, and lex.

◆ operator==()

bool Symbol::operator== ( const Symbol o) const
inline

Definition at line 95 of file symbols.h.

References from, lex, and o.

◆ unquotedLexem()

QByteArray Symbol::unquotedLexem ( ) const
inline

Definition at line 93 of file symbols.h.

References from, lex, and QByteArray::mid().

Referenced by Moc::parseClassInfo(), Moc::parseEnum(), Preprocessor::tokenize(), and SymbolStack::unquotedLexem().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ from

qsizetype Symbol::from = 0

Definition at line 100 of file symbols.h.

Referenced by lexem(), operator SubArray(), operator==(), and unquotedLexem().

◆ len

qsizetype Symbol::len = -1

Definition at line 101 of file symbols.h.

◆ lex

QByteArray Symbol::lex

Definition at line 99 of file symbols.h.

Referenced by lexem(), operator SubArray(), operator==(), and unquotedLexem().

◆ lineNum

◆ token


The documentation for this struct was generated from the following file: