We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a4e570 commit 33a923aCopy full SHA for 33a923a
csharp/extractor/Semmle.Extraction.CSharp/Entities/UsingDirective.cs
@@ -23,7 +23,7 @@ protected override void Populate(TextWriter trapFile)
23
{
24
var info = Context.GetModel(node).GetSymbolInfo(node.Name);
25
26
- if (node.StaticKeyword.Kind() == SyntaxKind.None)
+ if (node.StaticKeyword.IsKind(SyntaxKind.None))
27
28
// A normal using
29
if (info.Symbol is INamespaceSymbol namespaceSymbol)
@@ -47,7 +47,7 @@ protected override void Populate(TextWriter trapFile)
47
trapFile.using_directive_location(this, Context.CreateLocation(ReportingLocation));
48
}
49
50
- if (node.GlobalKeyword.Kind() == SyntaxKind.GlobalKeyword)
+ if (node.GlobalKeyword.IsKind(SyntaxKind.GlobalKeyword))
51
52
trapFile.using_global(this);
53
0 commit comments