Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
595
func
(n *Node) Statements() []*Node {
596
list := n.StatementList()
597
if
list != nil {
598
return
list.Nodes
599
}
600
return
nil
601
}
602
603
func
(n *Node) CanHaveStatements() bool {
604
switch
n.Kind {
Callers
15
collectCallSites
Function · 0.80
getStatementsOfSourceFileLike
Function · 0.80
getNodesToSearchForModifier
Function · 0.80
VisitIterationBody
Method · 0.80
TestGeneratedNameForNamespace3
Function · 0.80
TestGeneratedNameForNamespace4
Function · 0.80
checkGrammarForUseStrictSimpleParameterList
Method · 0.80
checkSourceElementUnreachable
Method · 0.80
checkConstructorDeclaration
Method · 0.80
checkBlock
Method · 0.80
checkSwitchStatement
Method · 0.80
checkModuleDeclaration
Method · 0.80
Calls
1
StatementList
Method · 0.95
Tested by
2
TestGeneratedNameForNamespace3
Function · 0.64
TestGeneratedNameForNamespace4
Function · 0.64