Analyze scopes to assign methods and properties