Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
QByteArrayView lexemView () const
QByteArrayView unquotedLexemView () const
void mergeStringLiteral (const Symbol &next)
 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 45 of file symbols.h.

Constructor & Destructor Documentation

◆ Symbol() [1/4]

Symbol::Symbol ( )
inlinedefault

Referenced by Moc::parse(), and Preprocessor::tokenize().

Here is the caller graph for this function:

◆ Symbol() [2/4]

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

Definition at line 48 of file symbols.h.

References lineNum, and token.

Referenced by Preprocessor::macroExpandIdentifier(), and Preprocessor::tokenize().

Here is the caller graph for this function:

◆ Symbol() [3/4]

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

Definition at line 49 of file symbols.h.

References Symbol(), lineNum, and token.

Referenced by Symbol().

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

◆ Symbol() [4/4]

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

Definition at line 53 of file symbols.h.

References Symbol(), lineNum, and token.

Referenced by Symbol().

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

Member Function Documentation

◆ lexem()

QByteArray Symbol::lexem ( ) const
inline

Definition at line 59 of file symbols.h.

◆ lexemView()

QByteArrayView Symbol::lexemView ( ) const
inline

Definition at line 61 of file symbols.h.

◆ mergeStringLiteral()

void Symbol::mergeStringLiteral ( const Symbol & next)

Definition at line 1006 of file preprocessor.cpp.

◆ operator SubArray()

Symbol::operator SubArray ( ) const
inline

Definition at line 64 of file symbols.h.

◆ operator==()

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

Definition at line 65 of file symbols.h.

◆ unquotedLexem()

QByteArray Symbol::unquotedLexem ( ) const
inline

Definition at line 60 of file symbols.h.

◆ unquotedLexemView()

QByteArrayView Symbol::unquotedLexemView ( ) const
inline

Definition at line 62 of file symbols.h.

Member Data Documentation

◆ from

qsizetype Symbol::from = 0

Definition at line 70 of file symbols.h.

◆ len

qsizetype Symbol::len = -1

Definition at line 71 of file symbols.h.

◆ lex

QByteArray Symbol::lex

Definition at line 69 of file symbols.h.

◆ lineNum

int Symbol::lineNum = -1

◆ token


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