Skip to content

Commit d2afd12

Browse files
committed
Add qualified names support
1 parent 07bd44f commit d2afd12

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

RequireFieldsInit.Analyzer.dll

0 Bytes
Binary file not shown.

Sources~/RequireFieldsInit/RequireFieldsInit.Analyzer/RequireFieldsInitAnalyzer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Microsoft.CodeAnalysis;
1+
using Microsoft.CodeAnalysis;
22
using Microsoft.CodeAnalysis.CSharp;
33
using Microsoft.CodeAnalysis.CSharp.Syntax;
44
using Microsoft.CodeAnalysis.Diagnostics;
@@ -83,12 +83,12 @@ private void CheckObjectCreation(SyntaxNodeAnalysisContext context, Cache cache)
8383
return;
8484
}
8585

86-
if (creationSyntax.Type is not IdentifierNameSyntax identifierNameSyntax)
86+
if (creationSyntax.Type is not NameSyntax nameSyntax)
8787
{
8888
return;
8989
}
9090

91-
if (context.SemanticModel.GetSymbolInfo(identifierNameSyntax).Symbol is not INamedTypeSymbol typeSymbol)
91+
if (context.SemanticModel.GetSymbolInfo(nameSyntax).Symbol is not INamedTypeSymbol typeSymbol)
9292
{
9393
return;
9494
}

0 commit comments

Comments
 (0)