Added support for mapped method invocations
このコミットが含まれているのは:
1 親
847c80ec35
コミット
e6be10436a
5ファイル変更
+179
-292
検索条件に一致するファイルはありません
@@ -9,6 +9,16 @@ namespace ComputeSharp.SourceGenerators.Extensions
|
||||
/// </summary>
|
||||
internal static class INamedTypeSymbolExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// A custom <see cref="SymbolDisplayFormat"/> instance with fully qualified style, without global:: and parameters.
|
||||
/// </summary>
|
||||
private static readonly SymbolDisplayFormat FullyQualifiedWithoutGlobalAndParametersFormat = new(
|
||||
SymbolDisplayGlobalNamespaceStyle.Omitted,
|
||||
SymbolDisplayTypeQualificationStyle.NameAndContainingTypesAndNamespaces,
|
||||
SymbolDisplayGenericsOptions.IncludeTypeParameters,
|
||||
memberOptions: SymbolDisplayMemberOptions.IncludeContainingType,
|
||||
parameterOptions: SymbolDisplayParameterOptions.None);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the full metadata name for a given name symbol.
|
||||
/// </summary>
|
||||
@@ -33,5 +43,10 @@ namespace ComputeSharp.SourceGenerators.Extensions
|
||||
|
||||
return BuildFrom(namedTypeSymbol, new StringBuilder(256)).ToString();
|
||||
}
|
||||
|
||||
public static string GetFullMetadataName(this IMethodSymbol methodSymbol)
|
||||
{
|
||||
return methodSymbol.ToDisplayString(FullyQualifiedWithoutGlobalAndParametersFormat);
|
||||
}
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする