: _doc(doc),
_currentObjectValue(0),
_idEnvironment(0),
- _functionEnvironment(0),
_rootObjectValue(0)
{
if (_doc)
return _idEnvironment;
}
-Interpreter::ObjectValue *Bind::functionEnvironment() const
-{
- return _functionEnvironment;
-}
-
Interpreter::ObjectValue *Bind::rootObjectValue() const
{
return _rootObjectValue;
bool Bind::visit(AST::UiProgram *)
{
_idEnvironment = _engine.newObject(/*prototype =*/ 0);
- _functionEnvironment = _engine.newObject(/*prototype =*/ 0);
return true;
}
Interpreter::ObjectValue *currentObjectValue() const;
Interpreter::ObjectValue *idEnvironment() const;
- Interpreter::ObjectValue *functionEnvironment() const;
Interpreter::ObjectValue *rootObjectValue() const;
Interpreter::ObjectValue *findQmlObject(AST::Node *node) const;
Interpreter::ObjectValue *_currentObjectValue;
Interpreter::ObjectValue *_idEnvironment;
- Interpreter::ObjectValue *_functionEnvironment;
Interpreter::ObjectValue *_rootObjectValue;
QHash<AST::Node *, Interpreter::ObjectValue *> _qmlObjects;
qDeleteAll(instantiatingComponents);
instantiatingComponents.clear();
rootObject = 0;
- functionScopes.clear();
ids = 0;
}
if (rootObject)
list->append(rootObject);
- list->append(functionScopes);
if (ids)
list->append(ids);
}
if (qmlComponentScope.rootObject && ! qmlScopeObjects.contains(qmlComponentScope.rootObject))
_all += qmlComponentScope.rootObject;
_all += qmlScopeObjects;
- _all += qmlComponentScope.functionScopes;
if (qmlComponentScope.ids)
_all += qmlComponentScope.ids;
if (qmlTypes)
QList<QmlComponentChain *> instantiatingComponents;
const ObjectValue *rootObject;
- QList<const ObjectValue *> functionScopes;
const ObjectValue *ids;
void add(QList<const ObjectValue *> *list) const;
if (bind->rootObjectValue())
target->rootObject = bind->rootObjectValue();
- target->functionScopes += bind->functionEnvironment();
target->ids = bind->idEnvironment();
}