@@ -65,10 +65,16 @@ public sealed class TypeAssigningEventEmitter : ChainedEventEmitter
65
65
+ @"|\.(nan|NaN|NAN)"
66
66
+ @")$" ;
67
67
68
- private readonly ScalarStyle defaultScalarStyle ;
68
+ private readonly ScalarStyle defaultScalarStyle = ScalarStyle . Any ;
69
69
70
- public TypeAssigningEventEmitter ( IEventEmitter nextEmitter , bool requireTagWhenStaticAndActualTypesAreDifferent , IDictionary < Type , TagName > tagMappings , bool quoteNecessaryStrings , bool quoteYaml1_1Strings , ScalarStyle defaultScalarStyle = ScalarStyle . Any )
71
- : this ( nextEmitter , requireTagWhenStaticAndActualTypesAreDifferent , tagMappings , defaultScalarStyle : defaultScalarStyle )
70
+ public TypeAssigningEventEmitter ( IEventEmitter nextEmitter , bool requireTagWhenStaticAndActualTypesAreDifferent , IDictionary < Type , TagName > tagMappings , bool quoteNecessaryStrings , bool quoteYaml1_1Strings , ScalarStyle defaultScalarStyle )
71
+ : this ( nextEmitter , requireTagWhenStaticAndActualTypesAreDifferent , tagMappings , quoteNecessaryStrings , quoteYaml1_1Strings )
72
+ {
73
+ this . defaultScalarStyle = defaultScalarStyle ;
74
+ }
75
+
76
+ public TypeAssigningEventEmitter ( IEventEmitter nextEmitter , bool requireTagWhenStaticAndActualTypesAreDifferent , IDictionary < Type , TagName > tagMappings , bool quoteNecessaryStrings , bool quoteYaml1_1Strings )
77
+ : this ( nextEmitter , requireTagWhenStaticAndActualTypesAreDifferent , tagMappings )
72
78
{
73
79
this . quoteNecessaryStrings = quoteNecessaryStrings ;
74
80
@@ -82,8 +88,14 @@ public TypeAssigningEventEmitter(IEventEmitter nextEmitter, bool requireTagWhenS
82
88
#endif
83
89
}
84
90
85
- public TypeAssigningEventEmitter ( IEventEmitter nextEmitter , bool requireTagWhenStaticAndActualTypesAreDifferent , IDictionary < Type , TagName > tagMappings , bool quoteNecessaryStrings , ScalarStyle defaultScalarStyle = ScalarStyle . Any )
86
- : this ( nextEmitter , requireTagWhenStaticAndActualTypesAreDifferent , tagMappings , defaultScalarStyle : defaultScalarStyle )
91
+ public TypeAssigningEventEmitter ( IEventEmitter nextEmitter , bool requireTagWhenStaticAndActualTypesAreDifferent , IDictionary < Type , TagName > tagMappings , bool quoteNecessaryStrings , ScalarStyle defaultScalarStyle )
92
+ : this ( nextEmitter , requireTagWhenStaticAndActualTypesAreDifferent , tagMappings , quoteNecessaryStrings )
93
+ {
94
+ this . defaultScalarStyle = defaultScalarStyle ;
95
+ }
96
+
97
+ public TypeAssigningEventEmitter ( IEventEmitter nextEmitter , bool requireTagWhenStaticAndActualTypesAreDifferent , IDictionary < Type , TagName > tagMappings , bool quoteNecessaryStrings )
98
+ : this ( nextEmitter , requireTagWhenStaticAndActualTypesAreDifferent , tagMappings )
87
99
{
88
100
this . quoteNecessaryStrings = quoteNecessaryStrings ;
89
101
@@ -94,12 +106,11 @@ public TypeAssigningEventEmitter(IEventEmitter nextEmitter, bool requireTagWhenS
94
106
#endif
95
107
}
96
108
97
- public TypeAssigningEventEmitter ( IEventEmitter nextEmitter , bool requireTagWhenStaticAndActualTypesAreDifferent , IDictionary < Type , TagName > tagMappings , ScalarStyle defaultScalarStyle = ScalarStyle . Any )
109
+ public TypeAssigningEventEmitter ( IEventEmitter nextEmitter , bool requireTagWhenStaticAndActualTypesAreDifferent , IDictionary < Type , TagName > tagMappings )
98
110
: base ( nextEmitter )
99
111
{
100
112
this . requireTagWhenStaticAndActualTypesAreDifferent = requireTagWhenStaticAndActualTypesAreDifferent ;
101
113
this . tagMappings = tagMappings ?? throw new ArgumentNullException ( nameof ( tagMappings ) ) ;
102
- this . defaultScalarStyle = defaultScalarStyle ;
103
114
}
104
115
105
116
public override void Emit ( ScalarEventInfo eventInfo , IEmitter emitter )
0 commit comments