Class SourceSlice
java.lang.Object
org.ek9lang.compiler.repair.SourceSlice
- All Implemented Interfaces:
BiFunction<String, org.antlr.v4.runtime.ParserRuleContext, String>
final class SourceSlice
extends Object
implements BiFunction<String, org.antlr.v4.runtime.ParserRuleContext, String>
THE slice of a source text a rule spans, by its tokens' start and stop character indices into that text; null
when the rule has no tokens or the indices fall outside the text (was
StringConcatRewriter.sliceSource,
shared by the rewrite and ConcatChainRenderer). Unlike SourceText it
reads the caller's text, not the token stream, and never falls back to the rule's getText().-
Constructor Details
-
SourceSlice
SourceSlice()
-
-
Method Details
-
apply
-