MCPcopy Create free account
hub / github.com/coder/guts / TypeParameter

Struct TypeParameter

bindings/declarations.go:53–60  ·  view source on GitHub ↗

TypeParameter are generics in Go Foo[T comparable] -> - name: T - Modifiers: [] - Type: Comparable - DefaultType: nil

Source from the content-addressed store, hash-verified

51// - Type: Comparable
52// - DefaultType: nil
53type TypeParameter struct {
54 Name Identifier
55 Modifiers []Modifier
56 Type ExpressionType
57 // DefaultType does not map to any Golang concepts and will never be
58 // used.
59 DefaultType ExpressionType
60}
61
62func (p *TypeParameter) isNode() {}
63

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected