15 references to AsyncBuilderCode
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (15)
CodeGen\CodeGenAsyncTests.cs (15)
3771{AsyncBuilderCode("B0", "T0").Replace("public static B0 Create()", "public static B0 Create()")} 3772{AsyncBuilderCode("B1", "T1").Replace("public static B1 Create()", "private static B1 Create()")} 3773{AsyncBuilderCode("B2", "T2").Replace("public static B2 Create() => default(B2);", "public static void Create() { }")} 3774{AsyncBuilderCode("B3", "T3").Replace("public static B3 Create() => default(B3);", "public static B1 Create() => default(B1);")} 3775{AsyncBuilderCode("B4", "T4").Replace("public static B4 Create()", "public static B4 Create(int i)")} 3776{AsyncBuilderCode("B5", "T5").Replace("public static B5 Create()", "public static B5 Create<T>()")} 3777{AsyncBuilderCode("B6", "T6").Replace("public static B6 Create()", "public static B6 Create(object arg = null)")} 3778{AsyncBuilderCode("B7", "T7").Replace("public static B7 Create()", "public static B7 Create(params object[] arg)")} 3779{AsyncBuilderCode("B8", "T8").Replace("public static B8 Create()", "public B8 Create()")} 3829{AsyncBuilderCode("B0", "I0", genericTypeParameter: null)} 3830{AsyncBuilderCode("B1", "I1", genericTypeParameter: "T")} 3852{AsyncBuilderCode("B1", "T1").Replace("public class B1", "public class B1")} 3853{AsyncBuilderCode("B2", "T2").Replace("public class B2", "internal class B2")} 3854{AsyncBuilderCode("B3", "T3").Replace("public class B3", "public class B3").Replace("public T3 Task { get; }", "internal T3 Task {get; }")} 3855{AsyncBuilderCode("B4", "T4").Replace("public class B4", "internal class B4")}