Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for addInvalid (0.1 sec)

  1. src/go/types/struct.go

    			fields = append(fields, fld)
    			check.recordDef(ident, fld)
    		}
    	}
    
    	// addInvalid adds an embedded field of invalid type to the struct for
    	// fields with errors; this keeps the number of struct fields in sync
    	// with the source as long as the fields are _ or have different names
    	// (go.dev/issue/25627).
    	addInvalid := func(ident *ast.Ident) {
    		typ = Typ[Invalid]
    		tag = ""
    		add(ident, true)
    	}
    
    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

    			fields = append(fields, fld)
    			check.recordDef(ident, fld)
    		}
    	}
    
    	// addInvalid adds an embedded field of invalid type to the struct for
    	// fields with errors; this keeps the number of struct fields in sync
    	// with the source as long as the fields are _ or have different names
    	// (go.dev/issue/25627).
    	addInvalid := func(ident *syntax.Name) {
    		typ = Typ[Invalid]
    		tag = ""
    		add(ident, true)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top