fix for functions assigned to property expressions that the name is the
identifier of the property (this will also fix the tooltip in the code
completion that depends on the right location)