- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 5,019 for types2 (0.14 sec)
-
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/typeterm.go
package types2 // A term describes elementary type sets: // // ∅: (*term)(nil) == ∅ // set of no types (empty set) // 𝓤: &term{} == 𝓤 // set of all types (𝓤niverse) // 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 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 3.5K 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) -
src/cmd/compile/internal/types2/typeparam.go
func nextID() uint64 { return uint64(lastID.Add(1)) } // A TypeParam represents a type parameter type. type TypeParam struct { check *Checker // for lazy type bound completion id uint64 // unique id, for debugging only obj *TypeName // corresponding type name index int // type parameter index in source order, starting at 0 bound Type // any type, but underlying is eventually *Interface for correct programs (see TypeParam.iface) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 4.9K bytes - Viewed (0) -
src/cmd/compile/internal/types2/resolver_test.go
// license that can be found in the LICENSE file. package types2_test import ( "cmd/compile/internal/syntax" "fmt" "internal/testenv" "sort" "testing" . "cmd/compile/internal/types2" ) type resolveTestImporter struct { importer ImporterFrom imported map[string]bool } func (imp *resolveTestImporter) Import(string) (*Package, error) { panic("should not be called") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 10 12:59:20 UTC 2023 - 4.7K bytes - Viewed (0)