MCPcopy Create free account
hub / github.com/microsoft/typescript-go / IsLiteralLikeElementAccess

Function IsLiteralLikeElementAccess

internal/ast/utilities.go:1374–1376  ·  view source on GitHub ↗
(node *Node)

Source from the content-addressed store, hash-verified

1372}
1373
1374func IsLiteralLikeElementAccess(node *Node) bool {
1375 return IsElementAccessExpression(node) && IsStringOrNumericLiteralLike(node.AsElementAccessExpression().ArgumentExpression)
1376}
1377
1378func IsBindableStaticNameExpression(node *Node, excludeThisKeyword bool) bool {
1379 return IsEntityNameExpression(node) || IsBindableStaticAccessExpression(node, excludeThisKeyword)

Calls 3

Tested by

no test coverage detected