Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 46 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 49 of file symbols.h.

◆ Symbol() [3/4]

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

Definition at line 50 of file symbols.h.

◆ Symbol() [4/4]

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

Definition at line 54 of file symbols.h.

Member Function Documentation

◆ lexem()

QByteArray Symbol::lexem ( ) const
inline

Definition at line 60 of file symbols.h.

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

Referenced by composePreprocessorOutput(), Parser::defaultErrorMsg(), Parser::lexem(), SymbolStack::lexem(), Moc::lexemUntil(), Preprocessor::macroExpandIdentifier(), QSvgHandler::parseCSStoXMLAttrs(), and QCss::Parser::parseFunction().

+ 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 62 of file symbols.h.

References from, and lex.

◆ operator==()

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

Definition at line 63 of file symbols.h.

References from, lex, and o.

◆ unquotedLexem()

QByteArray Symbol::unquotedLexem ( ) const
inline

Definition at line 61 of file symbols.h.

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

Referenced by Moc::parseClassInfo(), Moc::parseEnum(), Preprocessor::tokenize(), Parser::unquotedLexem(), 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 68 of file symbols.h.

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

◆ len

qsizetype Symbol::len = -1

Definition at line 69 of file symbols.h.

Referenced by QSvgHandler::parseCSStoXMLAttrs().

◆ lex

QByteArray Symbol::lex

Definition at line 67 of file symbols.h.

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

◆ lineNum

int Symbol::lineNum = -1

◆ token


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