- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 172 for unnamed1 (0.13 sec)
-
src/cmd/compile/internal/ir/fmt.go
} else { fmt.Fprintf(s, "%v(%v)", typ, val) } case ODCLFUNC: n := n.(*Func) if sym := n.Sym(); sym != nil { fmt.Fprint(s, sym) return } fmt.Fprintf(s, "<unnamed Func>") case ONAME: n := n.(*Name) // Special case: name used as local variable in export. // _ becomes ~b%d internally; print as _ for export
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 15:20:28 UTC 2023 - 26K bytes - Viewed (0) -
src/encoding/gob/type.go
// Expecting to be used only during initialization, it panics if the mapping // between types and names is not a bijection. func Register(value any) { // Default to printed representation for unnamed types rt := reflect.TypeOf(value) name := rt.String() // But for named types (or pointers to them), qualify with import path (but see inner comment). // Dereference one pointer looking for a named type.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 02:00:26 UTC 2024 - 27.2K bytes - Viewed (0) -
src/cmd/vendor/github.com/ianlancetaylor/demangle/ast.go
} // UnnamedType is an unnamed type, that just has an index. type UnnamedType struct { Num int } func (ut *UnnamedType) print(ps *printState) { if ps.llvmStyle { if ut.Num == 0 { ps.writeString("'unnamed'") } else { ps.writeString(fmt.Sprintf("'unnamed%d'", ut.Num-1)) } } else { ps.writeString(fmt.Sprintf("{unnamed type#%d}", ut.Num+1)) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 105.8K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/func.go
// case) [3]unsafe.Pointer instead, but that would leave the gc in // the dark. The information appears in the binary in the form of // type descriptors; the struct is unnamed and uses exported field // names so that closures in multiple packages with the same struct // type can share the descriptor. fields := make([]*types.Field, 1+len(clo.Func.ClosureVars))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 06 15:23:18 UTC 2024 - 21.1K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/parser.go
list = append(list, par) } return false }) if len(list) == 0 { return } // distribute parameter types (len(list) > 0) if named == 0 && !requireNames { // all unnamed and we're not in a type parameter list => found names are named types for _, par := range list { if typ := par.Name; typ != nil { par.Type = typ par.Name = nil } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 62.9K bytes - Viewed (0) -
src/go/types/issues_test.go
// P where P's core type is string { P := NewTypeName(nopos, nil, "P", nil) // [P string] makeSig(NewTypeParam(P, NewInterfaceType(nil, []Type{Typ[String]}))) } // P where P's core type is an (unnamed) slice { P := NewTypeName(nopos, nil, "P", nil) // [P []int] makeSig(NewTypeParam(P, NewInterfaceType(nil, []Type{NewSlice(Typ[Int])}))) } // P where P's core type is bytestring (i.e., string or []byte)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
src/go/types/unify.go
// // Similarly, if we have inexact unification and there are no defined types but // channel types, select a directed channel, if any. This ensures that in a series // of unnamed types, all matching against the same type parameter, we infer the // directed channel if there is one, independent of order. // Selecting a directional channel, if any, ensures that a value of another
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 16:24:39 UTC 2024 - 27.9K bytes - Viewed (0) -
src/cmd/compile/internal/types2/issues_test.go
// P where P's core type is string { P := NewTypeName(nopos, nil, "P", nil) // [P string] makeSig(NewTypeParam(P, NewInterfaceType(nil, []Type{Typ[String]}))) } // P where P's core type is an (unnamed) slice { P := NewTypeName(nopos, nil, "P", nil) // [P []int] makeSig(NewTypeParam(P, NewInterfaceType(nil, []Type{NewSlice(Typ[Int])}))) } // P where P's core type is bytestring (i.e., string or []byte)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/unify.go
// // Similarly, if we have inexact unification and there are no defined types but // channel types, select a directed channel, if any. This ensures that in a series // of unnamed types, all matching against the same type parameter, we infer the // directed channel if there is one, independent of order. // Selecting a directional channel, if any, ensures that a value of another
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 16:24:39 UTC 2024 - 27.8K bytes - Viewed (0) -
src/go/ast/ast.go
// Expressions and types // A Field represents a Field declaration list in a struct type, // a method list in an interface type, or a parameter/result declaration // in a signature. // [Field.Names] is nil for unnamed parameters (parameter lists which only contain types) // and embedded struct fields. In the latter case, the field name is the type name. type Field struct { Doc *CommentGroup // associated documentation; or nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 28 21:32:41 UTC 2024 - 35.6K bytes - Viewed (0)