File tree 6 files changed +5
-20
lines changed
6 files changed +5
-20
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ go 1.23.4
4
4
5
5
require (
6
6
github.com/goplus/gogen v1.16.7
7
- github.com/goplus/gop v1.3.5
7
+ github.com/goplus/gop v1.3.6
8
8
github.com/goplus/mod v0.13.17
9
9
github.com/goplus/spx v1.1.1-0.20250214074125-e9e1f6362499
10
10
github.com/qiniu/x v1.13.12
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ github.com/goplus/canvas v0.1.0 h1:Vx3f2+U8UANvWf5/01YsQYKNbZDm1GZCjhlEBFrQkeU=
22
22
github.com/goplus/canvas v0.1.0 /go.mod h1:Rhcvo5qkpD9WuXFnvnXtrBSY97l6h7sXQuofrmiLNdM =
23
23
github.com/goplus/gogen v1.16.7 h1:OVN6byjWVtzs4plS7q80h747Jh8G7J+VUPN0L9YWQ68 =
24
24
github.com/goplus/gogen v1.16.7 /go.mod h1:6TQYbabXDF9LCdDkOOzHmfg1R4ENfXQ3XpHa9RhTSD8 =
25
- github.com/goplus/gop v1.3.5 h1:WmkGpOnyANI/b0Oj/k3qkOPdlhEiBbpds/X/cgUVzDs =
26
- github.com/goplus/gop v1.3.5 /go.mod h1:BnMzJG+PYoOWjKT4Q7CwxLUTBRnTFuuxW8W4O3vq/TU =
25
+ github.com/goplus/gop v1.3.6 h1:I9GUJXt+elFXjO3tNi/BXWiR7MujHoxrdawLQfMPrTM =
26
+ github.com/goplus/gop v1.3.6 /go.mod h1:grsLKBbSesOXhwXH9tktcXHi+SBOn/yk4LKsL3dRmMg =
27
27
github.com/goplus/mod v0.13.17 h1:aWp14xosENrh7t0/0qcIejDmQEiTgI3ou2+KoLDlSlE =
28
28
github.com/goplus/mod v0.13.17 /go.mod h1:XlHf8mnQ4QkRDX14Of2tpywuHDd+JVpPStvh3egog+0 =
29
29
github.com/goplus/spx v1.1.1-0.20250214074125-e9e1f6362499 h1:wt9bXZWSZ6MKgLw0c87GSbKrXjj69aCt7JVM1RwLp3c =
Original file line number Diff line number Diff line change @@ -125,10 +125,10 @@ var pkgPaths = []string{
125
125
126
126
// See github.com/goplus/gop/cl.newBuiltinDefault for the list of packages required by Go+ builtins.
127
127
"github.com/goplus/gop/builtin" ,
128
- "github.com/goplus/gop/builtin/ng" ,
129
128
"github.com/goplus/gop/builtin/iox" ,
130
- "github.com/qiniu/x/stringutil " ,
129
+ "github.com/goplus/gop/builtin/ng " ,
131
130
"github.com/goplus/gop/builtin/stringslice" ,
131
+ "github.com/qiniu/x/stringutil" ,
132
132
133
133
"github.com/goplus/spx" ,
134
134
"github.com/hajimehoshi/ebiten/v2" ,
Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ package util
7
7
// This file defines utilities for working with source positions.
8
8
9
9
import (
10
- "reflect"
11
- "slices"
12
10
"sort"
13
11
14
12
"github.com/goplus/gop/ast"
@@ -469,8 +467,6 @@ func childrenOf(n ast.Node) []ast.Node {
469
467
// nop
470
468
}
471
469
472
- children = slices .DeleteFunc (children , isNilNode )
473
-
474
470
// TODO(adonovan): opt: merge the logic of ast.Inspect() into
475
471
// the switch above so we can make interleaved callbacks for
476
472
// both Nodes and Tokens in the right order and avoid the need
@@ -493,14 +489,3 @@ func (sl byPos) Less(i, j int) bool {
493
489
func (sl byPos ) Swap (i , j int ) {
494
490
sl [i ], sl [j ] = sl [j ], sl [i ]
495
491
}
496
-
497
- func isNilNode (n ast.Node ) bool {
498
- if n == nil {
499
- return true
500
- }
501
- v := reflect .ValueOf (n )
502
- if v .Kind () == reflect .Ptr {
503
- return v .IsNil ()
504
- }
505
- return false
506
- }
File renamed without changes.
You can’t perform that action at this time.
0 commit comments