You've already forked adareducer
mirror of
https://github.com/AdaCore/adareducer.git
synced 2026-02-12 13:10:07 -08:00
For the benefit of the development environment, or any users who only "git clone" this repository and work from it. Fix the testsuite using this. Rename the "adareducer" source dir to "ada_reducer"
27 lines
538 B
Python
27 lines
538 B
Python
class ChunkInterface(object):
|
|
"""One atomic actionable/undoable operation"""
|
|
|
|
def __init__(self):
|
|
pass
|
|
|
|
def do(self):
|
|
"""Apply the modification"""
|
|
pass
|
|
|
|
def undo(self):
|
|
"""Undo the modification"""
|
|
pass
|
|
|
|
|
|
class StrategyInterface(object):
|
|
"""Interface for reducing strategies"""
|
|
|
|
def __init__(self):
|
|
pass
|
|
|
|
def run_on_file(self, unit, lines, predicate):
|
|
"""Run the strategy on unit, modifying lines.
|
|
Return StrategyStats
|
|
"""
|
|
pass
|