https://learn.microsoft.com/zh-cn/dotnet/api/microsoft.codeanalysis.syntaxnode.hasannotations?view=roslyn-dotnet-5.0.0
SyntaxNode.HasAnnotations Method (Microsoft.CodeAnalysis) | Microsoft Learn
Determines whether this node has any annotations with any of the specific annotation kinds.
methodmicrosoftlearn