mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[CodeComplete] More efficient skipping for completions in if/switch exprs
Skip type-checking multi-statement branches if the completion is in a single-expression branch, and skip type-checking the expression as a whole if the completion is in a multi-statement branch.
This commit is contained in:
@@ -310,6 +310,10 @@ public:
|
||||
/// SingleValueStmtExpr.
|
||||
bool isForSingleValueStmtConjunction() const;
|
||||
|
||||
/// Whether this locator identifies a conjunction for the branches of a
|
||||
/// SingleValueStmtExpr, or a conjunction for one of the BraceStmts itself.
|
||||
bool isForSingleValueStmtConjunctionOrBrace() const;
|
||||
|
||||
/// Whether this locator identifies a conversion for a SingleValueStmtExpr
|
||||
/// branch, and if so, the kind of branch.
|
||||
llvm::Optional<SingleValueStmtBranchKind> isForSingleValueStmtBranch() const;
|
||||
|
||||
Reference in New Issue
Block a user