Skip to content

Commit f8a398e

Browse files
committed
goimports
1 parent ffd0910 commit f8a398e

File tree

15 files changed

+40
-25
lines changed

15 files changed

+40
-25
lines changed

ast/node.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package ast
22

33
import (
4-
"github.com/antonmedv/expr/internal/file"
54
"reflect"
65
"regexp"
6+
7+
"github.com/antonmedv/expr/internal/file"
78
)
89

910
// Node represents items of abstract syntax tree.

ast/visitor_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package ast_test
22

33
import (
4+
"testing"
5+
46
"github.com/antonmedv/expr/ast"
57
"github.com/stretchr/testify/assert"
6-
"testing"
78
)
89

910
type visitor struct {

checker/checker.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ package checker
22

33
import (
44
"fmt"
5+
"reflect"
6+
57
"github.com/antonmedv/expr/ast"
68
"github.com/antonmedv/expr/internal/conf"
79
"github.com/antonmedv/expr/internal/file"
810
"github.com/antonmedv/expr/parser"
9-
"reflect"
1011
)
1112

1213
func Check(tree *parser.Tree, config *conf.Config) (t reflect.Type, err error) {

checker/checker_test.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@ package checker_test
22

33
import (
44
"fmt"
5+
"regexp"
6+
"strings"
7+
"testing"
8+
"time"
9+
510
"github.com/antonmedv/expr"
611
"github.com/antonmedv/expr/checker"
712
"github.com/antonmedv/expr/internal/conf"
813
"github.com/antonmedv/expr/parser"
914
"github.com/stretchr/testify/assert"
10-
"regexp"
11-
"strings"
12-
"testing"
13-
"time"
1415
)
1516

1617
func TestCheck_debug(t *testing.T) {

checker/types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package checker
22

33
import (
4-
"github.com/antonmedv/expr/ast"
54
"reflect"
5+
6+
"github.com/antonmedv/expr/ast"
67
)
78

89
var (

compiler/compiler.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ package compiler
33
import (
44
"encoding/binary"
55
"fmt"
6+
"math"
7+
"reflect"
8+
69
"github.com/antonmedv/expr/ast"
710
"github.com/antonmedv/expr/internal/conf"
811
"github.com/antonmedv/expr/internal/file"
912
"github.com/antonmedv/expr/parser"
1013
. "github.com/antonmedv/expr/vm"
11-
"math"
12-
"reflect"
1314
)
1415

1516
func Compile(tree *parser.Tree, config *conf.Config) (program *Program, err error) {

compiler/compiler_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
package compiler_test
22

33
import (
4+
"math"
5+
"reflect"
6+
"testing"
7+
48
"github.com/antonmedv/expr/compiler"
59
"github.com/antonmedv/expr/internal/conf"
610
"github.com/antonmedv/expr/parser"
711
"github.com/antonmedv/expr/vm"
812
"github.com/stretchr/testify/assert"
913
"github.com/stretchr/testify/require"
10-
"math"
11-
"reflect"
12-
"testing"
1314
)
1415

1516
func TestCompile_debug(t *testing.T) {

optimizer/optimizer.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package optimizer
22

33
import (
44
"encoding/json"
5-
. "github.com/antonmedv/expr/ast"
65
"math"
76
"reflect"
7+
8+
. "github.com/antonmedv/expr/ast"
89
)
910

1011
type inArray struct{}

optimizer/optimizer_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package optimizer_test
22

33
import (
4+
"testing"
5+
46
"github.com/antonmedv/expr/ast"
57
"github.com/antonmedv/expr/checker"
68
"github.com/antonmedv/expr/internal/conf"
@@ -9,7 +11,6 @@ import (
911
"github.com/sanity-io/litter"
1012
"github.com/stretchr/testify/assert"
1113
"github.com/stretchr/testify/require"
12-
"testing"
1314
)
1415

1516
func TestOptimize_constant_folding(t *testing.T) {

parser/parser.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ package parser
44

55
import (
66
"fmt"
7+
"regexp"
8+
"strconv"
9+
"strings"
10+
711
"github.com/antlr/antlr4/runtime/Go/antlr"
812
"github.com/antonmedv/expr/ast"
913
"github.com/antonmedv/expr/internal/file"
1014
"github.com/antonmedv/expr/parser/gen"
11-
"regexp"
12-
"strconv"
13-
"strings"
1415
)
1516

1617
type Tree struct {

0 commit comments

Comments
 (0)