diff options
| author | Christian Kamm <[email protected]> | 2011-10-10 12:53:28 +0200 |
|---|---|---|
| committer | Christian Kamm <[email protected]> | 2011-10-18 13:16:18 +0200 |
| commit | 89ff3cebe6d9ca8385d8d9300cfaa47cf07adb42 (patch) | |
| tree | 690c6666c71a056a89bd35d5b59072e3ece7e36e /src/libs/qmljs/qmljsbind.cpp | |
| parent | 4cb8ec6a3271560753df4ebd679c027d9347d140 (diff) | |
QmlJS: Introduce UnknownValue.
To distinguish known-to-be-undefined from a genuinely unknown value.
Change-Id: I606b4ea4d726f94553400b8950d3c0a4e76564a8
Reviewed-by: Fawzi Mohamed <[email protected]>
Diffstat (limited to 'src/libs/qmljs/qmljsbind.cpp')
| -rw-r--r-- | src/libs/qmljs/qmljsbind.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/qmljs/qmljsbind.cpp b/src/libs/qmljs/qmljsbind.cpp index 99431b593bd..abc219e791a 100644 --- a/src/libs/qmljs/qmljsbind.cpp +++ b/src/libs/qmljs/qmljsbind.cpp @@ -325,7 +325,7 @@ bool Bind::visit(FunctionExpression *ast) // 1. Function formal arguments for (FormalParameterList *it = ast->formals; it; it = it->next) { if (!it->name.isEmpty()) - functionScope->setMember(it->name.toString(), _valueOwner.undefinedValue()); + functionScope->setMember(it->name.toString(), _valueOwner.unknownValue()); } // 2. Functions defined inside the function body |
