![]() |
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 45 of file qv4compilerscanfunctions_p.h.
|
strongprotected |
| Enumerator | |
|---|---|
| None | |
| Inner | |
| Outer | |
Definition at line 74 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().
|
protected |
Definition at line 771 of file qv4compilerscanfunctions.cpp.
References _cg, Break, and Continue.
Referenced by operator()().
|
protected |
Definition at line 70 of file qv4compilerscanfunctions.cpp.
|
protected |
Definition at line 95 of file qv4compilerscanfunctions.cpp.
References _cg.
|
overrideprotected |
Definition at line 578 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 589 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 617 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 402 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 383 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 133 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 558 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 537 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 510 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 475 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 498 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 120 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
|
overrideprotected |
Definition at line 640 of file qv4compilerscanfunctions.cpp.
References leaveEnvironment().
| void ScanFunctions::enterEnvironment | ( | QQmlJS::AST::Node * | node, |
| ContextType | compilationMode, | ||
| const QString & | name ) |
Definition at line 52 of file qv4compilerscanfunctions.cpp.
References _cg.
|
protected |
Definition at line 467 of file qv4compilerscanfunctions.cpp.
References _cg.
|
protected |
| void ScanFunctions::enterGlobalEnvironment | ( | ContextType | compilationMode | ) |
Definition at line 47 of file qv4compilerscanfunctions.cpp.
|
inline |
Definition at line 64 of file qv4compilerscanfunctions_p.h.
|
inline |
Definition at line 54 of file qv4compilerscanfunctions_p.h.
| void ScanFunctions::leaveEnvironment | ( | ) |
Definition at line 64 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 39 of file qv4compilerscanfunctions.cpp.
References calcEscapingVariables().
|
overrideprotectedvirtual |
Implements QQmlJS::AST::BaseVisitor.
Definition at line 950 of file qv4compilerscanfunctions.cpp.
References _cg.
|
overrideprotected |
Definition at line 459 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 570 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 280 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 583 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 594 of file qv4compilerscanfunctions.cpp.
References _cg.
|
overrideprotected |
Definition at line 388 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 372 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 515 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 125 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 138 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 341 of file qv4compilerscanfunctions.cpp.
References _allowFuncDecls, _cg, and leaveEnvironment().
|
overrideprotected |
Definition at line 433 of file qv4compilerscanfunctions.cpp.
References _cg.
|
overrideprotected |
Definition at line 542 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 524 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 505 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 365 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 331 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 231 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 480 of file qv4compilerscanfunctions.cpp.
References _allowFuncDecls.
|
overrideprotected |
Definition at line 295 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 487 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 113 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 418 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 407 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 563 of file qv4compilerscanfunctions.cpp.
|
overrideprotected |
Definition at line 622 of file qv4compilerscanfunctions.cpp.
References _cg.
|
protected |
Definition at line 157 of file qv4compilerscanfunctions_p.h.
Referenced by ScanFunctions(), visit(), and visit().
|
protected |
Definition at line 152 of file qv4compilerscanfunctions_p.h.
Referenced by ScanFunctions(), calcEscapingVariables(), checkName(), enterEnvironment(), enterFunction(), throwRecursionDepthError(), visit(), visit(), visit(), and visit().
|
protected |
Definition at line 154 of file qv4compilerscanfunctions_p.h.
Definition at line 155 of file qv4compilerscanfunctions_p.h.
|
protected |
Definition at line 153 of file qv4compilerscanfunctions_p.h.
|
protected |
Definition at line 158 of file qv4compilerscanfunctions_p.h.