Class SyntheticMapRemoval

  • All Implemented Interfaces:
    CommandVisitor, EmitterVisitor

    public final class SyntheticMapRemoval
    extends TrackingVisitor<MapLiteral>
    implements EmitterVisitor
    This optimization handles variables initialized to map literals. It initially assigns the values in the map to variables and wherever the map literal is accessed, the property access is replaced with the value variable, thus removing the need for a map lookup.