41 references to TestFlags
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (41)
Semantics\PrimaryConstructorTests.cs (41)
24using static PrimaryConstructorTests.TestFlags;
6510var data = new (string tag, TestFlags flags, string nestedSource)[]
7100public void ParameterScope(string keyword, bool shadow, bool isPartial, bool isRecord, string tag, TestFlags flags, string nestedSource)
7166private static void AssertParameterScope(string keyword, bool shadow, bool isRecord, TestFlags flags, string source)
7168bool isCaptured = !shadow && (flags & TestFlags.Captured) != 0;
7172Assert.Equal((TestFlags)0, flags & TestFlags.NotUsedWarning);
7184if ((flags & TestFlags.NotInScope) != 0)
7195if (shadow && (flags & TestFlags.Shadows) == 0)
7238if (!shadow || (flags & TestFlags.Shadows) != 0)
7240if (!isRecord && (flags & TestFlags.NotUsedWarning) != 0)
7249if ((flags & TestFlags.BadReference) != 0)
7258if ((flags & TestFlags.BadAttributeValue) != 0)
7267if ((flags & TestFlags.BadConstant) != 0)
7276if ((flags & TestFlags.BadDefaultValue) != 0)
7285if ((flags & (TestFlags.InNestedMethod)) != 0 && (flags & TestFlags.BadReference) == 0 && keyword == "struct")
7296if ((flags & TestFlags.BadReference) != 0 &&
7306if ((flags & TestFlags.BadDefaultValue) != 0 &&
7317if ((flags & (TestFlags.BadDefaultValue)) != 0 &&
7318(flags & (TestFlags.InNestedMethod)) == 0 && keyword == "struct" &&
7328if ((flags & (TestFlags.BadReference | TestFlags.BadDefaultValue | TestFlags.BadAttributeValue)) != 0)
7333if ((flags & (TestFlags.InNestedMethod)) != 0 && keyword == "struct" &&
7343if (!isRecord && ((flags & TestFlags.NotUsedWarning) != 0 || (flags & TestFlags.Captured) != 0))
7352if ((flags & TestFlags.BadConstant) != 0)
7362if ((flags & TestFlags.NotInScope) != 0)
7391if ((flags & TestFlags.TwoBodies) != 0)
7398if ((flags & TestFlags.AttributesNotAllowed) != 0)
7411var data = new (string tag, TestFlags flags, string attribute)[]
7437public void ParameterScope_AttributesOnType(string keyword, bool shadow, bool isPartial, bool isRecord, string tag, TestFlags flags, string attribute)
7515var data = new (string tag, TestFlags flags, string attribute)[]
7538public void ParameterScope_AttributesOnParameters(string keyword, bool shadow, bool isRecord, string tag, TestFlags flags, string attribute)
7594var data = new (string tag, TestFlags flags, string attribute)[]
7617public void ParameterScope_DefaultOnParameter(string keyword, bool shadow, bool isRecord, string tag, TestFlags flags, string attribute)
15152var data1 = new (string tag, TestFlags flags, string code, object err)[]
15211var data2 = new (string tag, TestFlags flags, string code, object err)[]
15240public void IllegalCapturingDueToRefness_01(string keyword, string tag, TestFlags flags, string code, object err)
15255if (flags == TestFlags.BadReference)