- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 3,831 for types2 (0.18 sec)
-
src/cmd/compile/internal/types2/context.go
} } return nil } // update de-duplicates n against previously seen types with the hash h. If an // identical type is found with the type hash h, the previously seen type is // returned. Otherwise, n is returned, and recorded in the Context for the hash // h. func (ctxt *Context) update(h string, orig Type, targs []Type, inst Type) Type { assert(inst != nil) ctxt.mu.Lock() defer ctxt.mu.Unlock()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 17:29:21 UTC 2023 - 4.3K bytes - Viewed (0) -
src/go/types/api_predicates.go
// Source: ../../cmd/compile/internal/types2/api_predicates.go // Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file implements exported type predicates. package types // AssertableTo reports whether a value of type V can be asserted to have type T. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 08 16:36:08 UTC 2024 - 3.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/termlist.go
package types2 import "strings" // A termlist represents the type set represented by the union // t1 ∪ y2 ∪ ... tn of the type sets of the terms t1 to tn. // A termlist is in normal form if all terms are disjoint. // termlist operations don't require the operands to be in // normal form. type termlist []*term // allTermlist represents the set of all types. // It is in normal form.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 03 18:29:30 UTC 2022 - 3.8K bytes - Viewed (0) -
src/go/types/typeterm.go
// T: &term{false, T} == {T} // set of type T // ~t: &term{true, t} == {t' | under(t') == t} // set of types with underlying type t type term struct { tilde bool // valid if typ != nil typ Type } func (x *term) String() string { switch { case x == nil: return "∅" case x.typ == nil: return "𝓤" case x.tilde: return "~" + x.typ.String() default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 3.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/format.go
// This file implements (error and trace) message formatting support. package types2 import ( "bytes" "cmd/compile/internal/syntax" "fmt" "strconv" "strings" ) func sprintf(qf Qualifier, tpSubscripts bool, format string, args ...any) string { for i, arg := range args { switch a := arg.(type) { case nil: arg = "<nil>" case operand: panic("got operand instead of *operand")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 3.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typestring_test.go
"testing" . "cmd/compile/internal/types2" ) const filename = "<src>" type testEntry struct { src, str string } // dup returns a testEntry where both src and str are the same. func dup(s string) testEntry { return testEntry{s, s} } // types that don't depend on any other type declarations var independentTestTypes = []testEntry{ // basic types dup("int"), dup("float32"), dup("string"),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 28 17:58:07 UTC 2023 - 3.9K bytes - Viewed (0) -
src/cmd/compile/internal/types2/hilbert_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package types2_test import ( "bytes" "flag" "fmt" "os" "testing" . "cmd/compile/internal/types2" ) var ( H = flag.Int("H", 5, "Hilbert matrix size") out = flag.String("out", "", "write generated program to out") ) func TestHilbert(t *testing.T) { // generate source src := program(*H, *out)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 13 21:00:12 UTC 2023 - 3.4K bytes - Viewed (0) -
src/go/types/termlist.go
// Source: ../../cmd/compile/internal/types2/termlist.go // Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package types import "strings" // A termlist represents the type set represented by the union // t1 ∪ y2 ∪ ... tn of the type sets of the terms t1 to tn.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 3.9K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typexpr.go
} x.typ = typ } // typ type-checks the type expression e and returns its type, or Typ[Invalid]. // The type must not be an (uninstantiated) generic type. func (check *Checker) typ(e syntax.Expr) Type { return check.definedType(e, nil) } // varType type-checks the type expression e and returns its type, or Typ[Invalid]. // The type must not be an (uninstantiated) generic type and it must not be a // constraint interface.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 16.6K bytes - Viewed (0) -
src/go/types/hilbert_test.go
// Source: ../../cmd/compile/internal/types2/hilbert_test.go // Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package types_test import ( "bytes" "flag" "fmt" "os" "testing" . "go/types" ) var ( H = flag.Int("H", 5, "Hilbert matrix size")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 3.5K bytes - Viewed (0)