Пример #1
0
        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();
        }
Пример #2
0
 public void SetupPasses(Driver driver, PassBuilder p)
 {
     p.FunctionToInstanceMethod();
     p.FunctionToStaticMethod();
 }