Switched source generators to global:: type names

このコミットが含まれているのは:
Sergio Pedri committed 2021-10-30 15:11:44 +02:00
1 親 4d07edcd7c
コミット 06b12f5a6c
9ファイル変更
+75 -109

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

+4 -4
ファイルの表示
@@ -20,7 +20,7 @@ public sealed partial class IShaderGenerator
{
// This code produces a method declaration as follows:
//
// readonly int IShader.GetDispatchId()
// readonly int global::ComputeSharp.__Internals.IShader.GetDispatchId()
// {
// <BODY>
// }
@@ -28,7 +28,7 @@ public sealed partial class IShaderGenerator
MethodDeclaration(
PredefinedType(Token(SyntaxKind.IntKeyword)),
Identifier("GetDispatchId"))
.WithExplicitInterfaceSpecifier(ExplicitInterfaceSpecifier(IdentifierName(nameof(IShader))))
.WithExplicitInterfaceSpecifier(ExplicitInterfaceSpecifier(IdentifierName($"global::ComputeSharp.__Internals.{nameof(IShader)}")))
.AddModifiers(Token(SyntaxKind.ReadOnlyKeyword))
.WithBody(GetShaderHashCodeBody(structDeclarationSymbol));
}
@@ -59,9 +59,9 @@ public sealed partial class IShaderGenerator
List<StatementSyntax> blockStatements = new(4);
// HashCode hashCode = default;
// global::System.HashCode hashCode = default;
blockStatements.Add(LocalDeclarationStatement(
VariableDeclaration(IdentifierName("HashCode"))
VariableDeclaration(IdentifierName("global::System.HashCode"))
.AddVariables(
VariableDeclarator(Identifier("hashCode"))
.WithInitializer(EqualsValueClause(