Skip to content

Instantly share code, notes, and snippets.

@mkrueger
Created February 24, 2012 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkrueger/1903327 to your computer and use it in GitHub Desktop.
Save mkrueger/1903327 to your computer and use it in GitHub Desktop.
class Rewriter: DepthFirstAstVisitor
{
public override void VisitIdentifier (Identifier identifier)
{
if (identifier.Name == "M")
identifier.ReplaceWith (Identifier.Create ("Main"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment