Fix capture delegate names lookup
このコミットが含まれているのは:
1 親
7b46a7d527
コミット
9d70125da2
3ファイル変更
+8
-8
検索条件に一致するファイルはありません
@@ -78,7 +78,7 @@ public sealed partial class ShaderMethodSourceAttribute : Attribute
|
||||
}
|
||||
|
||||
var attributes = function.Method.DeclaringType!.Assembly.GetCustomAttributes<ShaderMethodSourceAttribute>();
|
||||
string methodName = function.Method.GetFullName();
|
||||
string methodName = function.Method.GetFullyQualifiedName();
|
||||
|
||||
foreach (var attribute in attributes)
|
||||
{
|
||||
|
||||
@@ -76,7 +76,7 @@ internal static class ISymbolExtensions
|
||||
{
|
||||
if (includeParameters)
|
||||
{
|
||||
var parameters = string.Join(", ", symbol.Parameters.Select(static p => ((INamedTypeSymbol)p.Type).GetFullMetadataName()));
|
||||
string parameters = string.Join(", ", symbol.Parameters.Select(static p => ((INamedTypeSymbol)p.Type).GetFullMetadataName()));
|
||||
|
||||
return $"{symbol.ContainingType.GetFullMetadataName()}.{symbol.Name}({parameters})";
|
||||
}
|
||||
@@ -95,7 +95,7 @@ internal static class ISymbolExtensions
|
||||
|
||||
if (symbol.IsIndexer)
|
||||
{
|
||||
var parameters = string.Join(", ", symbol.Parameters.Select(static p => ((INamedTypeSymbol)p.Type).GetFullMetadataName()));
|
||||
string parameters = string.Join(", ", symbol.Parameters.Select(static p => ((INamedTypeSymbol)p.Type).GetFullMetadataName()));
|
||||
|
||||
return $"{declaringTypeName}.this[{parameters}]";
|
||||
}
|
||||
|
||||
@@ -13,17 +13,17 @@ internal static class MethodInfoExtensions
|
||||
/// </summary>
|
||||
/// <param name="method">The input <see cref="MethodInfo"/> instance.</param>
|
||||
/// <returns>A fully qualified name for <paramref name="method"/>, including parameters.</returns>
|
||||
public static string GetFullName(this MethodInfo method)
|
||||
public static string GetFullyQualifiedName(this MethodInfo method)
|
||||
{
|
||||
var parameters = string.Join(", ", method.GetParameters().Select(static p => p.ParameterType.FullName));
|
||||
string parameters = string.Join(", ", method.GetParameters().Select(static p => p.ParameterType.FullName));
|
||||
|
||||
if (method.IsGenericMethod)
|
||||
{
|
||||
var arguments = string.Join(", ", method.GetGenericArguments().Select(static t => t.FullName));
|
||||
string arguments = string.Join(", ", method.GetGenericArguments().Select(static t => t.FullName));
|
||||
|
||||
return $"{method.DeclaringType!.FullName!.Replace('+', '.')}.{method.Name}<{arguments}>({parameters})";
|
||||
return $"{method.DeclaringType!.FullName!}.{method.Name}<{arguments}>({parameters})";
|
||||
}
|
||||
|
||||
return $"{method.DeclaringType!.FullName!.Replace('+', '.')}.{method.Name}({parameters})";
|
||||
return $"{method.DeclaringType!.FullName!}.{method.Name}({parameters})";
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする