Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 105 for typexpr (0.1 sec)

  1. src/go/types/stmt.go

    		switch x.mode {
    		default:
    			if kind == statement {
    				return
    			}
    			msg = "is not used"
    			code = UnusedExpr
    		case builtin:
    			msg = "must be called"
    			code = UncalledBuiltin
    		case typexpr:
    			msg = "is not an expression"
    			code = NotAnExpr
    		}
    		check.errorf(&x, code, "%s %s", &x, msg)
    
    	case *ast.SendStmt:
    		var ch, val operand
    		check.expr(nil, &ch, s.Chan)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    		return ast.NewIdent("nil")
    	case *types.Struct:
    		texpr := TypeExpr(f, pkg, typ) // typ because we want the name here.
    		if texpr == nil {
    			return nil
    		}
    		return &ast.CompositeLit{
    			Type: texpr,
    		}
    	}
    	return nil
    }
    
    // IsZeroValue checks whether the given expression is a 'zero value' (as determined by output of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  3. test/syntax/topexpr.go

    Emmanuel Odeke <******@****.***> 1460323946 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 502 bytes
    - Viewed (0)
  4. analysis/analysis-api/testData/components/compilerFacility/firPluginPrototypeMultiModule/composableInlineFunctionExpressionParameter.ir.txt

    MODULE_FRAGMENT
      FILE fqName:<root> fileName:main.kt
        FUN name:AuthorAndReadTime visibility:public modality:FINAL <> (b:p2.B) returnType:kotlin.Unit
          VALUE_PARAMETER name:b index:0 type:p2.B
          BLOCK_BODY
            CALL 'public final fun Row (a: p2.A, content: @[MyComposable] @[ExtensionFunctionType] kotlin.Function1<p3.RowScope, kotlin.Unit>): kotlin.Unit [inline] declared in p3' type=kotlin.Unit origin=null
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Mar 14 20:08:24 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/net/dns/dnsmessage/message.go

    	TypeCNAME: "TypeCNAME",
    	TypeSOA:   "TypeSOA",
    	TypePTR:   "TypePTR",
    	TypeMX:    "TypeMX",
    	TypeTXT:   "TypeTXT",
    	TypeAAAA:  "TypeAAAA",
    	TypeSRV:   "TypeSRV",
    	TypeOPT:   "TypeOPT",
    	TypeWKS:   "TypeWKS",
    	TypeHINFO: "TypeHINFO",
    	TypeMINFO: "TypeMINFO",
    	TypeAXFR:  "TypeAXFR",
    	TypeALL:   "TypeALL",
    }
    
    // String implements fmt.Stringer.String.
    func (t Type) String() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 00:09:40 UTC 2024
    - 69K bytes
    - Viewed (0)
  6. src/reflect/type_test.go

    	)
    
    	testcases := []struct {
    		wantFrom any
    		got      reflect.Type
    	}{
    		{new(int), reflect.TypeFor[int]()},
    		{new(int64), reflect.TypeFor[int64]()},
    		{new(string), reflect.TypeFor[string]()},
    		{new(mystring), reflect.TypeFor[mystring]()},
    		{new(any), reflect.TypeFor[any]()},
    		{new(myiface), reflect.TypeFor[myiface]()},
    	}
    	for _, tc := range testcases {
    		want := reflect.ValueOf(tc.wantFrom).Elem().Type()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. pilot/pkg/model/extensions.go

    }
    
    func workloadModeForListenerClass(class istionetworking.ListenerClass) typeapi.WorkloadMode {
    	switch class {
    	case istionetworking.ListenerClassGateway:
    		return typeapi.WorkloadMode_CLIENT
    	case istionetworking.ListenerClassSidecarInbound:
    		return typeapi.WorkloadMode_SERVER
    	case istionetworking.ListenerClassSidecarOutbound:
    		return typeapi.WorkloadMode_CLIENT
    	case istionetworking.ListenerClassUndefined:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 11K bytes
    - Viewed (0)
  8. src/cmd/vet/testdata/stdversion/stdversion.go

    package stdversion
    
    import "reflect"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 142 bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/typelink.go

    	"cmd/link/internal/loader"
    	"cmd/link/internal/sym"
    	"sort"
    )
    
    type byTypeStr []typelinkSortKey
    
    type typelinkSortKey struct {
    	TypeStr string
    	Type    loader.Sym
    }
    
    func (s byTypeStr) Less(i, j int) bool { return s[i].TypeStr < s[j].TypeStr }
    func (s byTypeStr) Len() int           { return len(s) }
    func (s byTypeStr) Swap(i, j int)      { s[i], s[j] = s[j], s[i] }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 03 21:13:25 UTC 2020
    - 1.9K bytes
    - Viewed (0)
  10. tests/test_generic_parameterless_depends.py

    from typing import TypeVar
    
    from fastapi import Depends, FastAPI
    from fastapi.testclient import TestClient
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    T = TypeVar("T")
    
    Dep = Annotated[T, Depends()]
    
    
    class A:
        pass
    
    
    class B:
        pass
    
    
    @app.get("/a")
    async def a(dep: Dep[A]):
        return {"cls": dep.__class__.__name__}
    
    
    @app.get("/b")
    async def b(dep: Dep[B]):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:52:56 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top