Don't show 'invalid property name' errors if we can't resolve the type.

The idea is that it may be a plugin-provided type. We don't want user
code to be riddled with error markers in that case.

Reviewed-by: Roberto Raggi
This commit is contained in:
Christian Kamm
2010-02-16 13:28:43 +01:00
parent bb20672a63
commit 45efd5b5b1
3 changed files with 16 additions and 8 deletions

View File

@@ -53,7 +53,8 @@ protected:
virtual bool visit(AST::UiArrayBinding *ast);
private:
void visitQmlObject(AST::Node *ast, AST::UiObjectInitializer *initializer);
void visitQmlObject(AST::Node *ast, AST::UiQualifiedId *typeId,
AST::UiObjectInitializer *initializer);
void checkScopeObjectMember(const AST::UiQualifiedId *id);
void warning(const AST::SourceLocation &loc, const QString &message);