Class Locations


  • public final class Locations
    extends Object
    Helpers for carrying SourceLocation provenance across statement rewrites.
    • Method Detail

      • copy

        public static void copy​(Statement from,
                                Statement to)
        Carries offset provenance across a 1:1 statement rewrite, doing nothing if either side is null or the source location has no bytecode offset.
        Parameters:
        from - statement supplying the location
        to - statement receiving it