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
QV4::Compiler::Context::Member Struct Reference

#include <qv4compilercontext_p.h>

+ Collaboration diagram for QV4::Compiler::Context::Member:

Public Member Functions

bool isLexicallyScoped () const
 
bool requiresTDZCheck (const QQmlJS::SourceLocation &accessLocation, bool accessAcrossContextBoundaries) const
 

Public Attributes

MemberType type = UndefinedMember
 
int index = -1
 
QQmlJS::AST::VariableScope scope = QQmlJS::AST::VariableScope::Var
 
bool canEscape = false
 
bool isInjected = false
 
QQmlJS::AST::FunctionExpressionfunction = nullptr
 
QQmlJS::SourceLocation declarationLocation
 

Detailed Description

Definition at line 159 of file qv4compilercontext_p.h.

Member Function Documentation

◆ isLexicallyScoped()

bool QV4::Compiler::Context::Member::isLexicallyScoped ( ) const
inline

Definition at line 168 of file qv4compilercontext_p.h.

References QQmlJS::AST::Var.

Referenced by requiresTDZCheck().

+ Here is the caller graph for this function:

◆ requiresTDZCheck()

bool Context::Member::requiresTDZCheck ( const QQmlJS::SourceLocation & accessLocation,
bool accessAcrossContextBoundaries ) const

Definition at line 40 of file qv4compilercontext.cpp.

References declarationLocation, QQmlJS::SourceLocation::end(), isLexicallyScoped(), and QQmlJS::SourceLocation::isValid().

+ Here is the call graph for this function:

Member Data Documentation

◆ canEscape

bool QV4::Compiler::Context::Member::canEscape = false
mutable

Definition at line 163 of file qv4compilercontext_p.h.

◆ declarationLocation

QQmlJS::SourceLocation QV4::Compiler::Context::Member::declarationLocation

Definition at line 166 of file qv4compilercontext_p.h.

Referenced by requiresTDZCheck().

◆ function

QQmlJS::AST::FunctionExpression* QV4::Compiler::Context::Member::function = nullptr

Definition at line 165 of file qv4compilercontext_p.h.

◆ index

int QV4::Compiler::Context::Member::index = -1

Definition at line 161 of file qv4compilercontext_p.h.

◆ isInjected

bool QV4::Compiler::Context::Member::isInjected = false

Definition at line 164 of file qv4compilercontext_p.h.

◆ scope

QQmlJS::AST::VariableScope QV4::Compiler::Context::Member::scope = QQmlJS::AST::VariableScope::Var

Definition at line 162 of file qv4compilercontext_p.h.

◆ type

MemberType QV4::Compiler::Context::Member::type = UndefinedMember

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