Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for fieldValue (0.18 sec)

  1. src/go/types/expr.go

    				// all elements must have keys
    				visited := make([]bool, len(fields))
    				for _, e := range e.Elts {
    					kv, _ := e.(*ast.KeyValueExpr)
    					if kv == nil {
    						check.error(e, MixedStructLit, "mixture of field:value and value elements in struct literal")
    						continue
    					}
    					key, _ := kv.Key.(*ast.Ident)
    					// do all possible checks early (before exiting due to errors)
    					// so we don't drop information on the floor
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/expr.go

    				visited := make([]bool, len(fields))
    				for _, e := range e.ElemList {
    					kv, _ := e.(*syntax.KeyValueExpr)
    					if kv == nil {
    						check.error(e, MixedStructLit, "mixture of field:value and value elements in struct literal")
    						continue
    					}
    					key, _ := kv.Key.(*syntax.Name)
    					// do all possible checks early (before exiting due to errors)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
Back to top