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

Method Statements

internal/ast/ast.go:595–601  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

593}
594
595func (n *Node) Statements() []*Node {
596 list := n.StatementList()
597 if list != nil {
598 return list.Nodes
599 }
600 return nil
601}
602
603func (n *Node) CanHaveStatements() bool {
604 switch n.Kind {

Calls 1

StatementListMethod · 0.95

Tested by 2