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

Function hasTypeAnnotation

internal/checker/nodebuilderimpl.go:2156–2158  ·  view source on GitHub ↗
(declaration *ast.Declaration)

Source from the content-addressed store, hash-verified

2154}
2155
2156func hasTypeAnnotation(declaration *ast.Declaration) bool {
2157 return declaration != nil && declaration.Type() != nil
2158}
2159
2160/**
2161* Unlike `typeToTypeNodeHelper`, this handles setting up the `AllowUniqueESSymbolType` flag

Callers

nothing calls this directly

Calls 1

TypeMethod · 0.45

Tested by

no test coverage detected