Skip to content

Refactor idea: Define stages, unify the interfaces #11

@xiaomi7732

Description

@xiaomi7732

Shall we unify all PreFilter, Parser, Beautifiers and Filters into:

IFilter
{
    enum Stage { get; }    // PreFiltering, Parsing, Beautifying, Filtering...
    int Priority { get; }     // Priority within the stage;
}
  • The engine doesn't need to predefine the stages any more.
  • It picks up all the registered filters, sort them by Stage then by Priority, and runs them though totally.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions