diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-05-23 13:48:50 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-05-23 13:18:58 +0000 |
commit | 3e6d5d9cd1de1373f67f2ff31373a59c37f7b576 (patch) | |
tree | cbf317a1ebbf9674e5f1a79d95411a534298713c /src/qml/compiler/qv4compilerscanfunctions_p.h | |
parent | 20b376b64a11b4bda18aa1abda543586f04688e8 (diff) | |
download | qtdeclarative-3e6d5d9cd1de1373f67f2ff31373a59c37f7b576.tar.gz |
Set the name of the context as early as possible
We used to set the name later on when calling
Codegen::defineFunction(), but this is too late in some
cases, especially when using the name to determine if
this function could be a QML signal handler.
Change-Id: Ie620a65ac8f17906cd9eba338cbdd3563004375d
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4compilerscanfunctions_p.h')
-rw-r--r-- | src/qml/compiler/qv4compilerscanfunctions_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4compilerscanfunctions_p.h b/src/qml/compiler/qv4compilerscanfunctions_p.h index cb3866c596..e43feea5eb 100644 --- a/src/qml/compiler/qv4compilerscanfunctions_p.h +++ b/src/qml/compiler/qv4compilerscanfunctions_p.h @@ -85,7 +85,7 @@ public: void operator()(AST::Node *node); void enterGlobalEnvironment(ContextType compilationMode); - void enterEnvironment(AST::Node *node, ContextType compilationMode); + void enterEnvironment(AST::Node *node, ContextType compilationMode, const QString &name); void leaveEnvironment(); void enterQmlFunction(AST::FunctionDeclaration *ast) |