Skip to content

Commit 97df58e

Browse files
committed
Remove unused (unreachable?) code path
1 parent f280b6b commit 97df58e

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/compiler/checker.ts

-14
Original file line numberDiff line numberDiff line change
@@ -17949,17 +17949,6 @@ namespace ts {
1794917949
}
1795017950
}
1795117951

17952-
/**
17953-
* Given a JSX attribute, returns the symbol for the corresponds property
17954-
* of the element attributes type. Will return unknownSymbol for attributes
17955-
* that have no matching element attributes type property.
17956-
*/
17957-
function getJsxAttributePropertySymbol(attrib: JsxAttribute): Symbol {
17958-
const attributesType = getAttributesTypeFromJsxOpeningLikeElement(attrib.parent.parent as JsxOpeningElement);
17959-
const prop = getPropertyOfType(attributesType, attrib.name.escapedText);
17960-
return prop || unknownSymbol;
17961-
}
17962-
1796317952
function getJsxElementClassTypeAt(location: Node): Type | undefined {
1796417953
const type = getJsxType(JsxNames.ElementClass, location);
1796517954
if (type === errorType) return undefined;
@@ -27568,9 +27557,6 @@ namespace ts {
2756827557
const meaning = entityName.parent.kind === SyntaxKind.TypeReference ? SymbolFlags.Type : SymbolFlags.Namespace;
2756927558
return resolveEntityName(<EntityName>entityName, meaning, /*ignoreErrors*/ false, /*dontResolveAlias*/ true);
2757027559
}
27571-
else if (entityName.parent.kind === SyntaxKind.JsxAttribute) {
27572-
return getJsxAttributePropertySymbol(<JsxAttribute>entityName.parent);
27573-
}
2757427560

2757527561
if (entityName.parent.kind === SyntaxKind.TypePredicate) {
2757627562
return resolveEntityName(<Identifier>entityName, /*meaning*/ SymbolFlags.FunctionScopedVariable);

0 commit comments

Comments
 (0)