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

Function IsBindingPattern

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

Source from the content-addressed store, hash-verified

164}
165
166func IsBindingPattern(node *Node) bool {
167 return node.Kind == KindObjectBindingPattern || node.Kind == KindArrayBindingPattern
168}
169
170func IsForInOrOfStatement(node *Node) bool {
171 return node != nil && (node.Kind == KindForInStatement || node.Kind == KindForOfStatement)

Calls

no outgoing calls

Tested by

no test coverage detected