Stripped info on parent types in source generator
このコミットが含まれているのは:
1 親
28f70fe0cb
コミット
b31ec9f959
2ファイル変更
+11
-2
検索条件に一致するファイルはありません
@@ -87,7 +87,11 @@ namespace ComputeSharp.SourceGenerators
|
||||
// Add all parent types in ascending order, if any
|
||||
foreach (var parentType in structDeclaration.Ancestors().OfType<TypeDeclarationSyntax>())
|
||||
{
|
||||
typeDeclarationSyntax = parentType.WithMembers(SingletonList<MemberDeclarationSyntax>(typeDeclarationSyntax));
|
||||
typeDeclarationSyntax = parentType
|
||||
.WithMembers(SingletonList<MemberDeclarationSyntax>(typeDeclarationSyntax))
|
||||
.WithConstraintClauses(List<TypeParameterConstraintClauseSyntax>())
|
||||
.WithBaseList(null)
|
||||
.WithoutTrivia();
|
||||
}
|
||||
|
||||
// Create the compilation unit with the namespace and target member.
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする