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
 
 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.

◆ operator SubArray()

Symbol::operator SubArray ( ) const
inline

Definition at line 61 of file symbols.h.

◆ operator==()

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

Definition at line 62 of file symbols.h.

◆ unquotedLexem()

QByteArray Symbol::unquotedLexem ( ) const
inline

Definition at line 60 of file symbols.h.

Member Data Documentation

◆ from

qsizetype Symbol::from = 0

Definition at line 67 of file symbols.h.

◆ len

qsizetype Symbol::len = -1

Definition at line 68 of file symbols.h.

◆ lex

QByteArray Symbol::lex

Definition at line 66 of file symbols.h.

◆ lineNum

int Symbol::lineNum = -1

◆ token


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