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

Function IsImportNode

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

Source from the content-addressed store, hash-verified

1863}
1864
1865func IsImportNode(node *Node) bool {
1866 return IsAnyImportSyntax(node) || NodeKindIs(node, KindJSImportDeclaration)
1867}
1868
1869// Checks if the node is a genuine import declation. In particular the re-parsed KindJSImportDeclaration
1870// is explicitly excluded because the callers of this function are typically not prepared to handle it properly.

Callers 1

IsAnyImportOrReExportFunction · 0.85

Calls 2

IsAnyImportSyntaxFunction · 0.85
NodeKindIsFunction · 0.85

Tested by

no test coverage detected