71 references to Success
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (71)
Semantics\PrimaryConstructorTests.cs (71)
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();"), 7143("0017", Captured | Success, "void M() { p1 = 0; }"), 7144("0018", Captured | Success, "int P { get { return p1; } }"), 7145("0019", Captured | Success, "int P { set { p1 = 0; } }"), 7146("0020", Captured | Success, "int P { set {} get { return p1; } }"), 7147("0021", Captured | Success, "int P { get => 0; set { p1 = 0; } }"), 7148("0022", Captured | Success, "event System.Action E { add { p1 = 0; } remove {} }"), 7149("0023", Captured | Success, "event System.Action E { add {} remove { p1 = 0; } }"), 7150("0024", Captured | Success, "int this[int x] { get { return p1; } }"), 7151("0025", Captured | Success, "int this[int x] { set { p1 = 0; } }"), 7152("0026", Captured | Success, "int this[int x] { set {} get { return p1; } }"), 7153("0027", Captured | Success, "int this[int x] { get => 0; set { p1 = 0; } }"), 7154("0028", Captured | Success, "~C1() { p1 = 0; }"), 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; };"), 7378("1502", Captured | Success, "public int P => p1;"), 7388("1517", Captured | Success, "void M() => p1 = 0;"), 7389("1518", Captured | Success, "int P { get => p1; }"), 7390("1519", Captured | Success, "int P { set => p1 = 0; }"), 7391("1520", Captured | Success, "int P { set {} get => p1; }"), 7392("1521", Captured | Success, "int P { get => 0; set => p1 = 0; }"), 7393("1524", Captured | Success, "int this[int x] { get => p1; }"), 7394("1525", Captured | Success, "int this[int x] { set => p1 = 0; }"), 7395("1526", Captured | Success, "int this[int x] { set {} get => p1; }"), 7396("1527", Captured | Success, "int this[int x] { get => 0; set => p1 = 0; }"), 7397("1528", Captured | Success, "~C1() => p1 = 0;"), 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(); };"), 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(); };"), 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();"), 19994("0101", Success, "(ref int p1) { void M1() { nameof(p1).ToString(); } }", null), 19995("0102", Success, "(ref int p1) { void M1() { local(); void local() { nameof(p1).ToString(); } } }", null), 19996("0103", Success, "(ref int p1) { void M1() { local1(); void local1() { local2(); void local2() {nameof(p1).ToString(); } } } }", null), 19997("0104", Success, "(in int p1) { void M1() { nameof(p1).ToString(); } }", null), 19998("0105", Success, "(in int p1) { void M1() { local(); void local() { nameof(p1).ToString(); } } }", null), 19999("0106", Success, "(in int p1) { void M1() { local1(); void local1() { local2(); void local2() { nameof(p1).ToString(); } } } }", null), 20000("0107", Success, "(out int p1) { int x = p1 = 0; void M1() { nameof(p1).ToString(); } }", null), 20001("0108", Success, "(out int p1) { int x = p1 = 0; void M1() { local(); void local() { nameof(p1).ToString(); } } }", null), 20002("0109", Success, "(out int p1) { int x = p1 = 0; void M1() { local1(); void local1() { local2(); void local2() { nameof(p1).ToString(); } } } }", null), 20003("0110", Success, "(S1 p1) { void M1() { nameof(p1).ToString(); } } ref struct S1 { public void M(){} }", null), 20004("0111", Success, "(S1 p1) { void M1() { local(); void local() { nameof(p1).ToString(); } } } ref struct S1{ public void M(){} }", null), 20005("0112", Success, "(S1 p1) { void M1() { local1(); void local1() { local2(); void local2() { nameof(p1).ToString(); } } } } ref struct S1{ public void M(){} }", null), 20020("0301", Success, "(ref int p1) { System.Action F = () => nameof(p1).ToString(); }", null), 20021("0302", Success, "(ref int p1) { System.Action P { get; } = () => nameof(p1).ToString(); }", null), 20022("0303", Success, "(ref int p1) { public event System.Action E = () => nameof(p1).ToString(); }", null), 20023("0304", Success, "(in int p1) { System.Action F = () => nameof(p1).ToString(); }", null), 20024("0305", Success, "(in int p1) { System.Action P { get; } = () => nameof(p1).ToString(); }", null), 20025("0306", Success, "(in int p1) { public event System.Action E = () => nameof(p1).ToString(); }", null), 20026("0307", Success, "(out int p1) { System.Action F = (p1 = 0) == 0 ? () => nameof(p1).ToString() : null; }", null), 20027("0308", Success, "(out int p1) { System.Action P { get; } = (p1 = 0) == 0 ? () => nameof(p1).ToString() : null; }", null), 20028("0309", Success, "(out int p1) { public event System.Action E = (p1 = 0) == 0 ? () => nameof(p1).ToString() : null; }", null), 20029("0310", Success, "(S1 p1) { System.Action F = () => nameof(p1).ToString(); } ref struct S1{ public void M(){} }", null), 20030("0311", Success, "(S1 p1) { System.Action P { get; } = () => nameof(p1).ToString(); } ref struct S1{ public void M(){} }", null), 20031("0312", Success, "(S1 p1) { public event System.Action E = () => nameof(p1).ToString(); } ref struct S1{ public void M(){} }", null), 20041("1011", Success, "(ref int p1) : Base(() => nameof(p1).ToString()); class Base { public Base(System.Action x) {} }", null), 20042("1012", Success, "(in int p1) : Base(() => nameof(p1).ToString()); class Base { public Base(System.Action x) {} }", null), 20043("1013", Success, "(out int p1) : Base(p1 = 0, () => nameof(p1).ToString()); class Base { public Base(int y, System.Action x) {} }", null), 20044("1014", Success, "(S1 p1) : Base(() => nameof(p1).ToString()); ref struct S1{ public void M(){} } class Base { public Base(System.Action x) {} }", null),