Use SyntaxTokenList.Any extension in SyntaxNodeExtensions
このコミットが含まれているのは:
1 親
54a7da4aab
コミット
02b50db482
1ファイル変更
+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>
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする