Skip to content

Commit

Permalink
Continue iterating if an ExpressionTypeInfo fails to deserialize
Browse files Browse the repository at this point in the history
  • Loading branch information
fwcd committed Jun 10, 2021
1 parent 87dfafb commit 7a0058a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SourceKitLSP/Swift/ExpressionTypeInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ extension SwiftLanguageServer {
skExpressionTypeInfos.forEach { (_, skExpressionTypeInfo) -> Bool in
guard let info = ExpressionTypeInfo(skExpressionTypeInfo, in: snapshot) else {
assert(false, "ExpressionTypeInfo failed to deserialize")
return false
return true
}
expressionTypeInfos.append(info)
return true
Expand Down

0 comments on commit 7a0058a

Please sign in to comment.