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