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::Engine Class Reference

#include <qqmljsengine_p.h>

+ Collaboration diagram for QQmlJS::Engine:

Public Member Functions

void setCode (const QString &code)
 
const QStringcode () const
 
void addComment (int pos, int len, int line, int col)
 
QList< SourceLocationcomments () const
 
Lexerlexer () const
 
void setLexer (Lexer *lexer)
 
Directivesdirectives () const
 
void setDirectives (Directives *directives)
 
MemoryPoolpool ()
 
const MemoryPoolpool () const
 
QStringView midRef (int position, int size)
 
QStringView newStringRef (const QString &text)
 
QStringView newStringRef (const QChar *chars, int size)
 

Detailed Description

Definition at line 59 of file qqmljsengine_p.h.

Member Function Documentation

◆ addComment()

void QQmlJS::Engine::addComment ( int pos,
int len,
int line,
int col )
inline

Definition at line 72 of file qqmljsengine_p.h.

References line, pos, and Q_ASSERT.

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

+ Here is the caller graph for this function:

◆ code()

const QString & QQmlJS::Engine::code ( ) const
inline

Definition at line 70 of file qqmljsengine_p.h.

Referenced by setCode().

+ Here is the caller graph for this function:

◆ comments()

QList< SourceLocation > QQmlJS::Engine::comments ( ) const
inline

Definition at line 78 of file qqmljsengine_p.h.

◆ directives()

Directives * QQmlJS::Engine::directives ( ) const
inline

Definition at line 83 of file qqmljsengine_p.h.

Referenced by setDirectives().

+ Here is the caller graph for this function:

◆ lexer()

Lexer * QQmlJS::Engine::lexer ( ) const
inline

Definition at line 80 of file qqmljsengine_p.h.

Referenced by setLexer().

+ Here is the caller graph for this function:

◆ midRef()

QStringView QQmlJS::Engine::midRef ( int position,
int size )
inline

Definition at line 89 of file qqmljsengine_p.h.

References QString::mid(), and position().

+ Here is the call graph for this function:

◆ newStringRef() [1/2]

QStringView QQmlJS::Engine::newStringRef ( const QChar * chars,
int size )
inline

Definition at line 100 of file qqmljsengine_p.h.

References newStringRef().

+ Here is the call graph for this function:

◆ newStringRef() [2/2]

QStringView QQmlJS::Engine::newStringRef ( const QString & text)
inline

Definition at line 94 of file qqmljsengine_p.h.

References text.

Referenced by newStringRef(), and QQmlTypeCompiler::newStringRef().

+ Here is the caller graph for this function:

◆ pool() [1/2]

MemoryPool * QQmlJS::Engine::pool ( )
inline

Definition at line 86 of file qqmljsengine_p.h.

Referenced by QmlIR::IRBuilder::generateFromQml(), QmlIR::JSCodeGen::generateJSCodeForFunctionsAndBindings(), QmlIR::JSCodeGen::generateRuntimeFunctions(), and QQmlTypeCompiler::memoryPool().

+ Here is the caller graph for this function:

◆ pool() [2/2]

const MemoryPool * QQmlJS::Engine::pool ( ) const
inline

Definition at line 87 of file qqmljsengine_p.h.

◆ setCode()

void QQmlJS::Engine::setCode ( const QString & code)
inline

Definition at line 69 of file qqmljsengine_p.h.

References code().

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

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setDirectives()

void QQmlJS::Engine::setDirectives ( Directives * directives)
inline

Definition at line 84 of file qqmljsengine_p.h.

References directives().

+ Here is the call graph for this function:

◆ setLexer()

void QQmlJS::Engine::setLexer ( Lexer * lexer)
inline

Definition at line 81 of file qqmljsengine_p.h.

References lexer().

+ Here is the call graph for this function:

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