RestPattern represents rest pattern in slice/array: [a, b, ...rest] Matches remaining elements in sequence patterns
| 35 | // RestPattern represents rest pattern in slice/array: [a, b, ...rest] |
| 36 | // Matches remaining elements in sequence patterns |
| 37 | type RestPattern struct { |
| 38 | Dots token.Pos // Position of '...' |
| 39 | Name *string // Optional variable name (nil for anonymous ...) |
| 40 | } |
| 41 | |
| 42 | func (p *RestPattern) PatternNode() {} |
| 43 | func (p *RestPattern) Pos() token.Pos { |
nothing calls this directly
no outgoing calls
no test coverage detected