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
qqmljslexer.cpp File Reference

(aac94b9cb6bbfe8e16c8282dcdaf11b36eea4d6e)

#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, and convertHex().

+ 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 498 of file qqmljslexer.cpp.

References ch.

◆ isIdentifierStart()

static bool isIdentifierStart ( uint ch)
inlinestatic

Definition at line 476 of file qqmljslexer.cpp.

References ch.

◆ isUriToken()

static bool isUriToken ( int token)
inlinestatic

Definition at line 1684 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 1642 of file qqmljslexer.cpp.

Referenced by isUriToken().