public void SetupPasses(Driver driver, PassBuilder builder) { const RenameTargets renameTargets = RenameTargets.Function | RenameTargets.Method | RenameTargets.Field; builder.RenameDeclsCase(renameTargets, RenameCasePattern.UpperCamelCase); builder.FindEvents(driver.TypeDatabase); builder.FunctionToInstanceMethod(); builder.FunctionToStaticMethod(); builder.CheckDuplicateNames(); }
public void SetupPasses(Driver driver, PassBuilder p) { p.FunctionToInstanceMethod(); p.FunctionToStaticMethod(); }