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

Function IsStringOrNumericLiteralLike

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

Source from the content-addressed store, hash-verified

329}
330
331func IsStringOrNumericLiteralLike(node *Node) bool {
332 return IsStringLiteralLike(node) || IsNumericLiteral(node)
333}
334
335func IsSignedNumericLiteral(node *Node) bool {
336 if node.Kind == KindPrefixUnaryExpression {

Calls 2

IsStringLiteralLikeFunction · 0.85
IsNumericLiteralFunction · 0.85

Tested by

no test coverage detected