- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for LookupError (0.15 sec)
-
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) -
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) -
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) -
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) -
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) -
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)