Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 163 for mktype (0.47 sec)

  1. src/cmd/fix/typecheck.go

    			}
    			typeof[n] = t
    
    		case *ast.Field:
    			// Field is one instance of the type per name.
    			all := ""
    			t := typeof[n.Type]
    			if !isType(t) {
    				// Create a type, because it is typically *T or *p.T
    				// and we might care about that type.
    				t = mkType(gofmt(n.Type))
    				typeof[n.Type] = t
    			}
    			t = getType(t)
    			if len(n.Names) == 0 {
    				all = t
    			} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 16 22:02:42 UTC 2022
    - 20.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/mkbuiltin.go

    	fmt.Fprintln(w, "}")
    }
    
    // typeInterner maps Go type expressions to compiler code that
    // constructs the denoted type. It recognizes and reuses common
    // subtype expressions.
    type typeInterner struct {
    	typs []string
    	hash map[string]int
    }
    
    func (i *typeInterner) intern(t ast.Expr) int {
    	x := i.mktype(t)
    	v, ok := i.hash[x]
    	if !ok {
    		v = len(i.typs)
    		if i.hash == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:56:49 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. src/cmd/fix/cftype.go

    	// (*unsafe.Pointer)(x) where x is type *bad -> (*unsafe.Pointer)(unsafe.Pointer(x))
    	// (*bad.type)(x) where x is type *unsafe.Pointer -> (*bad.type)(unsafe.Pointer(x))
    	walk(f, func(n any) {
    		if n == nil {
    			return
    		}
    		// Find pattern like (*a.b)(x)
    		c, ok := n.(*ast.CallExpr)
    		if !ok {
    			return
    		}
    		if len(c.Args) != 1 {
    			return
    		}
    		p, ok := c.Fun.(*ast.ParenExpr)
    		if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 00:25:49 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/bytecode/KotlinMetadata.kt

    }
    
    
    internal
    fun genericTypeOf(type: KmType, argument: KmType): KmType {
        type.arguments += KmTypeProjection(KmVariance.INVARIANT, argument)
        return type
    }
    
    
    internal
    fun genericTypeOf(type: KmType, arguments: Iterable<KmType>): KmType {
        arguments.forEach { genericTypeOf(type, it) }
        return type
    }
    
    
    internal
    fun actionTypeOf(type: KmType): KmType =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 13:09:46 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/mkall.sh

    	;;
    aix_ppc)
    	mkerrors="$mkerrors -maix32"
    	mksyscall="go run mksyscall_aix_ppc.go -aix"
    	mktypes="GOARCH=$GOARCH go tool cgo -godefs"
    	;;
    aix_ppc64)
    	mkerrors="$mkerrors -maix64"
    	mksyscall="go run mksyscall_aix_ppc64.go -aix"
    	mktypes="GOARCH=$GOARCH go tool cgo -godefs"
    	;;
    darwin_amd64)
    	mkerrors="$mkerrors -m64"
    	mktypes="GOARCH=$GOARCH go tool cgo -godefs"
    	mkasm="go run mkasm.go"
    	;;
    darwin_arm64)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 13 21:37:23 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  6. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/schemaBuilder/ConfigureLambdaHandler.kt

        override fun getTypeConfiguredByLambda(type: KType): KType? = if (isConfigureLambdaType(type)) type.arguments[0].type else null
        override fun isConfigureLambdaForType(configuredType: KType, maybeLambdaType: KType): Boolean = isConfigureLambdaType(maybeLambdaType, configuredType)
        override fun produceValueCaptor(lambdaType: KType): ConfigureLambdaHandler.ValueCaptor {
            lateinit var value: Any
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 10:53:44 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/watch/mux_test.go

    		{Type: Modified, Object: &myType{"foo", "goodbye world 3"}},
    		{Type: Deleted, Object: &myType{"bar", "hello world 4"}},
    	}
    
    	// The broadcaster we're testing
    	m := NewBroadcaster(0, WaitIfChannelFull)
    
    	// Add a bunch of watchers
    	const testWatchers = 2
    	wg := sync.WaitGroup{}
    	wg.Add(testWatchers)
    	for i := 0; i < testWatchers; i++ {
    		w, err := m.Watch()
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 16 15:26:25 UTC 2022
    - 8K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/analysis-api-fir-generator/src/org/jetbrains/kotlin/analysis/api/fir/generator/generatorUtils.kt

    import kotlin.reflect.KClass
    import kotlin.reflect.KType
    
    internal fun SmartPrinter.printTypeWithShortNames(type: KType, shouldRenderFqName: (KType) -> Boolean = { false }) {
        fun typeConversion(type: KType): String {
            val nullableSuffix = if (type.isMarkedNullable) "?" else ""
            val simpleName = if (shouldRenderFqName(type)) {
                type.qualifiedName
            } else {
                type.simpleName
            }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jul 18 11:49:20 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. src/syscall/mkall.sh

    	mkerrors="$mkerrors -maix64"
    	mksyscall="./mksyscall_libc.pl -aix"
    	mktypes="GOARCH=$GOARCH go tool cgo -godefs"
    	;;
    darwin_amd64)
    	mkerrors="$mkerrors -m64"
    	mksyscall="./mksyscall.pl -darwin"
    	mktypes="GOARCH=$GOARCH go tool cgo -godefs"
    	mkasm="go run mkasm.go"
    	;;
    darwin_arm64)
    	mkerrors="$mkerrors -m64"
    	mksyscall="./mksyscall.pl -darwin"
    	mktypes="GOARCH=$GOARCH go tool cgo -godefs"
    	mkasm="go run mkasm.go"
    	;;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 18:22:23 UTC 2023
    - 14.6K bytes
    - Viewed (0)
  10. test/fixedbugs/issue52279.dir/lib.go

    package lib
    
    type FMap[K comparable, V comparable] map[K]V
    
    //go:noinline
    func (m FMap[K, V]) Flip() FMap[V, K] {
    	out := make(FMap[V, K])
    	return out
    }
    
    type MyType uint8
    
    const (
    	FIRST MyType = 0
    )
    
    var typeStrs = FMap[MyType, string]{
    	FIRST: "FIRST",
    }
    
    func (self MyType) String() string {
    	return typeStrs[self]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 19:15:31 UTC 2022
    - 321 bytes
    - Viewed (0)
Back to top