55 references to Shadows
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (55)
Semantics\PrimaryConstructorTests.cs (55)
7128("0001", Success | Shadows, "public int F = p1;"), 7129("0002", Success | Shadows, "public int P {get;} = p1;"), 7130("0003", Success | Shadows, "public event System.Action E = () => p1.ToString();"), 7131("0004", BadReference | NotUsedWarning | Shadows, "public static int F = p1;"), 7132("0005", BadReference | NotUsedWarning | Shadows | BadConstant, "public const int F = p1;"), 7133("0006", BadReference | NotUsedWarning | Shadows, "public static int P {get;} = p1;"), 7134("0007", BadReference | NotUsedWarning | Shadows, "public static event System.Action E = () => p1.ToString();"), 7363("1401", Success | Shadows, "public System.Func<int> F = (() => p1);"), 7364("1402", Success | Shadows, "public System.Func<System.Func<int>> F = (() => (System.Func<int>)(() => p1));"), 7365("1403", Success | Shadows, "public System.Func<int> F = () => { return local(); int local() => p1; };"), 7366("1404", Success | Shadows, "public System.Func<int> P {get;} = (() => p1);"), 7367("1405", Success | Shadows, "public System.Func<System.Func<int>> P {get;} = (() => (System.Func<int>)(() => p1));"), 7368("1406", Success | Shadows, "public System.Func<int> P {get;} = () => { return local(); int local() => p1; };"), 7369("1407", Success | Shadows, "public event System.Func<System.Func<int>> E = (() => (System.Func<int>)(() => p1));"), 7370("1408", Success | Shadows, "public event System.Func<int> E = () => { return local(); int local() => p1; };"), 7460("1901", NotUsedWarning | AttributesNotAllowed | Shadows, "public System.Action F = () => { [Attr1(p1)] return; };"), 7461("1902", NotUsedWarning | AttributesNotAllowed | Shadows, "public System.Action P {get;} = () => { [Attr1(p1)] return; };"), 7462("1903", NotUsedWarning | AttributesNotAllowed | Shadows, "public event System.Action E = () => { [Attr1(p1)] return; };"), 7463("1904", NotUsedWarning | AttributesNotAllowed | Shadows, "public static System.Action F = () => { [Attr1(p1)] return; };"), 7464("1906", NotUsedWarning | AttributesNotAllowed | Shadows, "public static System.Action P {get;} = () => { [Attr1(p1)] return; };"), 7465("1907", NotUsedWarning | AttributesNotAllowed | Shadows, "public static event System.Action E = () => { [Attr1(p1)] return; };"), 7490("2001", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public System.Action F = () => { [Attr1(p1)] void local(){} local(); };"), 7491("2002", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public System.Action P {get;} = () => { [Attr1(p1)] void local(){} local(); };"), 7492("2003", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public event System.Action E = () => { [Attr1(p1)] void local(){} local(); };"), 7493("2004", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public static System.Action F = () => { [Attr1(p1)] void local(){} local(); };"), 7494("2006", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public static System.Action P {get;} = () => { [Attr1(p1)] void local(){} local(); };"), 7495("2007", BadReference | NotUsedWarning | BadAttributeValue | Shadows, "public static event System.Action E = () => { [Attr1(p1)] void local(){} local(); };"), 7521("2101", Success | Shadows, "public System.Action F = () => { [Attr1(nameof(p1))] void local(){} local(); };"), 7522("2102", Success | Shadows, "public System.Action P {get;} = () => { [Attr1(nameof(p1))] void local(){} local(); };"), 7523("2103", Success | Shadows, "public event System.Action E = () => { [Attr1(nameof(p1))] void local(){} local(); };"), 7524("2104", NotUsedWarning | Shadows, "public static System.Action F = () => { [Attr1(nameof(p1))] void local(){} local(); };"), 7525("2106", NotUsedWarning | Shadows, "public static System.Action P {get;} = () => { [Attr1(nameof(p1))] void local(){} local(); };"), 7526("2107", NotUsedWarning | Shadows, "public static event System.Action E = () => { [Attr1(nameof(p1))] void local(){} local(); };"), 7552("2201", BadReference | BadDefaultValue | Shadows, "public System.Action F = () => { void local(int x = p1){} local(); };"), 7553("2202", BadReference | BadDefaultValue | Shadows, "public System.Action P {get;} = () => { void local(int x = p1){} local(); };"), 7554("2203", BadReference | BadDefaultValue | Shadows, "public event System.Action E = () => { void local(int x = p1){} local(); };"), 7555("2204", BadReference | NotUsedWarning | BadDefaultValue | Shadows, "public static System.Action F = () => { void local(int x = p1){} local(); };"), 7556("2206", BadReference | NotUsedWarning | BadDefaultValue | Shadows, "public static System.Action P {get;} = () => { void local(int x = p1){} local(); };"), 7557("2207", BadReference | NotUsedWarning | BadDefaultValue | Shadows, "public static event System.Action E = () => { void local(int x = p1){} local(); };"), 7583("2301", Success | Shadows, "public System.Action F = () => { void local(string x = nameof(p1)){} local(); };"), 7584("2302", Success | Shadows, "public System.Action P {get;} = () => { void local(string x = nameof(p1)){} local(); };"), 7585("2303", Success | Shadows, "public event System.Action E = () => { void local(string x = nameof(p1)){} local(); };"), 7586("2304", NotUsedWarning | Shadows, "public static System.Action F = () => { void local(string x = nameof(p1)){} local(); };"), 7587("2306", NotUsedWarning | Shadows, "public static System.Action P {get;} = () => { void local(string x = nameof(p1)){} local(); };"), 7588("2307", NotUsedWarning | Shadows, "public static event System.Action E = () => { void local(string x = nameof(p1)){} local(); };"), 7614("2401", Success | Shadows, "public int F = nameof(p1).Length;"), 7615("2402", Success | Shadows, "public int P {get;} = nameof(p1).Length;"), 7616("2403", Success | Shadows, "public event System.Action E = () => nameof(p1).Length.ToString();"), 7617("2404", NotUsedWarning | Shadows, "public static int F = nameof(p1).Length;"), 7618("2405", NotUsedWarning | Shadows, "public const string F = nameof(p1);"), 7619("2406", NotUsedWarning | Shadows, "public static int P {get;} = nameof(p1).Length;"), 7620("2407", NotUsedWarning | Shadows, "public static event System.Action E = () => nameof(p1).Length.ToString();"), 7810if (shadow && (flags & TestFlags.Shadows) == 0) 7853if (!shadow || (flags & TestFlags.Shadows) != 0) 8133("0002", NotUsedWarning | Shadows, "[Attr1(nameof(p1))]"),