Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for LookupError (0.3 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/egressselector/egress_selector_test.go

    				if lookupErr == nil && service.lookupError != nil {
    					t.Errorf("calling Lookup expected error: %s, did not get it", *service.lookupError)
    				}
    				if lookupErr != nil && service.lookupError == nil {
    					t.Errorf("unexpected error calling Lookup got: %#v", lookupErr)
    				}
    				if lookupErr != nil && service.lookupError != nil && lookupErr.Error() != *service.lookupError {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 26 22:41:29 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/errsupport.go

    // This file implements support functions for error messages.
    
    package types2
    
    // lookupError returns a case-specific error when a lookup of selector sel in the
    // given type fails but an object with alternative spelling (case folding) is found.
    // If structLit is set, the error message is specifically for struct literal fields.
    func (check *Checker) lookupError(typ Type, sel string, obj Object, structLit bool) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 07 16:41:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. src/go/types/errsupport.go

    // This file implements support functions for error messages.
    
    package types
    
    // lookupError returns a case-specific error when a lookup of selector sel in the
    // given type fails but an object with alternative spelling (case folding) is found.
    // If structLit is set, the error message is specifically for struct literal fields.
    func (check *Checker) lookupError(typ Type, sel string, obj Object, structLit bool) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/call.go

    		}
    
    		var why string
    		if isInterfacePtr(x.typ) {
    			why = check.interfacePtrError(x.typ)
    		} else {
    			alt, _, _ := lookupFieldOrMethod(x.typ, x.mode == variable, check.pkg, sel, true)
    			why = check.lookupError(x.typ, sel, alt, false)
    		}
    		check.errorf(e.Sel, MissingFieldOrMethod, "%s.%s undefined (%s)", x.expr, sel, why)
    		goto Error
    	}
    
    	// methods may not have a fully set up signature yet
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  5. src/go/types/call.go

    		}
    
    		var why string
    		if isInterfacePtr(x.typ) {
    			why = check.interfacePtrError(x.typ)
    		} else {
    			alt, _, _ := lookupFieldOrMethod(x.typ, x.mode == variable, check.pkg, sel, true)
    			why = check.lookupError(x.typ, sel, alt, false)
    		}
    		check.errorf(e.Sel, MissingFieldOrMethod, "%s.%s undefined (%s)", x.expr, sel, why)
    		goto Error
    	}
    
    	// methods may not have a fully set up signature yet
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfr/python/tfr_gen.py

          self.symbol_table.insert_symbol(node.name, node, None)
          return
        op_name = op_def.name
        if self.symbol_table.lookup(op_name):
          raise LookupError('Composition has not been registered for op: ' +
                            op_name)
        else:
          self.symbol_table.insert_symbol(node.name, None, None)
    
        self.symbol_table.enter_scope()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 27 15:27:03 UTC 2022
    - 55.8K bytes
    - Viewed (0)
  7. src/go/types/expr.go

    					if i < 0 {
    						var alt Object
    						if j := fieldIndex(fields, check.pkg, key.Name, true); j >= 0 {
    							alt = fields[j]
    						}
    						msg := check.lookupError(base, key.Name, alt, true)
    						check.error(kv.Key, MissingLitField, msg)
    						continue
    					}
    					fld := fields[i]
    					check.recordUse(key, fld)
    					etyp := fld.typ
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/expr.go

    					if i < 0 {
    						var alt Object
    						if j := fieldIndex(fields, check.pkg, key.Value, true); j >= 0 {
    							alt = fields[j]
    						}
    						msg := check.lookupError(base, key.Value, alt, true)
    						check.error(kv.Key, MissingLitField, msg)
    						continue
    					}
    					fld := fields[i]
    					check.recordUse(key, fld)
    					etyp := fld.typ
    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