Class SegmentedSourceMapper
java.lang.Object
io.github.protasm.jvmud.compiler.sourcepos.SegmentedSourceMapper
- All Implemented Interfaces:
SourceMapper
Mapping implementation that tracks contiguous segments of generated text back to original
LineMaps.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionoriginalPos(int generatedOffset) Map an offset in the generated text back to its originalSourcePos.originalSpan(int generatedStart, int generatedEnd) Map a half-open range[generatedStart, generatedEnd)in the generated text back to an originalSourceSpan.
-
Method Details
-
originalPos
Description copied from interface:SourceMapperMap an offset in the generated text back to its originalSourcePos.- Specified by:
originalPosin interfaceSourceMapper
-
originalSpan
Description copied from interface:SourceMapperMap a half-open range[generatedStart, generatedEnd)in the generated text back to an originalSourceSpan.- Specified by:
originalSpanin interfaceSourceMapper
-