Skip to content

Commit 1658cd9

Browse files
committed
Use non deprecated case items
1 parent 60856ce commit 1658cd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SourceKitLSP/Swift/VariableTypeInfo.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ fileprivate extension TokenSyntax {
2222
var node = Syntax(self)
2323
LOOP: while let parent = node.parent {
2424
switch parent.kind {
25-
case .caseItem, .closureParam:
25+
case .switchCaseItem, .closureParameter:
2626
// case items (inside a switch) and closure parameters can’t have type
2727
// annotations.
2828
return false
29-
case .codeBlockItem, .memberDeclListItem:
29+
case .codeBlockItem, .memberBlockItem:
3030
// Performance optimization. If we walked the parents up to code block item,
3131
// we can’t enter a case item or closure param anymore. No need walking
3232
// the tree any further.

0 commit comments

Comments
 (0)