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

Function isNodeArrayMultiLine

internal/ls/folding.go:563–568  ·  view source on GitHub ↗
(list []*ast.Node, sourceFile *ast.SourceFile)

Source from the content-addressed store, hash-verified

561}
562
563func isNodeArrayMultiLine(list []*ast.Node, sourceFile *ast.SourceFile) bool {
564 if len(list) == 0 {
565 return false
566 }
567 return !printer.PositionsAreOnSameLine(list[0].Pos(), list[len(list)-1].End(), sourceFile)
568}

Callers 1

tryGetFunctionOpenTokenFunction · 0.85

Calls 4

PositionsAreOnSameLineFunction · 0.92
lenFunction · 0.85
PosMethod · 0.65
EndMethod · 0.65

Tested by

no test coverage detected