feat(lsp): quick fixes for the textflag include and the argument area
Test / test (push) Successful in 2m56s

Assisted-by: GLM 5.3 Flash
This commit is contained in:
2026-09-23 20:23:35 +02:00
parent 4be16dcdf5
commit 8eed54b3da
7 changed files with 208 additions and 3 deletions
+9
View File
@@ -11,6 +11,15 @@ import (
"strings"
)
// ExpectedArgSize computes the argument-area size (parameters plus results,
// laid out with Go's alignment rules on a 64-bit target) implied by the
// `// func …` signature in a doc comment. It returns ok=false when there is
// no parseable signature or it uses a type whose size cannot be determined
// (a named type), so the caller can skip the fix rather than guess.
func ExpectedArgSize(doc string) (int64, bool) {
return abiExpectedArgSize(doc)
}
// abiExpectedArgSize computes the argument-area size (parameters plus results,
// laid out with Go's alignment rules on a 64-bit target) from the `// func …`
// signature in a TEXT function's doc comment. It returns ok=false when there