Commits

Ben Langmuir committed 8ccaa86806d
[CodeCompletion] Complete variables bound by catch Make sure we build the CatchStmt and DoCatchStmt AST nodes when code-completing inside the body of a catch so that we can complete the bindings from the catch. It's often a good idea to early-exit once we see a code completion token, but not when we skip building an AST node that provides variable bindings. In code completion, we don't have Scope-based lookup, and rely on having reachable AST nodes for patterns so that we can dig the out the bindings we need. Also extend the pattern checking to handle "IsPattern", since we apparently weren't handling "let x as Foo", and that affects all complex catch patterns because of an implicit "as ErrorType" or explicit "as NSError". rdar://problem/21116164 Swift SVN r29070