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

Function IsPrototypeAccess

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

Source from the content-addressed store, hash-verified

1363}
1364
1365func IsPrototypeAccess(node *Node) bool {
1366 if IsBindableStaticAccessExpression(node, false /*excludeThisKeyword*/) {
1367 if name := GetElementOrPropertyAccessName(node); name != nil {
1368 return name.Text() == "prototype"
1369 }
1370 }
1371 return false
1372}
1373
1374func IsLiteralLikeElementAccess(node *Node) bool {
1375 return IsElementAccessExpression(node) && IsStringOrNumericLiteralLike(node.AsElementAccessExpression().ArgumentExpression)

Callers 1

isClassInstancePropertyFunction · 0.92

Calls 3

TextMethod · 0.65

Tested by

no test coverage detected