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
QQmlJS::Lexer::State Struct Reference

#include <qqmljslexer_p.h>

+ Collaboration diagram for QQmlJS::Lexer::State:

Public Attributes

Error errorCode = NoError
 
QChar currentChar = u'\n'
 
double tokenValue = 0
 
ParenthesesState parenthesesState = IgnoreParentheses
 
int parenthesesCount = 0
 
QStack< int > outerTemplateBraceCount
 
int bracesCount = -1
 
int stackToken = -1
 
int patternFlags = 0
 
int tokenKind = 0
 
ImportState importState = ImportState::NoQmlImport
 
bool validTokenText = false
 
bool prohibitAutomaticSemicolon = false
 
bool restrictedKeyword = false
 
bool terminator = false
 
bool followsClosingBrace = false
 
bool delimited = true
 
bool handlingDirectives = false
 
CommentState comments = CommentState::NoComment
 
int generatorLevel = 0
 

Friends

bool operator== (State const &s1, State const &s2)
 
bool operator!= (State const &s1, State const &s2)
 
QML_PARSER_EXPORT QDebug operator<< (QDebug dbg, State const &s)
 

Detailed Description

Definition at line 149 of file qqmljslexer_p.h.

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( State const & s1,
State const & s2 )
friend

Definition at line 223 of file qqmljslexer_p.h.

◆ operator<<

QML_PARSER_EXPORT QDebug operator<< ( QDebug dbg,
State const & s )
friend

Definition at line 1818 of file qqmljslexer.cpp.

◆ operator==

bool operator== ( State const & s1,
State const & s2 )
friend

Definition at line 180 of file qqmljslexer_p.h.

Member Data Documentation

◆ bracesCount

int QQmlJS::Lexer::State::bracesCount = -1

Definition at line 162 of file qqmljslexer_p.h.

Referenced by QQmlJS::Lexer::lex().

◆ comments

CommentState QQmlJS::Lexer::State::comments = CommentState::NoComment

Definition at line 177 of file qqmljslexer_p.h.

Referenced by QQmlJS::Lexer::lex().

◆ currentChar

QChar QQmlJS::Lexer::State::currentChar = u'\n'

Definition at line 153 of file qqmljslexer_p.h.

Referenced by addLexToken(), QQmlJS::Lexer::lex(), and QQmlJS::Lexer::scanRegExp().

◆ delimited

bool QQmlJS::Lexer::State::delimited = true

Definition at line 175 of file qqmljslexer_p.h.

Referenced by QQmlJS::Lexer::lex().

◆ errorCode

Error QQmlJS::Lexer::State::errorCode = NoError

Definition at line 151 of file qqmljslexer_p.h.

Referenced by QQmlJS::Lexer::errorCode().

◆ followsClosingBrace

bool QQmlJS::Lexer::State::followsClosingBrace = false

◆ generatorLevel

int QQmlJS::Lexer::State::generatorLevel = 0

Definition at line 178 of file qqmljslexer_p.h.

◆ handlingDirectives

bool QQmlJS::Lexer::State::handlingDirectives = false

Definition at line 176 of file qqmljslexer_p.h.

Referenced by QQmlJS::Lexer::lex(), and QQmlJS::Lexer::scanDirectives().

◆ importState

ImportState QQmlJS::Lexer::State::importState = ImportState::NoQmlImport

Definition at line 168 of file qqmljslexer_p.h.

Referenced by QQmlJS::Lexer::lex().

◆ outerTemplateBraceCount

QStack<int> QQmlJS::Lexer::State::outerTemplateBraceCount

Definition at line 161 of file qqmljslexer_p.h.

◆ parenthesesCount

int QQmlJS::Lexer::State::parenthesesCount = 0

Definition at line 158 of file qqmljslexer_p.h.

Referenced by QQmlJS::Lexer::lex().

◆ parenthesesState

ParenthesesState QQmlJS::Lexer::State::parenthesesState = IgnoreParentheses

Definition at line 157 of file qqmljslexer_p.h.

Referenced by QQmlJS::Lexer::lex().

◆ patternFlags

int QQmlJS::Lexer::State::patternFlags = 0

Definition at line 166 of file qqmljslexer_p.h.

Referenced by QQmlJS::Lexer::scanRegExp().

◆ prohibitAutomaticSemicolon

bool QQmlJS::Lexer::State::prohibitAutomaticSemicolon = false

Definition at line 171 of file qqmljslexer_p.h.

◆ restrictedKeyword

bool QQmlJS::Lexer::State::restrictedKeyword = false

Definition at line 172 of file qqmljslexer_p.h.

Referenced by QQmlJS::Lexer::lex().

◆ stackToken

int QQmlJS::Lexer::State::stackToken = -1

Definition at line 164 of file qqmljslexer_p.h.

Referenced by QQmlJS::Lexer::lex().

◆ terminator

bool QQmlJS::Lexer::State::terminator = false

Definition at line 173 of file qqmljslexer_p.h.

Referenced by QQmlJS::Lexer::canInsertAutomaticSemicolon().

◆ tokenKind

◆ tokenValue

double QQmlJS::Lexer::State::tokenValue = 0

Definition at line 154 of file qqmljslexer_p.h.

◆ validTokenText

bool QQmlJS::Lexer::State::validTokenText = false

Definition at line 170 of file qqmljslexer_p.h.

Referenced by QQmlJS::Lexer::scanRegExp(), and QQmlJS::Lexer::tokenText().


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