semantic: Add function for doing lookups via the this construct