mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 19:59:23 -05:00
Fixed a crash when getting document highlights on out variance annotation (#56408)
This commit is contained in:
committed by
GitHub
parent
e170bc59d4
commit
d1d14e67d0
@@ -178,6 +178,7 @@ export namespace DocumentHighlights {
|
||||
case SyntaxKind.YieldKeyword:
|
||||
return highlightSpans(getYieldOccurrences(node));
|
||||
case SyntaxKind.InKeyword:
|
||||
case SyntaxKind.OutKeyword:
|
||||
return undefined;
|
||||
default:
|
||||
return isModifierKind(node.kind) && (isDeclaration(node.parent) || isVariableStatement(node.parent))
|
||||
|
||||
Reference in New Issue
Block a user