| 133 | |
| 134 | |
| 135 | void LanguageRepresentationFunction::GetExprTextCallback(void* ctxt, BNHighLevelILFunction* il, size_t exprIndex, |
| 136 | BNHighLevelILTokenEmitter* tokens, BNDisassemblySettings* settings, bool asFullAst, |
| 137 | BNOperatorPrecedence precedence, bool statement) |
| 138 | { |
| 139 | LanguageRepresentationFunction* func = (LanguageRepresentationFunction*)ctxt; |
| 140 | Ref<HighLevelILFunction> ilObj = new HighLevelILFunction(BNNewHighLevelILFunctionReference(il)); |
| 141 | HighLevelILInstruction instr = ilObj->GetExpr(exprIndex, asFullAst); |
| 142 | Ref<HighLevelILTokenEmitter> tokenObj = new HighLevelILTokenEmitter(BNNewHighLevelILTokenEmitterReference(tokens)); |
| 143 | Ref<DisassemblySettings> settingsObj = settings ? new DisassemblySettings(BNNewDisassemblySettingsReference(settings)) : nullptr; |
| 144 | func->GetExprText(instr, *tokenObj, settingsObj, precedence, statement); |
| 145 | } |
| 146 | |
| 147 | |
| 148 | void LanguageRepresentationFunction::BeginLinesCallback(void* ctxt, BNHighLevelILFunction* il, size_t exprIndex, |
nothing calls this directly
no test coverage detected