Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 64 for iface (0.08 sec)

  1. src/go/types/api_test.go

    		NewFunc(nopos, nil, "M", sig2),
    	}
    
    	embeddedMethods := []*Func{
    		NewFunc(nopos, nil, "M", sig2),
    	}
    	embedded := NewInterfaceType(embeddedMethods, nil)
    	iface := NewInterfaceType(methods, []Type{embedded})
    	iface.Complete()
    }
    
    func TestNewAlias_Issue65455(t *testing.T) {
    	obj := NewTypeName(nopos, nil, "A", nil)
    	alias := NewAlias(obj, Typ[Int])
    	alias.Underlying() // must not panic
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/api_test.go

    		NewFunc(nopos, nil, "M", sig2),
    	}
    
    	embeddedMethods := []*Func{
    		NewFunc(nopos, nil, "M", sig2),
    	}
    	embedded := NewInterfaceType(embeddedMethods, nil)
    	iface := NewInterfaceType(methods, []Type{embedded})
    	iface.NumMethods() // unlike go/types, there is no Complete() method, so we complete implicitly
    }
    
    func TestNewAlias_Issue65455(t *testing.T) {
    	obj := NewTypeName(nopos, nil, "A", nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  3. src/runtime/error.go

    	case abi.Int16:
    		print(typestring, "(", *(*int16)(eface.data), ")")
    	case abi.Int32:
    		print(typestring, "(", *(*int32)(eface.data), ")")
    	case abi.Int64:
    		print(typestring, "(", *(*int64)(eface.data), ")")
    	case abi.Uint:
    		print(typestring, "(", *(*uint)(eface.data), ")")
    	case abi.Uint8:
    		print(typestring, "(", *(*uint8)(eface.data), ")")
    	case abi.Uint16:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  4. src/net/net_windows_test.go

    	}
    	slices.Sort(have)
    
    	ifaces := make(map[string]bool)
    	err = netshInterfaceIPShowInterface("ipv6", ifaces)
    	if err != nil {
    		t.Fatal(err)
    	}
    	err = netshInterfaceIPShowInterface("ipv4", ifaces)
    	if err != nil {
    		t.Fatal(err)
    	}
    	want := make([]string, 0)
    	for name, isup := range ifaces {
    		want = append(want, toString(name, isup))
    	}
    	slices.Sort(want)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/LoggingTracer.kt

        private val writePosition: () -> Long,
        private val logger: Logger,
        private val level: LogLevel
    ) : Tracer {
    
        // Include a sequence number in the events so the order of events can be preserved in face of log output reordering
        private
        var nextSequenceNumber = 0L
    
        override fun open(frame: String) {
            log(frame, 'O')
        }
    
        override fun close(frame: String) {
            log(frame, 'C')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 20:48:51 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. src/internal/reflectlite/value.go

    // It returns the zero Value if v is nil.
    func (v Value) Elem() Value {
    	k := v.kind()
    	switch k {
    	case abi.Interface:
    		var eface any
    		if v.typ().NumMethod() == 0 {
    			eface = *(*any)(v.ptr)
    		} else {
    			eface = (any)(*(*interface {
    				M()
    			})(v.ptr))
    		}
    		x := unpackEface(eface)
    		if x.flag != 0 {
    			x.flag |= v.flag.ro()
    		}
    		return x
    	case abi.Pointer:
    		ptr := v.ptr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  7. src/internal/fmtsort/sort.go

    package fmtsort
    
    import (
    	"cmp"
    	"reflect"
    	"slices"
    )
    
    // Note: Throughout this package we avoid calling reflect.Value.Interface as
    // it is not always legal to do so and it's easier to avoid the issue than to face it.
    
    // SortedMap is a slice of KeyValue pairs that simplifies sorting
    // and iterating over map entries.
    //
    // Each KeyValue pair contains a map key and its corresponding value.
    type SortedMap []KeyValue
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:31:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. src/html/template/doc.go

    This package assumes that template authors are trusted, that Execute's data
    parameter is not, and seeks to preserve the properties below in the face
    of untrusted data:
    
    Structure Preservation Property:
    "... when a template author writes an HTML tag in a safe templating language,
    the browser will interpret the corresponding portion of the output as a tag
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:04:29 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  9. src/text/template/exec_test.go

    	{"eq .V1 .V2", "true", true},
    	{"eq .Ptr .Ptr", "true", true},
    	{"eq .Ptr .NilPtr", "false", true},
    	{"eq .NilPtr .NilPtr", "true", true},
    	{"eq .Iface1 .Iface1", "true", true},
    	{"eq .Iface1 .NilIface", "false", true},
    	{"eq .NilIface .NilIface", "true", true},
    	{"eq .NilIface .Iface1", "false", true},
    	{"eq .NilIface 0", "false", true},
    	{"eq 0 .NilIface", "false", true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  10. src/internal/abi/type.go

    func TypeOf(a any) *Type {
    	eface := *(*EmptyInterface)(unsafe.Pointer(&a))
    	// Types are either static (for compiler-created types) or
    	// heap-allocated but always reachable (for reflection-created
    	// types, held in the central map). So there is no need to
    	// escape types. noescape here help avoid unnecessary escape
    	// of v.
    	return (*Type)(NoEscape(unsafe.Pointer(eface.Type)))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 21.8K bytes
    - Viewed (0)
Back to top