C#: Use IsKind instead of Kind (compiler warning).

This commit is contained in:
Michael Nebel
2023-01-20 14:20:50 +01:00
parent 3a4e5700e8
commit 33a923a85b

View File

@@ -23,7 +23,7 @@ namespace Semmle.Extraction.CSharp.Entities
{
var info = Context.GetModel(node).GetSymbolInfo(node.Name);
if (node.StaticKeyword.Kind() == SyntaxKind.None)
if (node.StaticKeyword.IsKind(SyntaxKind.None))
{
// A normal using
if (info.Symbol is INamespaceSymbol namespaceSymbol)
@@ -47,7 +47,7 @@ namespace Semmle.Extraction.CSharp.Entities
trapFile.using_directive_location(this, Context.CreateLocation(ReportingLocation));
}
if (node.GlobalKeyword.Kind() == SyntaxKind.GlobalKeyword)
if (node.GlobalKeyword.IsKind(SyntaxKind.GlobalKeyword))
{
trapFile.using_global(this);
}