55 references to Shadows
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (55)
Semantics\PrimaryConstructorTests.cs (55)
6513("0001", Success | Shadows, "public int F = p1;"), 6514("0002", Success | Shadows, "public int P {get;} = p1;"), 6515("0003", Success | Shadows, "public event System.Action E = () => p1.ToString();"), 6516("0004", BadReference | NotUsedWarning | Shadows, "public static int F = p1;"), 6517("0005", BadReference | NotUsedWarning | Shadows | BadConstant, "public const int F = p1;"), 6518("0006", BadReference | NotUsedWarning | Shadows, "public static int P {get;} = p1;"), 6519("0007", BadReference | NotUsedWarning | Shadows, "public static event System.Action E = () => p1.ToString();"), 6748("1401", Success | Shadows, "public System.Func<int> F = (() => p1);"), 6749("1402", Success | Shadows, "public System.Func<System.Func<int>> F = (() => (System.Func<int>)(() => p1));"), 6750("1403", Success | Shadows, "public System.Func<int> F = () => { return local(); int local() => p1; };"), 6751("1404", Success | Shadows, "public System.Func<int> P {get;} = (() => p1);"), 6752("1405", Success | Shadows, "public System.Func<System.Func<int>> P {get;} = (() => (System.Func<int>)(() => p1));"), 6753("1406", Success | Shadows, "public System.Func<int> P {get;} = () => { return local(); int local() => p1; };"), 6754("1407", Success | Shadows, "public event System.Func<System.Func<int>> E = (() => (System.Func<int>)(() => p1));"), 6755("1408", Success | Shadows, "public event System.Func<int> E = () => { return local(); int local() => p1; };"), 6845("1901", NotUsedWarning | AttributesNotAllowed | Shadows, "public System.Action F = () => { [Attr1(p1)] return; };"), 6846("1902", NotUsedWarning | AttributesNotAllowed | Shadows, "public System.Action P {get;} = () => { [Attr1(p1)] return; };"), 6847("1903", NotUsedWarning | AttributesNotAllowed | Shadows, "public event System.Action E = () => { [Attr1(p1)] return; };"), 6848("1904", NotUsedWarning | AttributesNotAllowed | Shadows, "public static System.Action F = () => { [Attr1(p1)] return; };"), 6849("1906", NotUsedWarning | AttributesNotAllowed | Shadows, "public static System.Action P {get;} = () => { [Attr1(p1)] return; };"), 6850("1907", NotUsedWarning | AttributesNotAllowed | Shadows, "public static event System.Action E = () => { [Attr1(p1)] return; };"), 6875("2001", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public System.Action F = () => { [Attr1(p1)] void local(){} local(); };"), 6876("2002", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public System.Action P {get;} = () => { [Attr1(p1)] void local(){} local(); };"), 6877("2003", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public event System.Action E = () => { [Attr1(p1)] void local(){} local(); };"), 6878("2004", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public static System.Action F = () => { [Attr1(p1)] void local(){} local(); };"), 6879("2006", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public static System.Action P {get;} = () => { [Attr1(p1)] void local(){} local(); };"), 6880("2007", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public static event System.Action E = () => { [Attr1(p1)] void local(){} local(); };"), 6906("2101", Success | Shadows, "public System.Action F = () => { [Attr1(nameof(p1))] void local(){} local(); };"), 6907("2102", Success | Shadows, "public System.Action P {get;} = () => { [Attr1(nameof(p1))] void local(){} local(); };"), 6908("2103", Success | Shadows, "public event System.Action E = () => { [Attr1(nameof(p1))] void local(){} local(); };"), 6909("2104", NotUsedWarning | Shadows, "public static System.Action F = () => { [Attr1(nameof(p1))] void local(){} local(); };"), 6910("2106", NotUsedWarning | Shadows, "public static System.Action P {get;} = () => { [Attr1(nameof(p1))] void local(){} local(); };"), 6911("2107", NotUsedWarning | Shadows, "public static event System.Action E = () => { [Attr1(nameof(p1))] void local(){} local(); };"), 6937("2201", BadReference | BadDefaultValue | Shadows, "public System.Action F = () => { void local(int x = p1){} local(); };"), 6938("2202", BadReference | BadDefaultValue | Shadows, "public System.Action P {get;} = () => { void local(int x = p1){} local(); };"), 6939("2203", BadReference | BadDefaultValue | Shadows, "public event System.Action E = () => { void local(int x = p1){} local(); };"), 6940("2204", BadReference | NotUsedWarning | BadDefaultValue | Shadows, "public static System.Action F = () => { void local(int x = p1){} local(); };"), 6941("2206", BadReference | NotUsedWarning | BadDefaultValue | Shadows, "public static System.Action P {get;} = () => { void local(int x = p1){} local(); };"), 6942("2207", BadReference | NotUsedWarning | BadDefaultValue | Shadows, "public static event System.Action E = () => { void local(int x = p1){} local(); };"), 6968("2301", Success | Shadows, "public System.Action F = () => { void local(string x = nameof(p1)){} local(); };"), 6969("2302", Success | Shadows, "public System.Action P {get;} = () => { void local(string x = nameof(p1)){} local(); };"), 6970("2303", Success | Shadows, "public event System.Action E = () => { void local(string x = nameof(p1)){} local(); };"), 6971("2304", NotUsedWarning | Shadows, "public static System.Action F = () => { void local(string x = nameof(p1)){} local(); };"), 6972("2306", NotUsedWarning | Shadows, "public static System.Action P {get;} = () => { void local(string x = nameof(p1)){} local(); };"), 6973("2307", NotUsedWarning | Shadows, "public static event System.Action E = () => { void local(string x = nameof(p1)){} local(); };"), 6999("2401", Success | Shadows, "public int F = nameof(p1).Length;"), 7000("2402", Success | Shadows, "public int P {get;} = nameof(p1).Length;"), 7001("2403", Success | Shadows, "public event System.Action E = () => nameof(p1).Length.ToString();"), 7002("2404", NotUsedWarning | Shadows, "public static int F = nameof(p1).Length;"), 7003("2405", NotUsedWarning | Shadows, "public const string F = nameof(p1);"), 7004("2406", NotUsedWarning | Shadows, "public static int P {get;} = nameof(p1).Length;"), 7005("2407", NotUsedWarning | Shadows, "public static event System.Action E = () => nameof(p1).Length.ToString();"), 7195if (shadow && (flags & TestFlags.Shadows) == 0) 7238if (!shadow || (flags & TestFlags.Shadows) != 0) 7518("0002", NotUsedWarning | Shadows, "[Attr1(nameof(p1))]"),