Fix import placement in Analyzers

fixes 362269c98, presumably, and f2a479410
This commit is contained in:
James Groom 2023-10-26 23:03:14 +10:00 committed by GitHub
parent 5c475ce898
commit dae3fe3803
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -10,7 +10,7 @@
<Import Project="LibCommon.props" />
<PropertyGroup>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
<NoWarn>$(NoWarn);RS2008</NoWarn>
<NoWarn>$(NoWarn)IDE0065;RS2008</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4" />

View File

@ -1,9 +1,9 @@
namespace BizHawk.Analyzers;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace BizHawk.Analyzers;
public static class RoslynUtils
{
public static SyntaxNode? EnclosingTypeDeclarationSyntax(this CSharpSyntaxNode node)

View File

@ -1,4 +1,6 @@
using System.Collections.Generic;
namespace BizHawk.SrcGen.SettingsUtil;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Text;
@ -7,8 +9,6 @@ using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace BizHawk.SrcGen.SettingsUtil;
[Generator]
public class DefaultSetterGenerator : ISourceGenerator
{