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

Function IsBindableStaticAccessExpression

internal/ast/utilities.go:1352–1356  ·  view source on GitHub ↗
(node *Node, excludeThisKeyword bool)

Source from the content-addressed store, hash-verified

1350}
1351
1352func IsBindableStaticAccessExpression(node *Node, excludeThisKeyword bool) bool {
1353 return IsPropertyAccessExpression(node) &&
1354 (!excludeThisKeyword && node.Expression().Kind == KindThisKeyword || IsIdentifier(node.Name()) && IsBindableStaticNameExpression(node.Expression(), true /*excludeThisKeyword*/)) ||
1355 IsBindableStaticElementAccessExpression(node, excludeThisKeyword)
1356}
1357
1358func IsBindableStaticElementAccessExpression(node *Node, excludeThisKeyword bool) bool {
1359 return IsLiteralLikeElementAccess(node) &&

Callers 4

isClassInstancePropertyFunction · 0.92
IsPrototypeAccessFunction · 0.85

Calls 6

IsIdentifierFunction · 0.85
ExpressionMethod · 0.80
NameMethod · 0.65

Tested by

no test coverage detected