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

Function IsJsonSourceFile

internal/ast/utilities.go:1876–1878  ·  view source on GitHub ↗
(file *SourceFile)

Source from the content-addressed store, hash-verified

1874}
1875
1876func IsJsonSourceFile(file *SourceFile) bool {
1877 return file.ScriptKind == core.ScriptKindJSON
1878}
1879
1880func IsInJsonFile(node *Node) bool {
1881 return node.Flags&NodeFlagsJsonFile != 0

Calls

no outgoing calls

Tested by

no test coverage detected