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

Method skipToEndOf

internal/format/scanner.go:337–345  ·  view source on GitHub ↗
(r *core.TextRange)

Source from the content-addressed store, hash-verified

335}
336
337func (s *formattingScanner) skipToEndOf(r *core.TextRange) {
338 s.s.ResetTokenState(r.End())
339 s.savedPos = s.s.TokenFullStart()
340 s.lastScanAction = actionScan
341 s.hasLastTokenInfo = false
342 s.wasNewLine = false
343 s.leadingTrivia = nil
344 s.trailingTrivia = nil
345}
346
347func (s *formattingScanner) skipToStartOf(r *core.TextRange) {
348 s.s.ResetTokenState(r.Pos())

Callers 2

processChildNodeMethod · 0.80
processChildNodesMethod · 0.80

Calls 3

ResetTokenStateMethod · 0.80
TokenFullStartMethod · 0.80
EndMethod · 0.65

Tested by

no test coverage detected