adding information about position where functions are defined into typed representation