41 references to TestFlags
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (41)
Semantics\PrimaryConstructorTests.cs (41)
25using static PrimaryConstructorTests.TestFlags;
7126var data = new (string tag, TestFlags flags, string nestedSource)[]
7716public void ParameterScope(string keyword, bool shadow, bool isPartial, bool isRecord, string tag, TestFlags flags, string nestedSource)
7782private static void AssertParameterScope(string keyword, bool shadow, bool isRecord, TestFlags flags, string source)
7784bool isCaptured = !shadow && (flags & TestFlags.Captured) != 0;
7788Assert.Equal((TestFlags)0, flags & TestFlags.NotUsedWarning);
7800if ((flags & TestFlags.NotInScope) != 0)
7811if (shadow && (flags & TestFlags.Shadows) == 0)
7854if (!shadow || (flags & TestFlags.Shadows) != 0)
7856if (!isRecord && (flags & TestFlags.NotUsedWarning) != 0)
7865if ((flags & TestFlags.BadReference) != 0)
7874if ((flags & TestFlags.BadAttributeValue) != 0)
7883if ((flags & TestFlags.BadConstant) != 0)
7892if ((flags & TestFlags.BadDefaultValue) != 0)
7901if ((flags & (TestFlags.InNestedMethod)) != 0 && (flags & TestFlags.BadReference) == 0 && keyword == "struct")
7912if ((flags & TestFlags.BadReference) != 0 &&
7922if ((flags & TestFlags.BadDefaultValue) != 0 &&
7933if ((flags & (TestFlags.BadDefaultValue)) != 0 &&
7934(flags & (TestFlags.InNestedMethod)) == 0 && keyword == "struct" &&
7944if ((flags & (TestFlags.BadReference | TestFlags.BadDefaultValue | TestFlags.BadAttributeValue)) != 0)
7949if ((flags & (TestFlags.InNestedMethod)) != 0 && keyword == "struct" &&
7959if (!isRecord && ((flags & TestFlags.NotUsedWarning) != 0 || (flags & TestFlags.Captured) != 0))
7968if ((flags & TestFlags.BadConstant) != 0)
7978if ((flags & TestFlags.NotInScope) != 0)
8007if ((flags & TestFlags.TwoBodies) != 0)
8014if ((flags & TestFlags.AttributesNotAllowed) != 0)
8027var data = new (string tag, TestFlags flags, string attribute)[]
8053public void ParameterScope_AttributesOnType(string keyword, bool shadow, bool isPartial, bool isRecord, string tag, TestFlags flags, string attribute)
8131var data = new (string tag, TestFlags flags, string attribute)[]
8154public void ParameterScope_AttributesOnParameters(string keyword, bool shadow, bool isRecord, string tag, TestFlags flags, string attribute)
8210var data = new (string tag, TestFlags flags, string attribute)[]
8233public void ParameterScope_DefaultOnParameter(string keyword, bool shadow, bool isRecord, string tag, TestFlags flags, string attribute)
20012var data1 = new (string tag, TestFlags flags, string code, object err)[]
20071var data2 = new (string tag, TestFlags flags, string code, object err)[]
20100public void IllegalCapturingDueToRefness_01(string keyword, string tag, TestFlags flags, string code, object err)
20115if (flags == TestFlags.BadReference)