Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qqmljslexer.cpp File Reference
#include "qqmljslexer_p.h"
#include "qqmljsengine_p.h"
#include "qqmljskeywords_p.h"
#include <private/qqmljsdiagnosticmessage_p.h>
#include <private/qqmljsmemorypool_p.h>
#include <private/qlocale_tools_p.h>
#include <QtCore/qcoreapplication.h>
#include <QtCore/qvarlengtharray.h>
#include <QtCore/qdebug.h>
#include <QtCore/QScopedValueRollback>
#include <optional>
+ Include dependency graph for qqmljslexer.cpp:

Go to the source code of this file.

Namespaces

namespace  QQmlJS
 

Functions

static int regExpFlagFromChar (const QChar &ch)
 
static unsigned char convertHex (ushort c)
 
static QChar convertHex (QChar c1, QChar c2)
 
QDebug QQmlJS::operator<< (QDebug dbg, const Lexer &l)
 
static bool isIdentifierStart (uint ch)
 
static bool isIdentifierPart (uint ch)
 
static bool isUriToken (int token)
 
QDebug QQmlJS::operator<< (QDebug dbg, const Lexer::State &s)
 

Variables

static const int uriTokens []
 

Function Documentation

◆ convertHex() [1/2]

static QChar convertHex ( QChar  c1,
QChar  c2 
)
inlinestatic

Definition at line 45 of file qqmljslexer.cpp.

References c2, convertHex(), and QChar::unicode().

+ Here is the call graph for this function:

◆ convertHex() [2/2]

static unsigned char convertHex ( ushort  c)
inlinestatic

Definition at line 35 of file qqmljslexer.cpp.

Referenced by convertHex().

+ Here is the caller graph for this function:

◆ isIdentifierPart()

static bool isIdentifierPart ( uint  ch)
static

Definition at line 497 of file qqmljslexer.cpp.

References QChar::category(), ch, QChar::Letter_Lowercase, QChar::Letter_Modifier, QChar::Letter_Other, QChar::Letter_Titlecase, QChar::Letter_Uppercase, QChar::Mark_NonSpacing, QChar::Mark_SpacingCombining, QChar::Number_DecimalDigit, QChar::Number_Letter, and QChar::Punctuation_Connector.

+ Here is the call graph for this function:

◆ isIdentifierStart()

static bool isIdentifierStart ( uint  ch)
inlinestatic

Definition at line 475 of file qqmljslexer.cpp.

References QChar::category(), ch, QChar::Letter_Lowercase, QChar::Letter_Modifier, QChar::Letter_Other, QChar::Letter_Titlecase, QChar::Letter_Uppercase, and QChar::Number_Letter.

+ Here is the call graph for this function:

◆ isUriToken()

static bool isUriToken ( int  token)
inlinestatic

Definition at line 1630 of file qqmljslexer.cpp.

References token, and uriTokens.

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

+ Here is the caller graph for this function:

◆ regExpFlagFromChar()

static int regExpFlagFromChar ( const QChar ch)
inlinestatic

Definition at line 23 of file qqmljslexer.cpp.

References ch, QQmlJS::Lexer::RegExp_Global, QQmlJS::Lexer::RegExp_IgnoreCase, QQmlJS::Lexer::RegExp_Multiline, QQmlJS::Lexer::RegExp_Sticky, and QQmlJS::Lexer::RegExp_Unicode.

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

+ Here is the caller graph for this function:

Variable Documentation

◆ uriTokens

const int uriTokens[]
static

Definition at line 1588 of file qqmljslexer.cpp.

Referenced by isUriToken().