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

Function shouldRescanJsxAttributeValue

internal/format/scanner.go:164–166  ·  view source on GitHub ↗
(node *ast.Node)

Source from the content-addressed store, hash-verified

162}
163
164func shouldRescanJsxAttributeValue(node *ast.Node) bool {
165 return node.Parent != nil && ast.IsJsxAttribute(node.Parent) && node.Parent.Initializer() == node
166}
167
168func startsWithSlashToken(t ast.Kind) bool {
169 return t == ast.KindSlashToken || t == ast.KindSlashEqualsToken

Callers 1

readTokenInfoMethod · 0.85

Calls 2

IsJsxAttributeFunction · 0.92
InitializerMethod · 0.80

Tested by

no test coverage detected