feat(lsp): quick fixes for the textflag include and the argument area
Test / test (push) Successful in 2m56s
Test / test (push) Successful in 2m56s
Assisted-by: GLM 5.3 Flash
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user