File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/Discord.Net.ComponentDesigner.Generator/Graph Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -71,10 +71,10 @@ IList<DiagnosticInfo> diagnostics
7171 {
7272 children = new ( _children . Count ) ;
7373
74- for ( var i = 0 ; i < Children . Count ; i ++ )
74+ for ( var i = 0 ; i < _children . Count ; i ++ )
7575 {
76- var child = Children [ i ] ;
77- children [ i ] = child . UpdateState ( context , diagnostics ) ;
76+ var child = _children [ i ] ;
77+ children . Add ( child . UpdateState ( context , diagnostics ) ) ;
7878 recreate |= ! ReferenceEquals ( child , children [ i ] ) ;
7979 }
8080 }
@@ -83,10 +83,10 @@ IList<DiagnosticInfo> diagnostics
8383 {
8484 attrNodes = new ( _attributeNodes . Count ) ;
8585
86- for ( var i = 0 ; i < AttributeNodes . Count ; i ++ )
86+ for ( var i = 0 ; i < _attributeNodes . Count ; i ++ )
8787 {
88- var child = AttributeNodes [ i ] ;
89- attrNodes [ i ] = child . UpdateState ( context , diagnostics ) ;
88+ var child = _attributeNodes [ i ] ;
89+ attrNodes . Add ( child . UpdateState ( context , diagnostics ) ) ;
9090 recreate |= ! ReferenceEquals ( child , attrNodes [ i ] ) ;
9191 }
9292 }
You can’t perform that action at this time.
0 commit comments