Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for varType (0.08 sec)

  1. src/go/types/struct.go

    	// (go.dev/issue/25627).
    	addInvalid := func(ident *ast.Ident) {
    		typ = Typ[Invalid]
    		tag = ""
    		add(ident, true)
    	}
    
    	for _, f := range list.List {
    		typ = check.varType(f.Type)
    		tag = check.tag(f.Tag)
    		if len(f.Names) > 0 {
    			// named fields
    			for _, name := range f.Names {
    				add(name, false)
    			}
    		} else {
    			// embedded field
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/struct.go

    	for i, f := range e.FieldList {
    		// Fields declared syntactically with the same type (e.g.: a, b, c T)
    		// share the same type expression. Only check type if it's a new type.
    		if i == 0 || f.Type != prev {
    			typ = check.varType(f.Type)
    			prev = f.Type
    		}
    		tag = ""
    		if i < len(e.TagList) {
    			tag = check.tag(e.TagList[i])
    		}
    		if f.Name != nil {
    			// named field
    			add(f.Name, false)
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/openapi/compiling_test.go

    func buildTestEnv() (*cel.Env, error) {
    	fooType := common.SchemaDeclType(simpleMapSchema("foo", spec.StringProperty()), true).MaybeAssignTypeName("fooType")
    	barType := common.SchemaDeclType(simpleMapSchema("bar", spec.Int64Property()), true).MaybeAssignTypeName("barType")
    
    	env, err := environment.MustBaseEnvSet(environment.DefaultCompatibilityVersion(), true).Extend(
    		environment.VersionedOptions{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top