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

Function GetNonAugmentationDeclaration

internal/ast/utilities.go:3560–3564  ·  view source on GitHub ↗
(symbol *Symbol)

Source from the content-addressed store, hash-verified

3558}
3559
3560func GetNonAugmentationDeclaration(symbol *Symbol) *Node {
3561 return core.Find(symbol.Declarations, func(d *Node) bool {
3562 return !IsExternalModuleAugmentation(d) && !IsGlobalScopeAugmentation(d)
3563 })
3564}
3565
3566func IsTypeDeclaration(node *Node) bool {
3567 switch node.Kind {

Calls 3

FindFunction · 0.92

Tested by

no test coverage detected