This commit is contained in:
2026-03-06 20:14:02 +00:00
parent 39eaafea25
commit 33208a2356
146 changed files with 673 additions and 1986 deletions

View File

@@ -4,10 +4,10 @@ import (
"strconv"
"strings"
"github.com/mmcloughlin/avo/buildtags"
"github.com/mmcloughlin/avo/internal/prnt"
"github.com/mmcloughlin/avo/ir"
"github.com/mmcloughlin/avo/operand"
"sources.truenas.cloud/code/avo/buildtags"
"sources.truenas.cloud/code/avo/internal/prnt"
"sources.truenas.cloud/code/avo/ir"
"sources.truenas.cloud/code/avo/operand"
)
// dot is the pesky unicode dot used in Go assembly.

View File

@@ -3,11 +3,11 @@ package printer_test
import (
"testing"
"github.com/mmcloughlin/avo/attr"
"github.com/mmcloughlin/avo/build"
"github.com/mmcloughlin/avo/buildtags"
"github.com/mmcloughlin/avo/printer"
"github.com/mmcloughlin/avo/reg"
"sources.truenas.cloud/code/avo/attr"
"sources.truenas.cloud/code/avo/build"
"sources.truenas.cloud/code/avo/buildtags"
"sources.truenas.cloud/code/avo/printer"
"sources.truenas.cloud/code/avo/reg"
)
func TestBasic(t *testing.T) {

View File

@@ -7,8 +7,8 @@ import (
"path/filepath"
"strings"
"github.com/mmcloughlin/avo/internal/stack"
"github.com/mmcloughlin/avo/ir"
"sources.truenas.cloud/code/avo/internal/stack"
"sources.truenas.cloud/code/avo/ir"
)
// Printer can produce output for an avo File.

View File

@@ -3,7 +3,7 @@ package printer_test
import (
"fmt"
"github.com/mmcloughlin/avo/printer"
"sources.truenas.cloud/code/avo/printer"
)
func ExampleConfig_GeneratedBy() {

View File

@@ -3,9 +3,9 @@ package printer
import (
"go/format"
"github.com/mmcloughlin/avo/buildtags"
"github.com/mmcloughlin/avo/internal/prnt"
"github.com/mmcloughlin/avo/ir"
"sources.truenas.cloud/code/avo/buildtags"
"sources.truenas.cloud/code/avo/internal/prnt"
"sources.truenas.cloud/code/avo/ir"
)
type stubs struct {

View File

@@ -3,9 +3,9 @@ package printer_test
import (
"testing"
"github.com/mmcloughlin/avo/build"
"github.com/mmcloughlin/avo/buildtags"
"github.com/mmcloughlin/avo/printer"
"sources.truenas.cloud/code/avo/build"
"sources.truenas.cloud/code/avo/buildtags"
"sources.truenas.cloud/code/avo/printer"
)
func TestStubsPragmas(t *testing.T) {

View File

@@ -4,8 +4,8 @@ import (
"strings"
"testing"
"github.com/mmcloughlin/avo/build"
"github.com/mmcloughlin/avo/printer"
"sources.truenas.cloud/code/avo/build"
"sources.truenas.cloud/code/avo/printer"
)
func AssertPrintsLines(t *testing.T, ctx *build.Context, pb printer.Builder, expect []string) {