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

Method NextNodeAllOnSameLine

internal/format/context.go:95–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93}
94
95func (this *FormattingContext) NextNodeAllOnSameLine() bool {
96 if this.nextNodeAllOnSameLine == core.TSUnknown {
97 this.nextNodeAllOnSameLine = this.nodeIsOnOneLine(this.nextTokenParent)
98 }
99 return this.nextNodeAllOnSameLine == core.TSTrue
100}
101
102func (this *FormattingContext) TokensAreOnSameLine() bool {
103 if this.tokensAreOnSameLine == core.TSUnknown {

Callers 1

Calls 1

nodeIsOnOneLineMethod · 0.95

Tested by

no test coverage detected