Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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 161 of file qv4compilercontext_p.h.

Member Function Documentation

◆ isLexicallyScoped()

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

Definition at line 170 of file qv4compilercontext_p.h.

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 isLexicallyScoped().

Here is the call graph for this function:

Member Data Documentation

◆ canEscape

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

Definition at line 165 of file qv4compilercontext_p.h.

Referenced by QV4::Compiler::Context::resolveName().

◆ declarationLocation

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

Definition at line 168 of file qv4compilercontext_p.h.

◆ function

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

Definition at line 167 of file qv4compilercontext_p.h.

◆ index

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

Definition at line 163 of file qv4compilercontext_p.h.

Referenced by QV4::Compiler::Context::resolveName().

◆ isInjected

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

◆ scope

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

Definition at line 164 of file qv4compilercontext_p.h.

◆ type

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

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