RangePattern represents numeric range: 1..10, 'a'..'z' Used for matching values within a range
| 68 | // RangePattern represents numeric range: 1..10, 'a'..'z' |
| 69 | // Used for matching values within a range |
| 70 | type RangePattern struct { |
| 71 | Start Pattern // Start of range (literal) |
| 72 | DotDot token.Pos // Position of '..' |
| 73 | EndValue Pattern // End of range (literal) |
| 74 | Inclusive bool // true for ..=, false for .. |
| 75 | } |
| 76 | |
| 77 | func (p *RangePattern) PatternNode() {} |
| 78 | func (p *RangePattern) Pos() token.Pos { |
nothing calls this directly
no outgoing calls
no test coverage detected