55 references to Shadows
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (55)
Semantics\PrimaryConstructorTests.cs (55)
7269("0001", Success | Shadows, "public int F = p1;"), 7270("0002", Success | Shadows, "public int P {get;} = p1;"), 7271("0003", Success | Shadows, "public event System.Action E = () => p1.ToString();"), 7272("0004", BadReference | NotUsedWarning | Shadows, "public static int F = p1;"), 7273("0005", BadReference | NotUsedWarning | Shadows | BadConstant, "public const int F = p1;"), 7274("0006", BadReference | NotUsedWarning | Shadows, "public static int P {get;} = p1;"), 7275("0007", BadReference | NotUsedWarning | Shadows, "public static event System.Action E = () => p1.ToString();"), 7504("1401", Success | Shadows, "public System.Func<int> F = (() => p1);"), 7505("1402", Success | Shadows, "public System.Func<System.Func<int>> F = (() => (System.Func<int>)(() => p1));"), 7506("1403", Success | Shadows, "public System.Func<int> F = () => { return local(); int local() => p1; };"), 7507("1404", Success | Shadows, "public System.Func<int> P {get;} = (() => p1);"), 7508("1405", Success | Shadows, "public System.Func<System.Func<int>> P {get;} = (() => (System.Func<int>)(() => p1));"), 7509("1406", Success | Shadows, "public System.Func<int> P {get;} = () => { return local(); int local() => p1; };"), 7510("1407", Success | Shadows, "public event System.Func<System.Func<int>> E = (() => (System.Func<int>)(() => p1));"), 7511("1408", Success | Shadows, "public event System.Func<int> E = () => { return local(); int local() => p1; };"), 7601("1901", NotUsedWarning | AttributesNotAllowed | Shadows, "public System.Action F = () => { [Attr1(p1)] return; };"), 7602("1902", NotUsedWarning | AttributesNotAllowed | Shadows, "public System.Action P {get;} = () => { [Attr1(p1)] return; };"), 7603("1903", NotUsedWarning | AttributesNotAllowed | Shadows, "public event System.Action E = () => { [Attr1(p1)] return; };"), 7604("1904", NotUsedWarning | AttributesNotAllowed | Shadows, "public static System.Action F = () => { [Attr1(p1)] return; };"), 7605("1906", NotUsedWarning | AttributesNotAllowed | Shadows, "public static System.Action P {get;} = () => { [Attr1(p1)] return; };"), 7606("1907", NotUsedWarning | AttributesNotAllowed | Shadows, "public static event System.Action E = () => { [Attr1(p1)] return; };"), 7631("2001", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public System.Action F = () => { [Attr1(p1)] void local(){} local(); };"), 7632("2002", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public System.Action P {get;} = () => { [Attr1(p1)] void local(){} local(); };"), 7633("2003", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public event System.Action E = () => { [Attr1(p1)] void local(){} local(); };"), 7634("2004", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public static System.Action F = () => { [Attr1(p1)] void local(){} local(); };"), 7635("2006", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public static System.Action P {get;} = () => { [Attr1(p1)] void local(){} local(); };"), 7636("2007", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public static event System.Action E = () => { [Attr1(p1)] void local(){} local(); };"), 7662("2101", Success | Shadows, "public System.Action F = () => { [Attr1(nameof(p1))] void local(){} local(); };"), 7663("2102", Success | Shadows, "public System.Action P {get;} = () => { [Attr1(nameof(p1))] void local(){} local(); };"), 7664("2103", Success | Shadows, "public event System.Action E = () => { [Attr1(nameof(p1))] void local(){} local(); };"), 7665("2104", NotUsedWarning | Shadows, "public static System.Action F = () => { [Attr1(nameof(p1))] void local(){} local(); };"), 7666("2106", NotUsedWarning | Shadows, "public static System.Action P {get;} = () => { [Attr1(nameof(p1))] void local(){} local(); };"), 7667("2107", NotUsedWarning | Shadows, "public static event System.Action E = () => { [Attr1(nameof(p1))] void local(){} local(); };"), 7693("2201", BadReference | BadDefaultValue | Shadows, "public System.Action F = () => { void local(int x = p1){} local(); };"), 7694("2202", BadReference | BadDefaultValue | Shadows, "public System.Action P {get;} = () => { void local(int x = p1){} local(); };"), 7695("2203", BadReference | BadDefaultValue | Shadows, "public event System.Action E = () => { void local(int x = p1){} local(); };"), 7696("2204", BadReference | NotUsedWarning | BadDefaultValue | Shadows, "public static System.Action F = () => { void local(int x = p1){} local(); };"), 7697("2206", BadReference | NotUsedWarning | BadDefaultValue | Shadows, "public static System.Action P {get;} = () => { void local(int x = p1){} local(); };"), 7698("2207", BadReference | NotUsedWarning | BadDefaultValue | Shadows, "public static event System.Action E = () => { void local(int x = p1){} local(); };"), 7724("2301", Success | Shadows, "public System.Action F = () => { void local(string x = nameof(p1)){} local(); };"), 7725("2302", Success | Shadows, "public System.Action P {get;} = () => { void local(string x = nameof(p1)){} local(); };"), 7726("2303", Success | Shadows, "public event System.Action E = () => { void local(string x = nameof(p1)){} local(); };"), 7727("2304", NotUsedWarning | Shadows, "public static System.Action F = () => { void local(string x = nameof(p1)){} local(); };"), 7728("2306", NotUsedWarning | Shadows, "public static System.Action P {get;} = () => { void local(string x = nameof(p1)){} local(); };"), 7729("2307", NotUsedWarning | Shadows, "public static event System.Action E = () => { void local(string x = nameof(p1)){} local(); };"), 7755("2401", Success | Shadows, "public int F = nameof(p1).Length;"), 7756("2402", Success | Shadows, "public int P {get;} = nameof(p1).Length;"), 7757("2403", Success | Shadows, "public event System.Action E = () => nameof(p1).Length.ToString();"), 7758("2404", NotUsedWarning | Shadows, "public static int F = nameof(p1).Length;"), 7759("2405", NotUsedWarning | Shadows, "public const string F = nameof(p1);"), 7760("2406", NotUsedWarning | Shadows, "public static int P {get;} = nameof(p1).Length;"), 7761("2407", NotUsedWarning | Shadows, "public static event System.Action E = () => nameof(p1).Length.ToString();"), 7951if (shadow && (flags & TestFlags.Shadows) == 0) 7994if (!shadow || (flags & TestFlags.Shadows) != 0) 8274("0002", NotUsedWarning | Shadows, "[Attr1(nameof(p1))]"),