Fixed build error with source attribute

このコミットが含まれているのは:
Sergio Pedri committed 2020-11-25 01:16:54 +01:00
1 親 08a82a1627
コミット 679e6b6d19
2ファイル変更
+2 -1

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

+1 -1
ファイルの表示
@@ -9,7 +9,7 @@ namespace ComputeSharp
/// </summary>
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This attribute is meant to be used from the source generator only", true)]
[Obsolete("This attribute is meant to be used from the source generator only")]
public sealed class IComputeShaderSourceAttribute : Attribute
{
/// <summary>
+1
ファイルの表示
@@ -65,6 +65,7 @@ namespace ComputeSharp.SourceGenerators
AttributeArgument(LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(structFullName))),
AttributeArgument(LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(methodDeclarationSymbol.Name))),
AttributeArgument(LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(methodSource))))))
.WithOpenBracketToken(Token(TriviaList(Trivia(PragmaWarningDirectiveTrivia(Token(SyntaxKind.DisableKeyword), true))), SyntaxKind.OpenBracketToken, TriviaList()))
.WithTarget(AttributeTargetSpecifier(Token(SyntaxKind.AssemblyKeyword))))
.NormalizeWhitespace()
.ToFullString();