public static T WithCS0104Handler <T>(this CompilerTemplate <T> template, params string[] usings) where T : CompilerTemplate <T>, new() { AmbiguityUsings._usingsCache[template.AssemblyBuilder.Compiler.Compilation] = new HashSet <string>(usings); template.AssemblyBuilder.Compiler.AppendSemanticAnalysistor(AmbiguityUsings.UsingsCreator()); return(template.Link); }
public static T WithFirstArgInvisible <T>(this CompilerTemplate <T> template, string argument) where T : CompilerTemplate <T>, new() { template.AssemblyBuilder.AddSemanticAnalysistor(InvisibleInstance.Creator(argument)); return(template.Link); }