Documentation ¶
Index ¶
- Variables
- func AvailableContextDebug(required, available map[string]*xtype.Type) []string
- type Arg
- type ArgUse
- type Definition
- type Index
- func (l *Index[T]) ByID(id IndexID) *T
- func (l *Index[T]) Get(sig xtype.Signature, m map[string]*xtype.Type) (*T, error)
- func (l *Index[T]) GetAll() []*T
- func (l *Index[T]) Has(sig xtype.Signature) bool
- func (l *Index[T]) Register(t *T, def *Definition) (IndexID, error)
- func (l *Index[T]) RegisterOverrideOverlapping(t *T, def *Definition)
- func (l *Index[T]) RegisterUpdate(t *T, def *Definition) (IndexID, error)
- type IndexEntry
- type IndexID
- type LocalOpts
- type ParamType
- type Parameters
- type ParseOpts
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyLocalOpts = LocalOpts{Context: map[string]bool{}}
Functions ¶
Types ¶
type Definition ¶
type Definition struct { Parameters OriginID string Call *jen.Statement ID string Package string Name string Generated bool CustomCall *jen.Statement }
func (*Definition) ArgDebug ¶ added in v1.6.0
func (def *Definition) ArgDebug(indent string) string
type Index ¶ added in v1.6.0
type Index[T any] struct { Exact map[xtype.Signature][]IndexEntry[T] Update []*T }
func (*Index[T]) Register ¶ added in v1.6.0
func (l *Index[T]) Register(t *T, def *Definition) (IndexID, error)
func (*Index[T]) RegisterOverrideOverlapping ¶ added in v1.6.0
func (l *Index[T]) RegisterOverrideOverlapping(t *T, def *Definition)
func (*Index[T]) RegisterUpdate ¶ added in v1.6.0
func (l *Index[T]) RegisterUpdate(t *T, def *Definition) (IndexID, error)
type IndexEntry ¶ added in v1.6.0
type IndexEntry[T any] struct { Def *Definition Item *T }
type Parameters ¶
Click to show internal directories.
Click to hide internal directories.