We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60856ce commit 1658cd9Copy full SHA for 1658cd9
Sources/SourceKitLSP/Swift/VariableTypeInfo.swift
@@ -22,11 +22,11 @@ fileprivate extension TokenSyntax {
22
var node = Syntax(self)
23
LOOP: while let parent = node.parent {
24
switch parent.kind {
25
- case .caseItem, .closureParam:
+ case .switchCaseItem, .closureParameter:
26
// case items (inside a switch) and closure parameters can’t have type
27
// annotations.
28
return false
29
- case .codeBlockItem, .memberDeclListItem:
+ case .codeBlockItem, .memberBlockItem:
30
// Performance optimization. If we walked the parents up to code block item,
31
// we can’t enter a case item or closure param anymore. No need walking
32
// the tree any further.
0 commit comments