@@ -734,7 +734,7 @@ void PseudoCFunction::GetExprTextInternal(const HighLevelILInstruction& instr, H
734734
735735 auto function = m_highLevelIL->GetFunction ();
736736 if (instr.ast )
737- tokens.PrependCollapseIndicator (function, instr);
737+ tokens.PrependCollapseIndicator (function, instr, settings );
738738
739739 // ensure we claim the line address for top level instrs on a line
740740 if (instr.operation != HLIL_BLOCK )
@@ -813,7 +813,7 @@ void PseudoCFunction::GetExprTextInternal(const HighLevelILInstruction& instr, H
813813 if (updateExpr.operation != HLIL_NOP )
814814 GetExprTextInternal (updateExpr, tokens, settings);
815815 tokens.AppendCloseParen ();
816- if (function-> IsInstructionCollapsed (instr))
816+ if (HighLevelILTokenEmitter:: IsInstructionCollapsed (function, instr, settings ))
817817 {
818818 tokens.Append (CollapsedInformationToken, " {...}" );
819819 }
@@ -854,7 +854,7 @@ void PseudoCFunction::GetExprTextInternal(const HighLevelILInstruction& instr, H
854854 if (!instr.ast )
855855 return ;
856856
857- if (function-> IsInstructionCollapsed (instr))
857+ if (HighLevelILTokenEmitter:: IsInstructionCollapsed (function, instr, settings ))
858858 {
859859 tokens.Append (CollapsedInformationToken, " {...}" );
860860 }
@@ -875,9 +875,9 @@ void PseudoCFunction::GetExprTextInternal(const HighLevelILInstruction& instr, H
875875 else if (falseExpr.operation != HLIL_NOP )
876876 {
877877 tokens.ScopeContinuation (false );
878- tokens.PrependCollapseIndicator (function, instr, 1 );
878+ tokens.PrependCollapseIndicator (function, instr, settings, 1 );
879879 tokens.Append (KeywordToken, " else" );
880- if (function-> IsInstructionCollapsed (instr, 1 ))
880+ if (HighLevelILTokenEmitter:: IsInstructionCollapsed (function, instr, settings , 1 ))
881881 {
882882 tokens.Append (CollapsedInformationToken, " {...}" );
883883 tokens.NewLine ();
@@ -910,7 +910,7 @@ void PseudoCFunction::GetExprTextInternal(const HighLevelILInstruction& instr, H
910910 if (!instr.ast )
911911 return ;
912912
913- if (function-> IsInstructionCollapsed (instr))
913+ if (HighLevelILTokenEmitter:: IsInstructionCollapsed (function, instr, settings ))
914914 {
915915 tokens.Append (CollapsedInformationToken, " {...}" );
916916 }
@@ -933,7 +933,7 @@ void PseudoCFunction::GetExprTextInternal(const HighLevelILInstruction& instr, H
933933 if (instr.ast )
934934 {
935935 tokens.Append (KeywordToken, " do" );
936- if (function-> IsInstructionCollapsed (instr))
936+ if (HighLevelILTokenEmitter:: IsInstructionCollapsed (function, instr, settings ))
937937 {
938938 tokens.Append (CollapsedInformationToken, " {...}" );
939939 tokens.NewLine ();
@@ -983,7 +983,7 @@ void PseudoCFunction::GetExprTextInternal(const HighLevelILInstruction& instr, H
983983 if (!instr.ast )
984984 return ;
985985
986- if (function-> IsInstructionCollapsed (instr))
986+ if (HighLevelILTokenEmitter:: IsInstructionCollapsed (function, instr, settings ))
987987 {
988988 tokens.Append (CollapsedInformationToken, " {...}" );
989989 }
@@ -998,10 +998,10 @@ void PseudoCFunction::GetExprTextInternal(const HighLevelILInstruction& instr, H
998998
999999 if (defaultExpr.operation != HLIL_NOP && defaultExpr.operation != HLIL_UNREACHABLE )
10001000 {
1001- tokens.PrependCollapseIndicator (function, instr, 1 );
1001+ tokens.PrependCollapseIndicator (function, instr, settings, 1 );
10021002 tokens.Append (KeywordToken, " default" );
10031003 tokens.Append (TextToken, " :" );
1004- if (function-> IsInstructionCollapsed (instr, 1 ))
1004+ if (HighLevelILTokenEmitter:: IsInstructionCollapsed (function, instr, settings , 1 ))
10051005 {
10061006 tokens.Append (CollapsedInformationToken, " {...}" );
10071007 }
@@ -1038,13 +1038,13 @@ void PseudoCFunction::GetExprTextInternal(const HighLevelILInstruction& instr, H
10381038 if (!instr.ast )
10391039 return ;
10401040
1041- if (function-> IsInstructionCollapsed (instr))
1041+ if (HighLevelILTokenEmitter:: IsInstructionCollapsed (function, instr, settings ))
10421042 {
10431043 tokens.Append (CollapsedInformationToken, " {...}" );
10441044 }
10451045 else
10461046 {
1047- tokens.PrependCollapseIndicator (function, instr);
1047+ tokens.PrependCollapseIndicator (function, instr, settings );
10481048 tokens.BeginScope (CaseScopeType);
10491049 GetExprTextInternal (trueExpr, tokens, settings, TopLevelOperatorPrecedence, true );
10501050
0 commit comments