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
Token Struct Reference

#include <qqmlsemantictokens_p.h>

Collaboration diagram for Token:

Public Member Functions

 Token ()=default
 Token (const QQmlJS::SourceLocation &loc, int tokenType, int tokenModifier=0)

Public Attributes

int offset
int length
int startLine
int startColumn
int tokenType
int tokenModifier

Friends

bool operator< (const Token &lhs, const Token &rhs)
bool operator== (const Token &lhs, const Token &rhs)

Detailed Description

Definition at line 124 of file qqmlsemantictokens_p.h.

Constructor & Destructor Documentation

◆ Token() [1/2]

Token::Token ( )
default

◆ Token() [2/2]

Token::Token ( const QQmlJS::SourceLocation & loc,
int tokenType,
int tokenModifier = 0 )
inline

Definition at line 127 of file qqmlsemantictokens_p.h.

References length, offset, startColumn, startLine, tokenModifier, and tokenType.

◆ operator<

bool operator< ( const Token & lhs,
const Token & rhs )
friend

Definition at line 137 of file qqmlsemantictokens_p.h.

References offset.

◆ operator==

bool operator== ( const Token & lhs,
const Token & rhs )
friend

Definition at line 142 of file qqmlsemantictokens_p.h.

References length, offset, startColumn, startLine, tokenModifier, and tokenType.

Member Data Documentation

◆ length

int Token::length

◆ offset

◆ startColumn

int Token::startColumn

Definition at line 152 of file qqmlsemantictokens_p.h.

Referenced by Token(), and operator==.

◆ startLine

int Token::startLine

Definition at line 151 of file qqmlsemantictokens_p.h.

Referenced by Token(), and operator==.

◆ tokenModifier

int Token::tokenModifier

Definition at line 154 of file qqmlsemantictokens_p.h.

Referenced by Token(), and operator==.

◆ tokenType

int Token::tokenType

Definition at line 153 of file qqmlsemantictokens_p.h.

Referenced by Token(), and operator==.


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