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

Function IsModuleOrEnumDeclaration

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

Source from the content-addressed store, hash-verified

1309}
1310
1311func IsModuleOrEnumDeclaration(node *Node) bool {
1312 return node.Kind == KindModuleDeclaration || node.Kind == KindEnumDeclaration
1313}
1314
1315func IsLiteralImportTypeNode(node *Node) bool {
1316 return IsImportTypeNode(node) && IsLiteralTypeNode(node.AsImportTypeNode().Argument) && IsStringLiteral(node.AsImportTypeNode().Argument.AsLiteralTypeNode().Literal)

Callers 2

isImplementationFunction · 0.92
ResolveMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected