golangci-lint/pkg/golinters/goanalysis/runner_loadingpackage_ti.go
Ethan Reesor 0abb298136
staticcheck: fix generics (#2976)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2022-07-14 04:10:10 +02:00

22 lines
506 B
Go

//go:build go1.18
// +build go1.18
package goanalysis
import (
"go/ast"
"go/types"
)
func newTypesInfo() *types.Info {
return &types.Info{
Types: make(map[ast.Expr]types.TypeAndValue),
Instances: make(map[*ast.Ident]types.Instance),
Defs: make(map[*ast.Ident]types.Object),
Uses: make(map[*ast.Ident]types.Object),
Implicits: make(map[ast.Node]types.Object),
Scopes: make(map[ast.Node]*types.Scope),
Selections: make(map[*ast.SelectorExpr]*types.Selection),
}
}