Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Commit

Permalink
Generators now have a Process method to be able to do any custom proc…
Browse files Browse the repository at this point in the history
…essing.
  • Loading branch information
tritao committed Jul 14, 2013
1 parent c3ac9e7 commit 4e45521
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Generator/Driver.cs
Expand Up @@ -115,6 +115,8 @@ public void ProcessCode()
{
foreach (var pass in Passes.Passes)
pass.VisitLibrary(Library);

Generator.Process();
}

public List<GeneratorOutput> GenerateCode()
Expand Down
7 changes: 7 additions & 0 deletions src/Generator/Generators/Generator.cs
Expand Up @@ -50,6 +50,13 @@ protected Generator(Driver driver)
/// </summary>
public abstract bool SetupPasses(PassBuilder builder);

/// <summary>
/// Setup any generator-specific processing here.
/// </summary>
public virtual void Process()
{

}

/// <summary>
/// Generates the outputs.
Expand Down

0 comments on commit 4e45521

Please sign in to comment.