We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3aa0b7 commit eb7356dCopy full SHA for eb7356d
build/utils.go
@@ -83,5 +83,9 @@ func GetTypes(t Expr) []string {
83
// IsMultiLine returns whether an Expr is multiline or not.
84
func IsMultiLine(param Expr) bool {
85
start, end := param.Span()
86
+ if end.Line == 0 && end.Byte == 0 && end.LineRune == 0 {
87
+ // If the end position is unknown, we assume it's single line (for backwards compatibility).
88
+ return false
89
+ }
90
return start.Line != end.Line
91
}
0 commit comments