MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / GetExprTextCallback

Method GetExprTextCallback

languagerepresentation.cpp:135–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133
134
135void 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
148void LanguageRepresentationFunction::BeginLinesCallback(void* ctxt, BNHighLevelILFunction* il, size_t exprIndex,

Callers

nothing calls this directly

Calls 2

GetExprMethod · 0.45
GetExprTextMethod · 0.45

Tested by

no test coverage detected