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

Method AssignCommentRange

internal/printer/emitcontext.go:583–585  ·  view source on GitHub ↗

Sets the range to use for a node when emitting comments.

(to *ast.Node, from *ast.Node)

Source from the content-addressed store, hash-verified

581
582// Sets the range to use for a node when emitting comments.
583func (c *EmitContext) AssignCommentRange(to *ast.Node, from *ast.Node) {
584 c.SetCommentRange(to, c.CommentRange(from))
585}
586
587// Gets the range to use for a node when emitting source maps.
588func (c *EmitContext) SourceMapRange(node *ast.Node) core.TextRange {

Callers 6

setCommentRangeMethod · 0.80
preserveJsDocMethod · 0.80
visitClassDeclarationMethod · 0.80
finishClassElementMethod · 0.80

Calls 2

SetCommentRangeMethod · 0.95
CommentRangeMethod · 0.95

Tested by

no test coverage detected