Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for mkstruct (0.16 sec)

  1. test/typeparam/struct.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"fmt"
    )
    
    type E[T any] struct {
    	v T
    }
    
    type S1 struct {
    	E[int]
    	v string
    }
    
    type Eint = E[int]
    type Ebool = E[bool]
    type Eint2 = Eint
    
    type S2 struct {
    	Eint
    	Ebool
    	v string
    }
    
    type S3 struct {
    	*E[int]
    }
    
    func main() {
    	s1 := S1{Eint{2}, "foo"}
    	if got, want := s1.E.v, 2; got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 16:29:58 UTC 2024
    - 801 bytes
    - Viewed (0)
  2. pkg/slices/slices_test.go

    			}
    		})
    	}
    }
    
    // nolint: unused
    type myStruct struct {
    	a, b, c, d string
    	n          int
    }
    
    func makeRandomStructs(n int) []*myStruct {
    	rand.Seed(42) // nolint: staticcheck
    	structs := make([]*myStruct, n)
    	for i := 0; i < n; i++ {
    		structs[i] = &myStruct{n: rand.Intn(n)} // nolint: gosec
    	}
    	return structs
    }
    
    const N = 100_000
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/symbols/KtFirDestructuringDeclarationSymbol.kt

        override val analysisSession: KaFirSession,
    ) : KaDestructuringDeclarationSymbol(), KaFirSymbol<FirVariableSymbol<*>> {
    
        init {
            require(firSymbol.name == SpecialNames.DESTRUCT)
        }
    
        override val psi: KtDestructuringDeclaration
            get() = withValidityAssertion {
                when (val psi = firSymbol.fir.psi) {
                    is KtDestructuringDeclaration -> psi
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/copyelim.go

    				// This is an early place in SSA where all values are examined.
    				// Rewrite all 0-sized Go values to remove accessors, dereferences, loads, etc.
    				if t := v.Type; (t.IsStruct() || t.IsArray()) && t.Size() == 0 {
    					if t.IsStruct() {
    						v.reset(OpStructMake0)
    					} else {
    						v.reset(OpArrayMake0)
    					}
    				}
    				// Modify all values so no arg (including args
    				// of OpCopy) is a copy.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:55:18 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/psiBased/KtFe10PsiDestructuringDeclarationSymbol.kt

            KaPsiBasedSymbolPointer.createForSymbolFromSource<KaDestructuringDeclarationSymbol>(this)?.let { return it }
            throw CanNotCreateSymbolPointerForLocalLibraryDeclarationException(SpecialNames.DESTRUCT.asString())
        }
    
        override fun equals(other: Any?): Boolean {
            if (this === other) return true
            return other is KaFe10PsiDestructuringDeclarationSymbol && other.psi == this.psi
        }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu May 23 17:29:30 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/psiBased/KtFe10PsiValueParameterSymbol.kt

                return type?.toKtType(analysisContext) ?: createErrorType()
            }
    
        override val name: Name
            get() = withValidityAssertion {
                if (psi.destructuringDeclaration != null) SpecialNames.DESTRUCT
                else psi.nameAsSafeName
            }
    
        override fun createPointer(): KaSymbolPointer<KaValueParameterSymbol> = withValidityAssertion {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/body-multiple-params.md

    If you declare it as is, because it is a singular value, **FastAPI** will assume that it is a query parameter.
    
    But you can instruct **FastAPI** to treat it as another body key using `Body`:
    
    === "Python 3.10+"
    
        ```Python hl_lines="23"
        {!> ../../../docs_src/body_multiple_params/tutorial003_an_py310.py!}
        ```
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Jun 09 02:01:51 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  8. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/health/gc/GarbageCollectorMonitoringStrategy.java

            // TODO: These messages we print below are not actionable. Ideally, we would instruct the user to file an issue
            // noting the GC parameters they are using so that we can add that GC to our STRATEGIES.
            if (gcStrategy == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 05 22:23:18 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  9. src/go/doc/reader.go

    // reader.lookupType.
    type namedType struct {
    	doc  string       // doc comment for type
    	name string       // type name
    	decl *ast.GenDecl // nil if declaration hasn't been seen yet
    
    	isEmbedded bool        // true if this type is embedded
    	isStruct   bool        // true if this type is a struct
    	embedded   embeddedSet // true if the embedded type is a pointer
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  10. pkg/kube/inject/inject.go

    	metadata := &params.pod.ObjectMeta
    	cluster := params.valuesConfig.asStruct.GetGlobal().GetMultiCluster().GetClusterName()
    	// TODO allow overriding the values.global network in injection with the system namespace label
    	network := params.valuesConfig.asStruct.GetGlobal().GetNetwork()
    	// params may be set from webhook URL, take priority over values yaml
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 20:35:11 UTC 2024
    - 28.8K bytes
    - Viewed (0)
Back to top