QmlJS: Enhance check pass to do lookup... and disable it.

It still generates too many false-negatives for now. Will be enabled
once the remaining lookup failures have been fixed.

Reviewed-by: Erik Verbruggen
This commit is contained in:
Christian Kamm
2010-11-24 15:12:11 +01:00
parent 05831a8ea5
commit 124358d258
2 changed files with 64 additions and 0 deletions

View File

@@ -56,6 +56,10 @@ protected:
virtual bool visit(AST::UiObjectBinding *ast);
virtual bool visit(AST::UiScriptBinding *ast);
virtual bool visit(AST::UiArrayBinding *ast);
virtual bool visit(AST::IdentifierExpression *ast);
virtual bool visit(AST::FieldMemberExpression *ast);
virtual bool visit(AST::FunctionDeclaration *ast);
virtual bool visit(AST::FunctionExpression *ast);
private:
void visitQmlObject(AST::Node *ast, AST::UiQualifiedId *typeId,
@@ -74,6 +78,8 @@ private:
QList<DiagnosticMessage> _messages;
bool _ignoreTypeErrors;
const Interpreter::Value *_lastValue;
};
QMLJS_EXPORT QColor toQColor(const QString &qmlColorString);