![]() |
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 | scanWithoutEscapingVariables (QQmlJS::AST::Node *node) |
| void | calcEscapingVariablesForNewContexts () |
| void | handleTopLevelFunctionFormals (QQmlJS::AST::FunctionExpression *node) |
| void | enterGlobalEnvironment (ContextType compilationMode) |
| void | enterEnvironment (QQmlJS::AST::Node *node, ContextType compilationMode, const QString &namename) |
| 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 45 of file qv4compilerscanfunctions_p.h.
|
strongprotected |
| Enumerator | |
|---|---|
| None | |
| Inner | |
| Outer | |
Definition at line 82 of file qv4compilerscanfunctions_p.h.
| ScanFunctions::ScanFunctions | ( | Codegen * | cg, |
| const QString & | sourceCode, | ||
| ContextType | defaultProgramType ) |
Definition at line 29 of file qv4compilerscanfunctions.cpp.
References ScanFunctions(), _allowFuncDecls, and _cg.
Referenced by ScanFunctions().
| void ScanFunctions::calcEscapingVariablesForNewContexts | ( | ) |
Definition at line 800 of file qv4compilerscanfunctions.cpp.
References _cg.
|
protected |
Definition at line 62 of file qv4compilerscanfunctions.cpp.
|
protected |
Definition at line 87 of file qv4compilerscanfunctions.cpp.
References _cg.
|
overrideprotected |
Definition at line 559 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 570 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 598 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 394 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 375 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 125 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 539 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 518 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 491 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 456 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 479 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 112 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 621 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
| void ScanFunctions::enterEnvironment | ( | QQmlJS::AST::Node * | node, |
| ContextType | compilationMode, | ||
| const QString & | name ) |
Definition at line 44 of file qv4compilerscanfunctions.cpp.
References _cg.
|
protected |
Definition at line 448 of file qv4compilerscanfunctions.cpp.
References _cg.
|
protected |
| void ScanFunctions::enterGlobalEnvironment | ( | ContextType | compilationMode | ) |
Definition at line 39 of file qv4compilerscanfunctions.cpp.
|
inline |
Definition at line 72 of file qv4compilerscanfunctions_p.h.
|
inline |
Definition at line 62 of file qv4compilerscanfunctions_p.h.
| void ScanFunctions::leaveEnvironment | ( | ) |
Definition at line 56 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 790 of file qv4compilerscanfunctions.cpp.
References _cg.
|
inline |
Definition at line 53 of file qv4compilerscanfunctions_p.h.
|
overrideprotectedvirtual |
Implements QQmlJS::AST::BaseVisitor.
Definition at line 1020 of file qv4compilerscanfunctions.cpp.
References _cg.
|
overrideprotected |
Definition at line 440 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 551 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 272 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 564 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 575 of file qv4compilerscanfunctions.cpp.
References _cg.
|
overrideprotected |
Definition at line 380 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 364 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 496 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 117 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 130 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 333 of file qv4compilerscanfunctions.cpp.
References _allowFuncDecls, _cg, and leaveEnvironment().
|
overrideprotected |
Definition at line 414 of file qv4compilerscanfunctions.cpp.
References _cg.
|
overrideprotected |
Definition at line 523 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 505 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 486 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 357 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 323 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 223 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 461 of file qv4compilerscanfunctions.cpp.
References _allowFuncDecls.
|
overrideprotected |
Definition at line 287 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 468 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 105 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 399 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 544 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 603 of file qv4compilerscanfunctions.cpp.
References _cg.
|
protected |
Definition at line 163 of file qv4compilerscanfunctions_p.h.
Referenced by ScanFunctions(), visit(), and visit().
|
protected |
Definition at line 158 of file qv4compilerscanfunctions_p.h.
Referenced by ScanFunctions(), calcEscapingVariablesForNewContexts(), checkName(), enterEnvironment(), enterFunction(), operator()(), throwRecursionDepthError(), visit(), visit(), visit(), and visit().
|
protected |
Definition at line 160 of file qv4compilerscanfunctions_p.h.
Definition at line 161 of file qv4compilerscanfunctions_p.h.
|
protected |
Definition at line 159 of file qv4compilerscanfunctions_p.h.
|
protected |
Definition at line 164 of file qv4compilerscanfunctions_p.h.