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

Function IsVariableLike

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

Source from the content-addressed store, hash-verified

3007}
3008
3009func IsVariableLike(node *Node) bool {
3010 switch node.Kind {
3011 case KindBindingElement, KindEnumMember, KindParameter, KindPropertyAssignment, KindPropertyDeclaration,
3012 KindPropertySignature, KindShorthandPropertyAssignment, KindVariableDeclaration:
3013 return true
3014 }
3015 return false
3016}
3017
3018func HasInitializer(node *Node) bool {
3019 switch node.Kind {

Callers 3

getCompletionDataMethod · 0.92
isImplementationFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected