File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed
packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Providers Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 1515
1616namespace Microsoft . Generator . CSharp . Providers
1717{
18- public sealed class ModelProvider : TypeProvider
18+ public class ModelProvider : TypeProvider
1919 {
2020 private const string AdditionalBinaryDataPropsFieldDescription = "Keeps track of any properties unknown to the library." ;
2121 private readonly InputModelType _inputModel ;
Original file line number Diff line number Diff line change @@ -123,11 +123,7 @@ public string? Deprecated
123123
124124 private TypeSignatureModifiers ? _declarationModifiers ;
125125
126- public TypeSignatureModifiers DeclarationModifiers
127- {
128- get => _declarationModifiers ??= GetDeclarationModifiersInternal ( ) ;
129- private set => _declarationModifiers = value ;
130- }
126+ public TypeSignatureModifiers DeclarationModifiers => _declarationModifiers ??= GetDeclarationModifiersInternal ( ) ;
131127
132128 protected virtual TypeSignatureModifiers GetDeclarationModifiers ( ) => TypeSignatureModifiers . None ;
133129
@@ -332,7 +328,9 @@ public void Update(
332328 IEnumerable < FieldProvider > ? fields = null ,
333329 IEnumerable < TypeProvider > ? serializations = null ,
334330 IEnumerable < TypeProvider > ? nestedTypes = null ,
335- XmlDocProvider ? xmlDocs = null )
331+ XmlDocProvider ? xmlDocs = null ,
332+ TypeSignatureModifiers ? modifiers = null ,
333+ string ? relativeFilePath = null )
336334 {
337335 if ( methods != null )
338336 {
@@ -362,6 +360,14 @@ public void Update(
362360 {
363361 XmlDocs = xmlDocs ;
364362 }
363+ if ( modifiers != null )
364+ {
365+ _declarationModifiers = modifiers ;
366+ }
367+ if ( relativeFilePath != null )
368+ {
369+ _relativeFilePath = relativeFilePath ;
370+ }
365371 }
366372 public IReadOnlyList < EnumTypeMember > EnumValues => _enumValues ??= BuildEnumValues ( ) ;
367373
You can’t perform that action at this time.
0 commit comments