Handle Lable

This commit is contained in:
Sheetal Nandi
2019-06-06 11:59:18 -07:00
parent 768c9ed8d7
commit a120c59015
6 changed files with 27 additions and 25 deletions

View File

@@ -55,7 +55,9 @@ namespace ts.FindAllReferences {
if (isJsxOpeningElement(node.parent) || isJsxClosingElement(node.parent)) {
return node.parent.parent;
}
else if (isJsxSelfClosingElement(node.parent)) {
else if (isJsxSelfClosingElement(node.parent) ||
isLabeledStatement(node.parent) ||
isBreakOrContinueStatement(node.parent)) {
return node.parent;
}