Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 5,019 for types2 (0.11 sec)

  1. src/go/types/errors.go

    		}
    		panic(msg)
    	}
    }
    
    // An errorDesc describes part of a type-checking error.
    type errorDesc struct {
    	posn positioner
    	msg  string
    }
    
    // An error_ represents a type-checking error.
    // A new error_ is created with Checker.newError.
    // To report an error_, call error_.report.
    type error_ struct {
    	check *Checker
    	desc  []errorDesc
    	code  Code
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/issues_test.go

    	_ = uint16(16) << s
    	_ = uint32(32 << s)
    	_ = uint64(64 << s + s)
    	_ = (interface{})("foo")
    	_ = (interface{})(nil)
    )`
    	types := make(map[syntax.Expr]TypeAndValue)
    	mustTypecheck(src, nil, &Info{Types: types})
    
    	for x, tv := range types {
    		var want Type
    		switch x := x.(type) {
    		case *syntax.BasicLit:
    			switch x.Value {
    			case `8`:
    				want = Typ[Uint8]
    			case `16`:
    				want = Typ[Uint16]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/typeset.go

    // implied by the methods and the type set described by the terms and the
    // comparable bit. To test whether a type is included in a type set
    // ("implements" relation), the type must implement all methods _and_ be
    // an element of the type set described by the terms and the comparable bit.
    // If the term list describes the set of all types and comparable is true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  4. src/go/types/conversions.go

    	// "V and T have identical underlying types if tags are ignored
    	// and V and T are not type parameters"
    	if IdenticalIgnoreTags(Vu, Tu) && Vp == nil && Tp == nil {
    		return true
    	}
    
    	// "V and T are unnamed pointer types and their pointer base types
    	// have identical underlying types if tags are ignored
    	// and their pointer base types are not type parameters"
    	if V, ok := V.(*Pointer); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. src/go/types/mono.go

    //
    // * Everywhere a type-parameterized function or type is instantiated,
    //   we add edges to each type parameter from the vertices (if any)
    //   representing each type parameter or defined type referenced by
    //   the type argument. If the type argument is just the referenced
    //   type itself, then the edge has weight 0, otherwise 1.
    //
    // * For every defined type declared within a type-parameterized
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  6. src/go/types/sizes.go

    //   - The size of a struct is the offset of the last field plus that
    //     field's size. As with all element types, if the struct is used
    //     in an array its size must first be aligned to a multiple of the
    //     struct's alignment.
    //   - All other types have size WordSize.
    //   - Arrays and structs are aligned per spec definition; all other
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/mono.go

    //   representing each type parameter or defined type referenced by
    //   the type argument. If the type argument is just the referenced
    //   type itself, then the edge has weight 0, otherwise 1.
    //
    // * For every defined type declared within a type-parameterized
    //   function or method, we add an edge of weight 1 to the defined
    //   type from each ambient type parameter.
    //
    // For example, given:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 28 00:05:29 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/sizes.go

    //   - The size of a struct is the offset of the last field plus that
    //     field's size. As with all element types, if the struct is used
    //     in an array its size must first be aligned to a multiple of the
    //     struct's alignment.
    //   - All other types have size WordSize.
    //   - Arrays and structs are aligned per spec definition; all other
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/initorder.go

    // Copyright 2014 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 types2
    
    import (
    	"container/heap"
    	"fmt"
    	. "internal/types/errors"
    	"sort"
    )
    
    // initOrder computes the Info.InitOrder for package variables.
    func (check *Checker) initOrder() {
    	// An InitOrder may already have been computed if a package is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 22:06:51 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  10. src/go/types/initorder.go

    // Source: ../../cmd/compile/internal/types2/initorder.go
    
    // Copyright 2014 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 (
    	"container/heap"
    	"fmt"
    	. "internal/types/errors"
    	"sort"
    )
    
    // initOrder computes the Info.InitOrder for package variables.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top