MCPcopy
hub / github.com/MadAppGang/dingo / RangePattern

Struct RangePattern

pkg/ast/pattern.go:70–75  ·  view source on GitHub ↗

RangePattern represents numeric range: 1..10, 'a'..'z' Used for matching values within a range

Source from the content-addressed store, hash-verified

68// RangePattern represents numeric range: 1..10, 'a'..'z'
69// Used for matching values within a range
70type 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
77func (p *RangePattern) PatternNode() {}
78func (p *RangePattern) Pos() token.Pos {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected