Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 97 for new2 (0.3 sec)

  1. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/demo/demoSimple/SimpleAnalysisDemo.kt

        externalFunctions = listOf(::newD),
        defaultImports = listOf(DefaultFqName("com.example", "newD"))
    )
    
    
    object SimpleAnalysisDemo {
        @JvmStatic
        fun main(args: Array<String>) {
            printResolutionResults(
                schema.resolve(
                    """
                        val myB = b()
    
                        a = myB
                        val myD = newD("shared")
    
                        val c1 = c(1)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:01 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/guarantee-all-funcs-one-use.mlir

    // -----
    // Basic test.
    // CHECK-LABEL: func @f
    func.func @f() {
      // CHECK: call @g() : () -> ()
      // CHECK: call @[[NEWG:.+]]() : () -> ()
      func.call @g() : () -> ()
      func.call @g() : () -> ()
      func.return
    }
    
    // CHECK: func @g()
    // CHECK: func private @[[NEWG]]()
    func.func @g() {
      func.return
    }
    
    // -----
    // Transitive callees.
    // CHECK-LABEL: func @f
    // 2 copies of @g
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. src/encoding/xml/typeinfo.go

    			if oldf.parents[p] != newf.parents[p] {
    				continue Loop
    			}
    		}
    		if len(oldf.parents) > len(newf.parents) {
    			if oldf.parents[len(newf.parents)] == newf.name {
    				conflicts = append(conflicts, i)
    			}
    		} else if len(oldf.parents) < len(newf.parents) {
    			if newf.parents[len(oldf.parents)] == oldf.name {
    				conflicts = append(conflicts, i)
    			}
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 00:23:29 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  4. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/demo/demoSimple/demoTypes.kt

    }
    
    
    class C(var x: Int = 0) {
        @Builder
        fun d(newD: D): C {
            this.d = newD
            return this
        }
    
        @get:Restricted
        var d: D = D()
    
        @get:Restricted
        val y = "test"
    
        @Restricted
        fun f(y: String) = 0
    }
    
    
    class D {
        @get:Restricted
        var id: String = "none"
    }
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 06 23:16:59 UTC 2024
    - 949 bytes
    - Viewed (0)
  5. pkg/config/mesh/networks_watcher_test.go

    	doneCh := make(chan struct{}, 1)
    
    	var newN *meshconfig.MeshNetworks
    	w.AddNetworksHandler(func() {
    		newN = w.Networks()
    		close(doneCh)
    	})
    
    	// Change the file to trigger the update.
    	n.Networks["test"] = &meshconfig.Network{}
    	writeMessage(t, path, &n)
    
    	select {
    	case <-doneCh:
    		g.Expect(newN).To(Equal(&n))
    		g.Expect(w.Networks()).To(Equal(newN))
    		break
    	case <-time.After(time.Second * 5):
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  6. src/runtime/debugcall.go

    		gp.schedlink.set(newg)
    	})
    
    	// Switch to the new goroutine.
    	mcall(func(gp *g) {
    		// Get newg.
    		newg := gp.schedlink.ptr()
    		gp.schedlink = 0
    
    		// Park the calling goroutine.
    		trace := traceAcquire()
    		if trace.ok() {
    			// Trace the event before the transition. It may take a
    			// stack trace, but we won't own the stack after the
    			// transition anymore.
    			trace.GoPark(traceBlockDebugCall, 1)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 20:50:21 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  7. pkg/config/mesh/watcher_test.go

    	assert.Equal(t, w.Mesh(), m)
    
    	doneCh := make(chan struct{}, 1)
    
    	var newM *meshconfig.MeshConfig
    	w.AddMeshHandler(func() {
    		newM = w.Mesh()
    		close(doneCh)
    	})
    
    	// Change the file to trigger the update.
    	m.IngressClass = "foo"
    	writeMessage(t, path, m)
    
    	select {
    	case <-doneCh:
    		assert.Equal(t, newM, m)
    		assert.Equal(t, w.Mesh(), newM)
    		break
    	case <-time.After(time.Second * 5):
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 3K bytes
    - Viewed (0)
  8. test/fixedbugs/issue59680.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"sync"
    	"time"
    )
    
    type B struct {
    	pid int
    	f   func() (uint64, error)
    	wg  sync.WaitGroup
    	v   uint64
    }
    
    func newB(pid int) *B {
    	return &B{
    		pid: pid,
    	}
    }
    
    //go:noinline
    func Sq(i int) uint64 {
    	S++
    	return uint64(i * i)
    }
    
    type RO func(*B)
    
    var ROSL = []RO{
    	Bad(),
    }
    
    func Bad() RO {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 05 21:04:38 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. test/fixedbugs/issue56778.dir/b.go

    // Copyright 2022 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 b
    
    import "./a"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 17 18:31:28 UTC 2022
    - 203 bytes
    - Viewed (0)
  10. test/fixedbugs/issue46234.go

    }
    
    type R struct {
    	cM *CM
    }
    
    type CM int
    
    type A string
    
    func (m *CM) NewA(ctx context.Context, cN string, nn *nAO, opts ...NAO) (*A, error) {
    	for _, o := range opts {
    		o(nn)
    	}
    	s := A("foo")
    	return &s, nil
    }
    
    func (r *R) CA(ctx context.Context, cN string, nn *nAO) (*int, error) {
    	cA, err := r.cM.NewA(ctx, cN, nn, WEA(), WEA())
    	if err == nil {
    		return nil, err
    	}
    	println(cA)
    	x := int(42)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top