Files
swift-mirror/lib/Parse/ParseExpr.cpp
Rintaro Ishizaki 1e8c644a4a [CodeCompletion] Don't discard parsed expression in incomplete ternary
If we are code-completion, we need to keep the parsed expression in the
AST. Don't discard the parsed expression if the middle expression in a
ternary expression has code-completion token. This improves the
completions for:

    let _: MyEnum = condition ? .<HERE>
    let _: MyEnum = condition ? .<HERE> :

rdar://problem/54132682
2020-01-21 15:29:55 -08:00

133 KiB