- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 51 for vnopts (0.92 sec)
-
src/cmd/compile/internal/types2/api_predicates.go
return false } return (*Checker)(nil).implements(nopos, V, T, false, nil) } // Satisfies reports whether type V satisfies the constraint T. // // The behavior of Satisfies is unspecified if V is Typ[Invalid] or an uninstantiated // generic type. func Satisfies(V Type, T *Interface) bool { return (*Checker)(nil).implements(nopos, V, T, true, nil) } // Identical reports whether x and y are identical types.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 08 16:36:08 UTC 2024 - 3.3K bytes - Viewed (0) -
src/cmd/cgo/ast_go118.go
package main import ( "go/ast" "go/token" ) func (f *File) walkUnexpected(x interface{}, context astContext, visit func(*File, interface{}, astContext)) { switch n := x.(type) { default: error_(token.NoPos, "unexpected type %T in walk", x) panic("unexpected type") case *ast.IndexListExpr: f.walk(&n.X, ctxExpr, visit) f.walk(n.Indices, ctxExpr, visit) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 30 21:45:10 UTC 2022 - 730 bytes - Viewed (0) -
src/cmd/compile/internal/types2/issues_test.go
// } // } n1 := NewTypeName(nopos, nil, "T1", nil) T1 := NewNamed(n1, nil, nil) n2 := NewTypeName(nopos, nil, "T2", nil) T2 := NewNamed(n2, nil, nil) s1 := NewStruct([]*Var{NewField(nopos, nil, "_", T2, false)}, nil) T1.SetUnderlying(s1) s2 := NewStruct([]*Var{NewField(nopos, nil, "_", T2, false)}, nil) s3 := NewStruct([]*Var{NewField(nopos, nil, "_", s2, false)}, nil) T2.SetUnderlying(s3)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/instantiate_test.go
"package equivalentinterfaces; type T[P any] int", "T", []Type{ NewInterfaceType([]*Func{NewFunc(nopos, nil, "M", emptySignature)}, nil), }, "T", []Type{ NewInterfaceType( nil, []Type{ NewInterfaceType([]*Func{NewFunc(nopos, nil, "M", emptySignature)}, nil), }, ), }, true, }, { // int|string is equivalent to string|int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 28 17:58:07 UTC 2023 - 5.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/predicates.go
for i, xtparam := range xtparams { ybound := check.subst(nopos, ytparams[i].bound, smap, nil, ctxt) if !c.identical(xtparam.bound, ybound, p) { return false } } yparams = check.subst(nopos, y.params, smap, nil, ctxt).(*Tuple) yresults = check.subst(nopos, y.results, smap, nil, ctxt).(*Tuple) } return x.variadic == y.variadic &&
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 17.5K bytes - Viewed (0) -
src/cmd/compile/internal/rangefunc/rewrite.go
var runtimePkg = func() *types2.Package { var nopos syntax.Pos pkg := types2.NewPackage("runtime", "runtime") anyType := types2.Universe.Lookup("any").Type() intType := types2.Universe.Lookup("int").Type() // func deferrangefunc() unsafe.Pointer obj := types2.NewFunc(nopos, pkg, "deferrangefunc", types2.NewSignatureType(nil, nil, nil, nil, types2.NewTuple(types2.NewParam(nopos, pkg, "extra", anyType)), false))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:05:44 UTC 2024 - 41.6K bytes - Viewed (0) -
src/cmd/go/internal/load/pkg.go
cmdlinePkgLiteral ) // LoadPackage does Load import, but without a parent package load contezt func LoadPackage(ctx context.Context, opts PackageOpts, path, srcDir string, stk *ImportStack, importPos []token.Position, mode int) *Package { p, err := loadImport(ctx, opts, nil, path, srcDir, nil, stk, importPos, mode) if err != nil { base.Fatalf("internal error: loadImport of %q with nil parent returned an error", path) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 28 17:00:51 UTC 2024 - 120K bytes - Viewed (0) -
src/cmd/go/internal/modload/init.go
if cfg.BuildMod == "mod" && cfg.CmdName != "mod graph" && cfg.CmdName != "mod why" { // go line is missing from go.mod; add one there and add to derived requirements. v := gover.Local() if opts != nil && opts.TidyGoVersion != "" { v = opts.TidyGoVersion } addGoStmt(MainModules.ModFile(mainModule), mainModule, v) rs = overrideRoots(ctx, rs, []module.Version{{Path: "go", Version: v}})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 18:36:30 UTC 2024 - 69.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typeterm_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package types2 import ( "strings" "testing" ) var myInt = func() Type { tname := NewTypeName(nopos, nil, "myInt", nil) return NewNamed(tname, Typ[Int], nil) }() var testTerms = map[string]*term{ "∅": nil, "𝓤": {}, "int": {false, Typ[Int]}, "~int": {true, Typ[Int]},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 20 23:30:58 UTC 2021 - 5.1K bytes - Viewed (0) -
src/cmd/go/internal/modload/load.go
// loads the packages in the import graph rooted at that set. func LoadPackages(ctx context.Context, opts PackageOpts, patterns ...string) (matches []*search.Match, loadedPackages []string) { if opts.Tags == nil { opts.Tags = imports.Tags() } patterns = search.CleanPatterns(patterns) matches = make([]*search.Match, 0, len(patterns)) allPatternIsRoot := false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 84K bytes - Viewed (0)