Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for newD (0.32 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. 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)
  3. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/demo/demoSimple/AssignmentResolverDemo.kt

    import org.gradle.internal.declarativedsl.demo.resolve
    
    
    object AssignmentResolverDemo {
        @JvmStatic
        fun main(args: Array<String>) {
            val resolution = schema.resolve(
                """
                val myD = newD("shared")
    
                val c1 = c(1)
                c1.d = myD
                str = c1.d.id
                """.trimIndent()
            )
            printResolutionResults(resolution)
            printResolvedAssignments(resolution)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 10:53:44 UTC 2024
    - 647 bytes
    - Viewed (0)
  4. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/sample.kt

    package com.example
    
    
    fun Abc.body() {
        val myB = b()
    
        a = myB
        val myD = newD("shared")
    
        c(1) {
            x = f(y)
            d = myD
        }
        c(2) {
            x = f("another test")
            d = myD
        }
    }
    
    
    object Main {
        @JvmStatic
        fun main(args: Array<String>) {
            val receiver = Abc()
            receiver.body()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 01 13:30:30 UTC 2024
    - 425 bytes
    - Viewed (0)
  5. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/demo/demoSimple/AssignmentResolverTest.kt

    import kotlin.test.assertIs
    
    
    object AssignmentResolverTest {
        @Test
        fun `resolves transitive property`() {
            assignmentTrace(
                schema.resolve(
                    """
                    val myD = newD("shared")
                    val c1 = c(1)
                    c1.d = myD
                    str = c1.d.id
                    """.trimIndent()
                )
            ).run {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 10:53:44 UTC 2024
    - 2.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. src/internal/fuzz/encoding_test.go

    			}
    			if err != nil {
    				t.Fatalf("unmarshal unexpected error: %v", err)
    			}
    			newB := marshalCorpusFile(vals...)
    			if newB[len(newB)-1] != '\n' {
    				t.Error("didn't write final newline to corpus file")
    			}
    
    			want := test.want
    			if want == "" {
    				want = test.in
    			}
    			want += "\n"
    			got := string(newB)
    			if got != want {
    				t.Errorf("unexpected marshaled value\ngot:\n%s\nwant:\n%s", got, want)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 00:20:34 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  8. tests/embedded_struct_test.go

    		}
    	}
    
    	// save embedded struct
    	DB.Save(&HNPost{BasePost: BasePost{Title: "news"}})
    	DB.Save(&HNPost{BasePost: BasePost{Title: "hn_news"}})
    	var news HNPost
    	if err := DB.First(&news, "title = ?", "hn_news").Error; err != nil {
    		t.Errorf("no error should happen when query with embedded struct, but got %v", err)
    	} else if news.Title != "hn_news" {
    		t.Errorf("embedded struct's value should be scanned correctly")
    	}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  9. buildscripts/rewrite-old-new.sh

    Harshavardhana <******@****.***> 1716837466 -0700
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 27 19:17:46 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. pilot/pkg/xds/auth.go

    		id, err := checkConnectionIdentity(con.proxy, identities)
    		if err != nil {
    			log.Warnf("Unauthorized XDS: %v with identity %v: %v", con.Peer(), identities, err)
    			return status.Newf(codes.PermissionDenied, "authorization failed: %v", err).Err()
    		}
    		con.proxy.VerifiedIdentity = id
    	}
    	return nil
    }
    
    func checkConnectionIdentity(proxy *model.Proxy, identities []string) (*spiffe.Identity, error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top