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

Function isElementAccessEntityNameExpression

internal/ast/utilities.go:1609–1611  ·  view source on GitHub ↗
(node *Node, allowJS bool)

Source from the content-addressed store, hash-verified

1607}
1608
1609func isElementAccessEntityNameExpression(node *Node, allowJS bool) bool {
1610 return IsElementAccessExpression(node) && IsStringOrNumericLiteralLike(node.AsElementAccessExpression().ArgumentExpression) && IsEntityNameExpressionEx(node.Expression(), allowJS)
1611}
1612
1613func IsDottedName(node *Node) bool {
1614 switch node.Kind {

Callers 1

IsEntityNameExpressionExFunction · 0.85

Calls 5

IsEntityNameExpressionExFunction · 0.85
ExpressionMethod · 0.80

Tested by

no test coverage detected