Assign type to completions guessed from calls