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

Function IsAssertionExpression

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

Source from the content-addressed store, hash-verified

389}
390
391func IsAssertionExpression(node *Node) bool {
392 kind := node.Kind
393 return kind == KindTypeAssertionExpression || kind == KindAsExpression
394}
395
396func isLeftHandSideExpressionKind(kind Kind) bool {
397 switch kind {

Callers 12

isHintableDeclarationFunction · 0.92
isConstAssertionFunction · 0.92
getCompletionDataMethod · 0.92
isTypeAssertionFunction · 0.92
isParentForIDDIagnosticFunction · 0.92
visitMethod · 0.92
IsInConstContextFunction · 0.92
isContextuallyTypedFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected