Stripped attributes from processed methods

このコミットが含まれているのは:
Sergio Pedri committed 2020-12-01 12:23:30 +01:00
1 親 3a7e7559c3
コミット 85967771cf
1ファイル変更
+3 -1
+3 -1
ファイルの表示
@@ -162,7 +162,8 @@ namespace ComputeSharp.SourceGenerators.SyntaxRewriters
return
((MethodDeclarationSyntax)base.VisitMethodDeclaration(node)!)
.WithBlockBody()
.WithoutAccessibilityModifiers();
.WithoutAccessibilityModifiers()
.WithAttributeLists(List<AttributeListSyntax>());
}
/// <inheritdoc/>
@@ -171,6 +172,7 @@ namespace ComputeSharp.SourceGenerators.SyntaxRewriters
var updatedNode =
((LocalFunctionStatementSyntax)base.VisitLocalFunctionStatement(node)!)
.WithBlockBody()
.WithAttributeLists(List<AttributeListSyntax>())
.WithIdentifier(Identifier($"__{this.currentMethod!.Identifier.Text}__{node.Identifier.Text}"));
// HLSL doesn't support local functions, so we first process them as usual and then remove