33// See the LICENSE file in the project root for more information.
44
55using System ;
6+ using System . Runtime . Serialization ;
67using Microsoft . CodeAnalysis . CodeStyle ;
78using Microsoft . CodeAnalysis . CSharp . Formatting ;
89
@@ -11,17 +12,18 @@ namespace Microsoft.CodeAnalysis.ExternalAccess.Razor.Features
1112 /// <summary>
1213 /// Wrapper for CSharpSyntaxFormattingOptions for Razor external access.
1314 /// </summary>
15+ [ DataContract ]
1416 internal sealed record class RazorCSharpSyntaxFormattingOptions (
15- RazorSpacePlacement Spacing ,
16- RazorBinaryOperatorSpacingOptions SpacingAroundBinaryOperator ,
17- RazorNewLinePlacement NewLines ,
18- RazorLabelPositionOptions LabelPositioning ,
19- RazorIndentationPlacement Indentation ,
20- bool WrappingKeepStatementsOnSingleLine ,
21- bool WrappingPreserveSingleLine ,
22- RazorNamespaceDeclarationPreference NamespaceDeclarations ,
23- bool PreferTopLevelStatements ,
24- int CollectionExpressionWrappingLength )
17+ [ property : DataMember ] RazorSpacePlacement Spacing ,
18+ [ property : DataMember ] RazorBinaryOperatorSpacingOptions SpacingAroundBinaryOperator ,
19+ [ property : DataMember ] RazorNewLinePlacement NewLines ,
20+ [ property : DataMember ] RazorLabelPositionOptions LabelPositioning ,
21+ [ property : DataMember ] RazorIndentationPlacement Indentation ,
22+ [ property : DataMember ] bool WrappingKeepStatementsOnSingleLine ,
23+ [ property : DataMember ] bool WrappingPreserveSingleLine ,
24+ [ property : DataMember ] RazorNamespaceDeclarationPreference NamespaceDeclarations ,
25+ [ property : DataMember ] bool PreferTopLevelStatements ,
26+ [ property : DataMember ] int CollectionExpressionWrappingLength )
2527 {
2628 public static readonly RazorCSharpSyntaxFormattingOptions Default = new ( ) ;
2729
0 commit comments