For instance: -- let globalVar = { func something(arg: Int) -> Int { #^HERE^# } return something(12) }() -- We want to consider this as a top-level completion, not a function body completion. rdar://problem/60838686