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

Function IsPushOrUnshiftIdentifier

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

Source from the content-addressed store, hash-verified

308}
309
310func IsPushOrUnshiftIdentifier(node *Node) bool {
311 text := node.Text()
312 return text == "push" || text == "unshift"
313}
314
315func IsBooleanLiteral(node *Node) bool {
316 return node.Kind == KindTrueKeyword || node.Kind == KindFalseKeyword

Callers 2

Calls 1

TextMethod · 0.65

Tested by

no test coverage detected