fixed bug with detecting undeclared properties

method calls were being falsely detected as undeclared properties