41 references to TestFlags
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (41)
Semantics\PrimaryConstructorTests.cs (41)
25using static PrimaryConstructorTests.TestFlags; 7266var data = new (string tag, TestFlags flags, string nestedSource)[] 7856public void ParameterScope(string keyword, bool shadow, bool isPartial, bool isRecord, string tag, TestFlags flags, string nestedSource) 7922private static void AssertParameterScope(string keyword, bool shadow, bool isRecord, TestFlags flags, string source) 7924bool isCaptured = !shadow && (flags & TestFlags.Captured) != 0; 7928Assert.Equal((TestFlags)0, flags & TestFlags.NotUsedWarning); 7940if ((flags & TestFlags.NotInScope) != 0) 7951if (shadow && (flags & TestFlags.Shadows) == 0) 7994if (!shadow || (flags & TestFlags.Shadows) != 0) 7996if (!isRecord && (flags & TestFlags.NotUsedWarning) != 0) 8005if ((flags & TestFlags.BadReference) != 0) 8014if ((flags & TestFlags.BadAttributeValue) != 0) 8023if ((flags & TestFlags.BadConstant) != 0) 8032if ((flags & TestFlags.BadDefaultValue) != 0) 8041if ((flags & (TestFlags.InNestedMethod)) != 0 && (flags & TestFlags.BadReference) == 0 && keyword == "struct") 8052if ((flags & TestFlags.BadReference) != 0 && 8062if ((flags & TestFlags.BadDefaultValue) != 0 && 8073if ((flags & (TestFlags.BadDefaultValue)) != 0 && 8074(flags & (TestFlags.InNestedMethod)) == 0 && keyword == "struct" && 8084if ((flags & (TestFlags.BadReference | TestFlags.BadDefaultValue | TestFlags.BadAttributeValue)) != 0) 8089if ((flags & (TestFlags.InNestedMethod)) != 0 && keyword == "struct" && 8099if (!isRecord && ((flags & TestFlags.NotUsedWarning) != 0 || (flags & TestFlags.Captured) != 0)) 8108if ((flags & TestFlags.BadConstant) != 0) 8118if ((flags & TestFlags.NotInScope) != 0) 8147if ((flags & TestFlags.TwoBodies) != 0) 8154if ((flags & TestFlags.AttributesNotAllowed) != 0) 8167var data = new (string tag, TestFlags flags, string attribute)[] 8193public void ParameterScope_AttributesOnType(string keyword, bool shadow, bool isPartial, bool isRecord, string tag, TestFlags flags, string attribute) 8271var data = new (string tag, TestFlags flags, string attribute)[] 8294public void ParameterScope_AttributesOnParameters(string keyword, bool shadow, bool isRecord, string tag, TestFlags flags, string attribute) 8350var data = new (string tag, TestFlags flags, string attribute)[] 8373public void ParameterScope_DefaultOnParameter(string keyword, bool shadow, bool isRecord, string tag, TestFlags flags, string attribute) 20152var data1 = new (string tag, TestFlags flags, string code, object err)[] 20211var data2 = new (string tag, TestFlags flags, string code, object err)[] 20240public void IllegalCapturingDueToRefness_01(string keyword, string tag, TestFlags flags, string code, object err) 20255if (flags == TestFlags.BadReference)