Documentation ¶
Index ¶
- func NewDirectChildrenListIterator[T psi.Node](c *NodeCollection[T]) iterators.Iterator[T]
- type Collection
- type List
- type NodeCollection
- func (c *NodeCollection[T]) Add(value T) int
- func (c *NodeCollection[T]) Contains(value T) bool
- func (c *NodeCollection[T]) Get(index int) T
- func (c *NodeCollection[T]) IndexOf(value T) int
- func (c *NodeCollection[T]) InsertAt(index int, value T)
- func (c *NodeCollection[T]) Iterator() iterators.Iterator[T]
- func (c *NodeCollection[T]) Length() int
- func (c *NodeCollection[T]) Remove(value T) bool
- func (c *NodeCollection[T]) RemoveAt(index int) T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDirectChildrenListIterator ¶
func NewDirectChildrenListIterator[T psi.Node](c *NodeCollection[T]) iterators.Iterator[T]
Types ¶
type Collection ¶
type List ¶
type List[T any] interface { Collection[T] }
type NodeCollection ¶
func (*NodeCollection[T]) Add ¶
func (c *NodeCollection[T]) Add(value T) int
func (*NodeCollection[T]) Contains ¶
func (c *NodeCollection[T]) Contains(value T) bool
func (*NodeCollection[T]) Get ¶
func (c *NodeCollection[T]) Get(index int) T
func (*NodeCollection[T]) IndexOf ¶
func (c *NodeCollection[T]) IndexOf(value T) int
func (*NodeCollection[T]) InsertAt ¶
func (c *NodeCollection[T]) InsertAt(index int, value T)
func (*NodeCollection[T]) Iterator ¶
func (c *NodeCollection[T]) Iterator() iterators.Iterator[T]
func (*NodeCollection[T]) Length ¶
func (c *NodeCollection[T]) Length() int
func (*NodeCollection[T]) Remove ¶
func (c *NodeCollection[T]) Remove(value T) bool
func (*NodeCollection[T]) RemoveAt ¶
func (c *NodeCollection[T]) RemoveAt(index int) T
Click to show internal directories.
Click to hide internal directories.