Sha256: 6f062488a304295da4684dd6cfa57f858a0726fd0f50a5e3948246b234ae65f9
Contents?: true
Size: 491 Bytes
Versions: 14
Compression:
Stored size: 491 Bytes
Contents
module Antlr4::Runtime class RangeTransition < Transition attr_reader :from attr_reader :to def initialize(target, from, to) super(target) @from = from @to = to end def serialization_type RANGE end def label IntervalSet.of(@from, @to) end def matches(symbol, _min_vocab_symbol, _max_vocab_symbol) symbol >= @from && symbol <= @to end def to_s "'" << @from << "'..'" << @to << "'" end end end
Version data entries
14 entries across 14 versions & 1 rubygems