forked from qt-creator/qt-creator
		
	Qmljs: added scope for blocks in UiScriptBindings and UiPublicMember
correctly insert the scope for code blocks in UiScriptBindings and UiPublicMember, and improve find usages for types (correctly detecting variables in the same scope) Change-Id: Iaaf1a59f041f3831fbe04243b220fb85fde76479 Reviewed-on: http://codereview.qt.nokia.com/335 Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
This commit is contained in:
		| @@ -63,7 +63,7 @@ public: | ||||
|     bool usesQmlPrototype(Interpreter::ObjectValue *prototype, | ||||
|                           const Interpreter::Context *context) const; | ||||
|  | ||||
|     Interpreter::ObjectValue *findFunctionScope(AST::FunctionExpression *node) const; | ||||
|     Interpreter::ObjectValue *findAttachedJSScope(AST::Node *node) const; | ||||
|     bool isGroupedPropertyBinding(AST::Node *node) const; | ||||
|  | ||||
|     static QString toString(AST::UiQualifiedId *qualifiedId, QChar delimiter = QChar('.')); | ||||
| @@ -102,7 +102,7 @@ private: | ||||
|  | ||||
|     QHash<AST::Node *, Interpreter::ObjectValue *> _qmlObjects; | ||||
|     QSet<AST::Node *> _groupedPropertyBindings; | ||||
|     QHash<AST::FunctionExpression *, Interpreter::ObjectValue *> _functionScopes; | ||||
|     QHash<AST::Node *, Interpreter::ObjectValue *> _attachedJSScopes; | ||||
|     QStringList _includedScripts; | ||||
|  | ||||
|     QList<Interpreter::ImportInfo> _imports; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user