Add MissingPixelShaderDescriptorOnPixelShaderAnalyzer

このコミットが含まれているのは:
Sergio Pedri committed 2023-10-01 15:40:18 +02:00
1 親 933dca22ed
コミット 821bc6ba0d
5ファイル変更
+114

検索条件に一致するファイルはありません

+11
ファイルの表示
@@ -27,6 +27,17 @@ internal static class ISymbolExtensions
return symbol.ToDisplayString(FullyQualifiedWithoutGlobalFormat);
}
/// <summary>
/// Checks whether or not a given symbol has an attribute with the specified type.
/// </summary>
/// <param name="symbol">The input <see cref="ISymbol"/> instance to check.</param>
/// <param name="typeSymbol">The <see cref="ITypeSymbol"/> instance for the attribute type to look for.</param>
/// <returns>Whether or not <paramref name="symbol"/> has an attribute with the specified type.</returns>
public static bool HasAttributeWithType(this ISymbol symbol, ITypeSymbol typeSymbol)
{
return TryGetAttributeWithType(symbol, typeSymbol, out _);
}
/// <summary>
/// Tries to get an attribute with the specified type.
/// </summary>