You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Handle extension members by 'make member static' (#7739)
* Handle extension members by 'make member static'
* Suppress warning introduced by Roslyn bump
* Suppress warning in test
* Update tests
* Update Roslyn
To bring in dotnet/roslyn#79571.
* Update Roslyn
To bring in dotnet/roslyn#79576.
Copy file name to clipboardExpand all lines: src/Microsoft.CodeAnalysis.NetAnalyzers/src/Microsoft.CodeAnalysis.NetAnalyzers/Microsoft.CodeQuality.Analyzers/QualityGuidelines/MarkMembersAsStatic.cs
Copy file name to clipboardExpand all lines: src/Microsoft.CodeAnalysis.NetAnalyzers/tests/Microsoft.CodeAnalysis.NetAnalyzers.UnitTests/Microsoft.CodeQuality.Analyzers/ApiDesignGuidelines/DefineAccessorsForAttributeArgumentsTests.Fixer.cs
-3Lines changed: 0 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -153,7 +153,6 @@ public InternalGetterTestAttribute(string name)
153
153
public string Name
154
154
{
155
155
get { return m_name; }
156
-
157
156
internal set { m_name = value; }
158
157
}
159
158
}");
@@ -198,7 +197,6 @@ public InternalGetterTestAttribute(string name)
198
197
public string Name
199
198
{
200
199
get { return m_name; }
201
-
202
200
internal set { m_name = value; }
203
201
}
204
202
}");
@@ -285,7 +283,6 @@ public PublicSetterTestAttribute(string name)
Copy file name to clipboardExpand all lines: src/Microsoft.CodeAnalysis.NetAnalyzers/tests/Microsoft.CodeAnalysis.NetAnalyzers.UnitTests/Microsoft.CodeQuality.Analyzers/ApiDesignGuidelines/ImplementStandardExceptionConstructorsTests.Fixer.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
1
+
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
Copy file name to clipboardExpand all lines: src/Microsoft.CodeAnalysis.NetAnalyzers/tests/Microsoft.CodeAnalysis.NetAnalyzers.UnitTests/Microsoft.CodeQuality.Analyzers/ApiDesignGuidelines/OperatorOverloadsHaveNamedAlternatesTests.Fixer.cs
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -206,7 +206,6 @@ public class C
206
206
public class C
207
207
{
208
208
public static C operator +(C left, C right) { return new C(); }
209
-
210
209
public static C Add(C left, C right) { return new C(); }
211
210
}
212
211
",
@@ -235,7 +234,6 @@ public class C
235
234
{
236
235
public static bool operator true(C item) { return true; }
237
236
public static bool operator false(C item) { return false; }
Copy file name to clipboardExpand all lines: src/Microsoft.CodeAnalysis.NetAnalyzers/tests/Microsoft.CodeAnalysis.NetAnalyzers.UnitTests/Microsoft.CodeQuality.Analyzers/ApiDesignGuidelines/OperatorsShouldHaveSymmetricalOverloadsTests.Fixer.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
1
+
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
Copy file name to clipboardExpand all lines: src/Microsoft.CodeAnalysis.NetAnalyzers/tests/Microsoft.CodeAnalysis.NetAnalyzers.UnitTests/Microsoft.CodeQuality.Analyzers/ApiDesignGuidelines/OverrideEqualsAndOperatorEqualsOnValueTypesTests.Fixer.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
1
+
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
Copy file name to clipboardExpand all lines: src/Microsoft.CodeAnalysis.NetAnalyzers/tests/Microsoft.CodeAnalysis.NetAnalyzers.UnitTests/Microsoft.CodeQuality.Analyzers/QualityGuidelines/MarkMembersAsStaticTests.cs
+50-2Lines changed: 50 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1322,7 +1322,7 @@ public string P3
1322
1322
get;
1323
1323
}
1324
1324
1325
-
public string [|P4|] // Because of the error there is no generated field
1325
+
public string P4 // Because of the error there is no generated field
1326
1326
{
1327
1327
[DebuggerStepThrough]
1328
1328
{|CS8051:set|};
@@ -1500,7 +1500,7 @@ public static void Recursive(string argument)
1500
1500
}.RunAsync();
1501
1501
}
1502
1502
1503
-
[Fact(Skip="Need update of roslyn to parse primary constructors properly"),WorkItem(6573,"https://github.com/dotnet/roslyn-analyzers/issues/6573")]
Copy file name to clipboardExpand all lines: src/Microsoft.CodeAnalysis.NetAnalyzers/tests/Microsoft.CodeAnalysis.NetAnalyzers.UnitTests/Microsoft.NetCore.Analyzers/InteropServices/DynamicInterfaceCastableImplementationTests.cs
0 commit comments