File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -461,7 +461,7 @@ private ParserState OverallParserStateFromModuleStates()
461461 return ParserState . ResolverError ;
462462 }
463463
464- // intermediate states are toggled when *any* module has them .
464+ //The lowest state wins .
465465 var result = ParserState . None ;
466466 foreach ( var item in moduleStates )
467467 {
@@ -471,23 +471,6 @@ private ParserState OverallParserStateFromModuleStates()
471471 }
472472 }
473473
474- if ( stateCounts [ ( int ) ParserState . Pending ] > 0 )
475- {
476- result = ParserState . Pending ;
477- }
478- if ( stateCounts [ ( int ) ParserState . Parsing ] > 0 )
479- {
480- result = ParserState . Parsing ;
481- }
482- if ( stateCounts [ ( int ) ParserState . ResolvingDeclarations ] > 0 )
483- {
484- result = ParserState . ResolvingDeclarations ;
485- }
486- if ( stateCounts [ ( int ) ParserState . ResolvingReferences ] > 0 )
487- {
488- result = ParserState . ResolvingReferences ;
489- }
490-
491474 if ( result == ParserState . Ready )
492475 {
493476 for ( var i = 0 ; i < stateCounts . Length ; i ++ )
You can’t perform that action at this time.
0 commit comments