MCPcopy Index your code
hub / github.com/microsoft/typescript-go / IsImportMeta

Function IsImportMeta

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

Source from the content-addressed store, hash-verified

1254}
1255
1256func IsImportMeta(node *Node) bool {
1257 if node.Kind == KindMetaProperty {
1258 return node.AsMetaProperty().KeywordToken == KindImportKeyword && node.AsMetaProperty().Name().Text() == "meta"
1259 }
1260 return false
1261}
1262
1263func WalkUpBindingElementsAndPatterns(binding *Node) *Node {
1264 node := binding.Parent

Callers 4

shouldGetTypeFunction · 0.92
getNodeForQuickInfoFunction · 0.92

Calls 3

AsMetaPropertyMethod · 0.80
TextMethod · 0.65
NameMethod · 0.65

Tested by

no test coverage detected