Skip to content

Commit b7fefde

Browse files
authored
chore(deps): bump github.com/goplus/gop from 1.3.5 to 1.3.6 (#49)
This also reverts commit goplus/builder@60c8e97. Fixes goplus/builder#1398 Updates goplus/builder#1378 Signed-off-by: Aofei Sheng <aofei@aofeisheng.com>
1 parent f946793 commit b7fefde

File tree

6 files changed

+5
-20
lines changed

6 files changed

+5
-20
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.23.4
44

55
require (
66
github.com/goplus/gogen v1.16.7
7-
github.com/goplus/gop v1.3.5
7+
github.com/goplus/gop v1.3.6
88
github.com/goplus/mod v0.13.17
99
github.com/goplus/spx v1.1.1-0.20250214074125-e9e1f6362499
1010
github.com/qiniu/x v1.13.12

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ github.com/goplus/canvas v0.1.0 h1:Vx3f2+U8UANvWf5/01YsQYKNbZDm1GZCjhlEBFrQkeU=
2222
github.com/goplus/canvas v0.1.0/go.mod h1:Rhcvo5qkpD9WuXFnvnXtrBSY97l6h7sXQuofrmiLNdM=
2323
github.com/goplus/gogen v1.16.7 h1:OVN6byjWVtzs4plS7q80h747Jh8G7J+VUPN0L9YWQ68=
2424
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=
2727
github.com/goplus/mod v0.13.17 h1:aWp14xosENrh7t0/0qcIejDmQEiTgI3ou2+KoLDlSlE=
2828
github.com/goplus/mod v0.13.17/go.mod h1:XlHf8mnQ4QkRDX14Of2tpywuHDd+JVpPStvh3egog+0=
2929
github.com/goplus/spx v1.1.1-0.20250214074125-e9e1f6362499 h1:wt9bXZWSZ6MKgLw0c87GSbKrXjj69aCt7JVM1RwLp3c=

internal/pkgdata/gen/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ var pkgPaths = []string{
125125

126126
// See github.com/goplus/gop/cl.newBuiltinDefault for the list of packages required by Go+ builtins.
127127
"github.com/goplus/gop/builtin",
128-
"github.com/goplus/gop/builtin/ng",
129128
"github.com/goplus/gop/builtin/iox",
130-
"github.com/qiniu/x/stringutil",
129+
"github.com/goplus/gop/builtin/ng",
131130
"github.com/goplus/gop/builtin/stringslice",
131+
"github.com/qiniu/x/stringutil",
132132

133133
"github.com/goplus/spx",
134134
"github.com/hajimehoshi/ebiten/v2",

internal/pkgdata/pkgdata.zip

157 Bytes
Binary file not shown.

internal/util/enclosing.go

-15
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ package util
77
// This file defines utilities for working with source positions.
88

99
import (
10-
"reflect"
11-
"slices"
1210
"sort"
1311

1412
"github.com/goplus/gop/ast"
@@ -469,8 +467,6 @@ func childrenOf(n ast.Node) []ast.Node {
469467
// nop
470468
}
471469

472-
children = slices.DeleteFunc(children, isNilNode)
473-
474470
// TODO(adonovan): opt: merge the logic of ast.Inspect() into
475471
// the switch above so we can make interleaved callbacks for
476472
// both Nodes and Tokens in the right order and avoid the need
@@ -493,14 +489,3 @@ func (sl byPos) Less(i, j int) bool {
493489
func (sl byPos) Swap(i, j int) {
494490
sl[i], sl[j] = sl[j], sl[i]
495491
}
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.

0 commit comments

Comments
 (0)