QmlJS: Refactor ObjectValue members.

* property -> lookupMember
* setProperty -> setMember
* removeProperty -> removeMember

Change-Id: I638479ee2b90b684283e714630bdcab237f6b3f2
Done-with: Fawzi Mohamed
Reviewed-on: http://codereview.qt.nokia.com/77
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
This commit is contained in:
Christian Kamm
2011-05-24 11:50:10 +02:00
committed by Fawzi Mohamed
parent 4bd6bb4d55
commit d67b7d17dc
10 changed files with 112 additions and 112 deletions

View File

@@ -178,7 +178,7 @@ bool Evaluate::visit(AST::UiQualifiedId *ast)
if (! name)
break;
const Value *value = base->property(name->asString(), _context);
const Value *value = base->lookupMember(name->asString(), _context);
if (! it->next)
_result = value;
else
@@ -312,7 +312,7 @@ bool Evaluate::visit(AST::FieldMemberExpression *ast)
if (const Interpreter::Value *base = _engine->convertToObject(reference(ast->base))) {
if (const Interpreter::ObjectValue *obj = base->asObjectValue()) {
_result = obj->property(ast->name->asString(), _context);
_result = obj->lookupMember(ast->name->asString(), _context);
}
}