Fixed semicolon placement in custom type declarations

このコミットが含まれているのは:
Sergio Pedri committed 2020-11-29 17:31:13 +01:00
1 親 2291851cdb
コミット d8a4ff30bb
1ファイル変更
+6 -1
+6 -1
ファイルの表示
@@ -195,7 +195,12 @@ namespace ComputeSharp.SourceGenerators
VariableDeclarator(Identifier(field.Name)))));
}
yield return structDeclaration.NormalizeWhitespace().ToFullString();
// Insert the trailing ; right after the closing bracket (after normalization)
yield return
structDeclaration
.NormalizeWhitespace()
.WithSemicolonToken(Token(SyntaxKind.SemicolonToken))
.ToFullString();
}
}
}