41 references to TestFlags
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (41)
Semantics\PrimaryConstructorTests.cs (41)
25using static PrimaryConstructorTests.TestFlags; 7136var data = new (string tag, TestFlags flags, string nestedSource)[] 7726public void ParameterScope(string keyword, bool shadow, bool isPartial, bool isRecord, string tag, TestFlags flags, string nestedSource) 7792private static void AssertParameterScope(string keyword, bool shadow, bool isRecord, TestFlags flags, string source) 7794bool isCaptured = !shadow && (flags & TestFlags.Captured) != 0; 7798Assert.Equal((TestFlags)0, flags & TestFlags.NotUsedWarning); 7810if ((flags & TestFlags.NotInScope) != 0) 7821if (shadow && (flags & TestFlags.Shadows) == 0) 7864if (!shadow || (flags & TestFlags.Shadows) != 0) 7866if (!isRecord && (flags & TestFlags.NotUsedWarning) != 0) 7875if ((flags & TestFlags.BadReference) != 0) 7884if ((flags & TestFlags.BadAttributeValue) != 0) 7893if ((flags & TestFlags.BadConstant) != 0) 7902if ((flags & TestFlags.BadDefaultValue) != 0) 7911if ((flags & (TestFlags.InNestedMethod)) != 0 && (flags & TestFlags.BadReference) == 0 && keyword == "struct") 7922if ((flags & TestFlags.BadReference) != 0 && 7932if ((flags & TestFlags.BadDefaultValue) != 0 && 7943if ((flags & (TestFlags.BadDefaultValue)) != 0 && 7944(flags & (TestFlags.InNestedMethod)) == 0 && keyword == "struct" && 7954if ((flags & (TestFlags.BadReference | TestFlags.BadDefaultValue | TestFlags.BadAttributeValue)) != 0) 7959if ((flags & (TestFlags.InNestedMethod)) != 0 && keyword == "struct" && 7969if (!isRecord && ((flags & TestFlags.NotUsedWarning) != 0 || (flags & TestFlags.Captured) != 0)) 7978if ((flags & TestFlags.BadConstant) != 0) 7988if ((flags & TestFlags.NotInScope) != 0) 8017if ((flags & TestFlags.TwoBodies) != 0) 8024if ((flags & TestFlags.AttributesNotAllowed) != 0) 8037var data = new (string tag, TestFlags flags, string attribute)[] 8063public void ParameterScope_AttributesOnType(string keyword, bool shadow, bool isPartial, bool isRecord, string tag, TestFlags flags, string attribute) 8141var data = new (string tag, TestFlags flags, string attribute)[] 8164public void ParameterScope_AttributesOnParameters(string keyword, bool shadow, bool isRecord, string tag, TestFlags flags, string attribute) 8220var data = new (string tag, TestFlags flags, string attribute)[] 8243public void ParameterScope_DefaultOnParameter(string keyword, bool shadow, bool isRecord, string tag, TestFlags flags, string attribute) 20022var data1 = new (string tag, TestFlags flags, string code, object err)[] 20081var data2 = new (string tag, TestFlags flags, string code, object err)[] 20110public void IllegalCapturingDueToRefness_01(string keyword, string tag, TestFlags flags, string code, object err) 20125if (flags == TestFlags.BadReference)