- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for MethodList (0.1 sec)
-
src/cmd/compile/internal/syntax/positions.go
return n.Pos() // TODO(gri) need to take TagList into account case *Field: if n.Type != nil { m = n.Type continue } m = n.Name case *InterfaceType: if l := lastField(n.MethodList); l != nil { m = l continue } return n.Pos() case *FuncType: if l := lastField(n.ResultList); l != nil { m = l continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 17:49:19 UTC 2024 - 6.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/decl.go
// needs to take care of such type expressions. if op, _ := x.(*syntax.Operation); op != nil && (op.Op == syntax.Tilde || op.Op == syntax.Or) { t := check.typ(&syntax.InterfaceType{MethodList: []*syntax.Field{{Type: x}}}) // mark t as implicit interface if all went well if t, _ := t.(*Interface); t != nil { t.implicit = true } return t } return check.typ(x) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 29.6K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/parser.go
var f *Field if p.tok == _Name { f = p.methodDecl() } if f == nil || f.Name == nil { f = p.embeddedElem(f) } typ.MethodList = append(typ.MethodList, f) return false }) return typ } // Result = Parameters | Type . func (p *parser) funcResult() []*Field { if trace { defer p.trace("funcResult")() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 62.9K bytes - Viewed (0)