File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1289,7 +1289,10 @@ where n.AsNode().IsKind(SyntaxKind.NullableType)
12891289 }
12901290 else
12911291 {
1292+ _SNPropertyType = key . First ( ) . AsNode ( ) ;
1293+
12921294 key = key . First ( ) . ChildNodesAndTokens ( ) ;
1295+
12931296 if ( hasDefault )
12941297 {
12951298 field = SyntaxFactory . FieldDeclaration (
@@ -1298,7 +1301,8 @@ where n.AsNode().IsKind(SyntaxKind.NullableType)
12981301 . WithVariables (
12991302 SyntaxFactory . SingletonSeparatedList (
13001303 SyntaxFactory . VariableDeclarator (
1301- SyntaxFactory . Identifier ( _indentifier ) ) ) ) )
1304+ SyntaxFactory . Identifier ( _indentifier ) )
1305+ . WithInitializer ( defaultValue as EqualsValueClauseSyntax ) ) ) )
13021306 . WithModifiers (
13031307 SyntaxFactory . TokenList ( new [ ]
13041308 {
@@ -1315,8 +1319,7 @@ where n.AsNode().IsKind(SyntaxKind.NullableType)
13151319 . WithVariables (
13161320 SyntaxFactory . SingletonSeparatedList (
13171321 SyntaxFactory . VariableDeclarator (
1318- SyntaxFactory . Identifier ( _indentifier ) )
1319- . WithInitializer ( defaultValue as EqualsValueClauseSyntax ) ) ) )
1322+ SyntaxFactory . Identifier ( _indentifier ) ) ) ) )
13201323 . WithModifiers (
13211324 SyntaxFactory . TokenList ( new [ ]
13221325 {
You can’t perform that action at this time.
0 commit comments