Skip to content

Commit

Permalink
mv *.go => tool
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei committed Jan 13, 2025
1 parent 272e260 commit bb8760c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cl/cltest/cltest.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ import (
"testing"

"github.com/goplus/gogen"
"github.com/goplus/gop"
"github.com/goplus/gop/cl"
"github.com/goplus/gop/parser"
"github.com/goplus/gop/parser/fsx"
"github.com/goplus/gop/parser/fsx/memfs"
"github.com/goplus/gop/scanner"
"github.com/goplus/gop/token"
"github.com/goplus/gop/tool"
"github.com/goplus/mod/env"
"github.com/goplus/mod/modfile"
)
Expand All @@ -47,7 +47,7 @@ func init() {
gogen.SetDebug(gogen.DbgFlagAll)
cl.SetDebug(cl.DbgFlagAll | cl.FlagNoMarkAutogen)
fset := token.NewFileSet()
imp := gop.NewImporter(nil, Gop, fset)
imp := tool.NewImporter(nil, Gop, fset)
Conf = &cl.Config{
Fset: fset,
Importer: imp,
Expand Down
16 changes: 16 additions & 0 deletions cl/typeparams_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2022 The GoPlus Authors (goplus.org). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package cl_test

import (
Expand Down
4 changes: 2 additions & 2 deletions x/typesutil/info_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ import (
"unsafe"

"github.com/goplus/gogen"
"github.com/goplus/gop"
"github.com/goplus/gop/ast"
"github.com/goplus/gop/format"
"github.com/goplus/gop/parser"
"github.com/goplus/gop/token"
"github.com/goplus/gop/tool"
"github.com/goplus/gop/x/typesutil"
"github.com/goplus/mod/env"
"github.com/goplus/mod/gopmod"
Expand Down Expand Up @@ -77,7 +77,7 @@ func parseMixedSource(mod *gopmod.Module, fset *token.FileSet, name, src string,
}

conf := &types.Config{}
conf.Importer = gop.NewImporter(nil, &env.Gop{Root: "../..", Version: "1.0"}, fset)
conf.Importer = tool.NewImporter(nil, &env.Gop{Root: "../..", Version: "1.0"}, fset)
chkOpts := &typesutil.Config{
Types: types.NewPackage("main", f.Name.Name),
Fset: fset,
Expand Down

0 comments on commit bb8760c

Please sign in to comment.