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

Function IsTrivia

internal/ast/utilities.go:3745–3747  ·  view source on GitHub ↗
(token Kind)

Source from the content-addressed store, hash-verified

3743}
3744
3745func IsTrivia(token Kind) bool {
3746 return KindFirstTriviaToken <= token && token <= KindLastTriviaToken
3747}
3748
3749func HasDecorators(node *Node) bool {
3750 return HasSyntacticModifier(node, ModifierFlagsDecorator)

Callers 4

advanceMethod · 0.92
readTokenInfoMethod · 0.92
isOnTokenMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected