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

Function IsModuleIdentifier

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

Source from the content-addressed store, hash-verified

1338}
1339
1340func IsModuleIdentifier(node *Node) bool {
1341 return IsIdentifier(node) && node.Text() == "module"
1342}
1343
1344func IsThisIdentifier(node *Node) bool {
1345 return IsIdentifier(node) && node.Text() == "this"

Callers 3

Calls 2

IsIdentifierFunction · 0.85
TextMethod · 0.65

Tested by

no test coverage detected