![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qv4compilerscanfunctions_p.h>
Public Member Functions | |
ScanFunctions (Codegen *cg, const QString &sourceCode, ContextType defaultProgramType) | |
void | operator() (QQmlJS::AST::Node *node) |
void | handleTopLevelFunctionFormals (QQmlJS::AST::FunctionExpression *node) |
void | enterGlobalEnvironment (ContextType compilationMode) |
void | enterEnvironment (QQmlJS::AST::Node *node, ContextType compilationMode, const QString &name) |
void | leaveEnvironment () |
void | enterQmlFunction (QQmlJS::AST::FunctionExpression *ast) |
Protected Types | |
enum class | FunctionNameContext { None , Inner , Outer } |
Protected Attributes | |
Codegen * | _cg |
const QString | _sourceCode |
Context * | _context |
QStack< Context * > | _contextStack |
bool | _allowFuncDecls |
ContextType | defaultProgramType |
Protected Attributes inherited from QQmlJS::AST::BaseVisitor | |
quint16 | m_recursionDepth = 0 |
Definition at line 43 of file qv4compilerscanfunctions_p.h.
|
strongprotected |
Enumerator | |
---|---|
None | |
Inner | |
Outer |
Definition at line 72 of file qv4compilerscanfunctions_p.h.
ScanFunctions::ScanFunctions | ( | Codegen * | cg, |
const QString & | sourceCode, | ||
ContextType | defaultProgramType ) |
Definition at line 28 of file qv4compilerscanfunctions.cpp.
References ScanFunctions(), _allowFuncDecls, and _cg.
Referenced by ScanFunctions().
|
protected |
Definition at line 722 of file qv4compilerscanfunctions.cpp.
References _cg.
Referenced by operator()().
|
protected |
Definition at line 69 of file qv4compilerscanfunctions.cpp.
|
protected |
Definition at line 94 of file qv4compilerscanfunctions.cpp.
References _cg.
|
overrideprotected |
Definition at line 577 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 588 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 616 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 401 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 382 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 132 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 557 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 536 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 509 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 474 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 497 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 119 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 639 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
void ScanFunctions::enterEnvironment | ( | QQmlJS::AST::Node * | node, |
ContextType | compilationMode, | ||
const QString & | name ) |
Definition at line 51 of file qv4compilerscanfunctions.cpp.
References _cg.
|
protected |
Definition at line 466 of file qv4compilerscanfunctions.cpp.
References _cg.
|
protected |
void ScanFunctions::enterGlobalEnvironment | ( | ContextType | compilationMode | ) |
Definition at line 46 of file qv4compilerscanfunctions.cpp.
|
inline |
Definition at line 62 of file qv4compilerscanfunctions_p.h.
|
inline |
Definition at line 52 of file qv4compilerscanfunctions_p.h.
void ScanFunctions::leaveEnvironment | ( | ) |
Definition at line 63 of file qv4compilerscanfunctions.cpp.
Referenced by endVisit(), endVisit(), endVisit(), endVisit(), endVisit(), endVisit(), endVisit(), endVisit(), endVisit(), endVisit(), endVisit(), endVisit(), and visit().
void ScanFunctions::operator() | ( | QQmlJS::AST::Node * | node | ) |
Definition at line 38 of file qv4compilerscanfunctions.cpp.
References calcEscapingVariables().
|
overrideprotectedvirtual |
Implements QQmlJS::AST::BaseVisitor.
Definition at line 893 of file qv4compilerscanfunctions.cpp.
References _cg.
|
overrideprotected |
Definition at line 458 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 569 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 279 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 582 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 593 of file qv4compilerscanfunctions.cpp.
References _cg.
|
overrideprotected |
Definition at line 387 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 371 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 514 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 124 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 137 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 340 of file qv4compilerscanfunctions.cpp.
References _cg, and leaveEnvironment().
|
overrideprotected |
Definition at line 432 of file qv4compilerscanfunctions.cpp.
References _cg.
|
overrideprotected |
Definition at line 541 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 523 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 504 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 364 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 330 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 230 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 479 of file qv4compilerscanfunctions.cpp.
References _allowFuncDecls.
|
overrideprotected |
Definition at line 294 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 486 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 112 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 417 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 406 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 562 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 621 of file qv4compilerscanfunctions.cpp.
References _cg.
|
protected |
Definition at line 155 of file qv4compilerscanfunctions_p.h.
Referenced by ScanFunctions(), and visit().
|
protected |
Definition at line 150 of file qv4compilerscanfunctions_p.h.
Referenced by ScanFunctions(), calcEscapingVariables(), checkName(), enterEnvironment(), enterFunction(), throwRecursionDepthError(), visit(), visit(), visit(), and visit().
|
protected |
Definition at line 152 of file qv4compilerscanfunctions_p.h.
Definition at line 153 of file qv4compilerscanfunctions_p.h.
|
protected |
Definition at line 151 of file qv4compilerscanfunctions_p.h.
|
protected |
Definition at line 156 of file qv4compilerscanfunctions_p.h.