41 references to TestFlags
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (41)
Semantics\PrimaryConstructorTests.cs (41)
24using static PrimaryConstructorTests.TestFlags; 7125var data = new (string tag, TestFlags flags, string nestedSource)[] 7715public void ParameterScope(string keyword, bool shadow, bool isPartial, bool isRecord, string tag, TestFlags flags, string nestedSource) 7781private static void AssertParameterScope(string keyword, bool shadow, bool isRecord, TestFlags flags, string source) 7783bool isCaptured = !shadow && (flags & TestFlags.Captured) != 0; 7787Assert.Equal((TestFlags)0, flags & TestFlags.NotUsedWarning); 7799if ((flags & TestFlags.NotInScope) != 0) 7810if (shadow && (flags & TestFlags.Shadows) == 0) 7853if (!shadow || (flags & TestFlags.Shadows) != 0) 7855if (!isRecord && (flags & TestFlags.NotUsedWarning) != 0) 7864if ((flags & TestFlags.BadReference) != 0) 7873if ((flags & TestFlags.BadAttributeValue) != 0) 7882if ((flags & TestFlags.BadConstant) != 0) 7891if ((flags & TestFlags.BadDefaultValue) != 0) 7900if ((flags & (TestFlags.InNestedMethod)) != 0 && (flags & TestFlags.BadReference) == 0 && keyword == "struct") 7911if ((flags & TestFlags.BadReference) != 0 && 7921if ((flags & TestFlags.BadDefaultValue) != 0 && 7932if ((flags & (TestFlags.BadDefaultValue)) != 0 && 7933(flags & (TestFlags.InNestedMethod)) == 0 && keyword == "struct" && 7943if ((flags & (TestFlags.BadReference | TestFlags.BadDefaultValue | TestFlags.BadAttributeValue)) != 0) 7948if ((flags & (TestFlags.InNestedMethod)) != 0 && keyword == "struct" && 7958if (!isRecord && ((flags & TestFlags.NotUsedWarning) != 0 || (flags & TestFlags.Captured) != 0)) 7967if ((flags & TestFlags.BadConstant) != 0) 7977if ((flags & TestFlags.NotInScope) != 0) 8006if ((flags & TestFlags.TwoBodies) != 0) 8013if ((flags & TestFlags.AttributesNotAllowed) != 0) 8026var data = new (string tag, TestFlags flags, string attribute)[] 8052public void ParameterScope_AttributesOnType(string keyword, bool shadow, bool isPartial, bool isRecord, string tag, TestFlags flags, string attribute) 8130var data = new (string tag, TestFlags flags, string attribute)[] 8153public void ParameterScope_AttributesOnParameters(string keyword, bool shadow, bool isRecord, string tag, TestFlags flags, string attribute) 8209var data = new (string tag, TestFlags flags, string attribute)[] 8232public void ParameterScope_DefaultOnParameter(string keyword, bool shadow, bool isRecord, string tag, TestFlags flags, string attribute) 19963var data1 = new (string tag, TestFlags flags, string code, object err)[] 20022var data2 = new (string tag, TestFlags flags, string code, object err)[] 20051public void IllegalCapturingDueToRefness_01(string keyword, string tag, TestFlags flags, string code, object err) 20066if (flags == TestFlags.BadReference)