Use SyntaxTokenList.Any extension in SyntaxNodeExtensions

このコミットが含まれているのは:
Sergio Pedri committed 2023-03-10 02:30:23 +01:00
1 親 54a7da4aab
コミット 02b50db482
1ファイル変更
+1 -9
+1 -9
ファイルの表示
@@ -36,15 +36,7 @@ internal static class SyntaxNodeExtensions
// If the base types list is empty, check if the type is partial. If it is, it means
// that there could be another partial declaration with a non-empty base types list.
foreach (SyntaxToken modifier in typeDeclaration.Modifiers)
{
if (modifier.IsKind(SyntaxKind.PartialKeyword))
{
return true;
}
}
return false;
return typeDeclaration.Modifiers.Any(SyntaxKind.PartialKeyword);
}
/// <summary>