Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 2,352 for types2 (0.1 sec)

  1. 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)
  2. src/go/types/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: Wed Apr 03 18:48:38 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. 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)
  4. src/cmd/compile/internal/types2/errsupport.go

    // This file implements support functions for error messages.
    
    package types2
    
    // lookupError returns a case-specific error when a lookup of selector sel in the
    // given type fails but an object with alternative spelling (case folding) is found.
    // If structLit is set, the error message is specifically for struct literal fields.
    func (check *Checker) lookupError(typ Type, sel string, obj Object, structLit bool) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 07 16:41:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/gcsizes.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package types2
    
    type gcSizes struct {
    	WordSize int64 // word size in bytes - must be >= 4 (32bits)
    	MaxAlign int64 // maximum alignment in bytes - must be >= 1
    }
    
    func (s *gcSizes) Alignof(T Type) (result int64) {
    	defer func() {
    		assert(result >= 1)
    	}()
    
    	// For arrays and structs, alignment is defined in terms
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. src/go/types/errsupport.go

    // Source: ../../cmd/compile/internal/types2/errsupport.go
    
    // Copyright 2024 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 support functions for error messages.
    
    package types
    
    // lookupError returns a case-specific error when a lookup of selector sel in the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  7. src/go/types/gcsizes.go

    // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
    // Source: ../../cmd/compile/internal/types2/gcsizes.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.
    
    package types
    
    type gcSizes struct {
    	WordSize int64 // word size in bytes - must be >= 4 (32bits)
    	MaxAlign int64 // maximum alignment in bytes - must be >= 1
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/alias.go

    // Underlying returns the [underlying type] of the alias type a, which is the
    // underlying type of the aliased type. Underlying types are never Named,
    // TypeParam, or Alias types.
    //
    // [underlying type]: https://go.dev/ref/spec#Underlying_types.
    func (a *Alias) Underlying() Type { return unalias(a).Underlying() }
    
    // Origin returns the generic Alias type of which a is an instance.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/object_test.go

    	{"type t struct{f int}", "t", "type p.t struct{f int}", false},
    	{"type t func(int)", "t", "type p.t func(int)", false},
    	{"type t[P any] struct{f P}", "t", "type p.t[P any] struct{f P}", false},
    	{"type t[P any] struct{f P}", "t.P", "type parameter P any", false},
    	{"type C interface{m()}; type t[P C] struct{}", "t.P", "type parameter P p.C", false},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. src/go/types/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
    - 5.1K bytes
    - Viewed (0)
Back to top