method
FieldListSet.Add
Add reports whether fields were not yet in the set, adding them. An empty list is never recorded and always reports true.
Arguments
| Argument | Type | Description |
|---|---|---|
fields | []Field | The fields value. |
Returns
The declared result.
boolFull signature
func (set FieldListSet) Add(fields []Field) boolRelated types
FieldListSetFieldListSet records field lists a definition traversal has entered. A shared definition passes the same slice wherever it is placed, so a traversal that enters each list once does work proportional to definitions.
FieldThe resolved contract for one field.