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

Method BeginLines

lang/rust/pseudorust.cpp:35–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34
35void PseudoRustFunction::BeginLines(const HighLevelILInstruction& instr, HighLevelILTokenEmitter& tokens)
36{
37 if (instr.exprIndex == m_highLevelIL->GetRootExpr().exprIndex)
38 {
39 // At top level, add braces around the entire function
40 tokens.PrependCollapseIndicator();
41 tokens.AppendOpenBrace();
42 tokens.NewLine();
43 tokens.IncreaseIndent();
44 }
45}
46
47
48void PseudoRustFunction::EndLines(const HighLevelILInstruction& instr, HighLevelILTokenEmitter& tokens)

Callers

nothing calls this directly

Calls 5

GetRootExprMethod · 0.80
AppendOpenBraceMethod · 0.80
NewLineMethod · 0.80
IncreaseIndentMethod · 0.80

Tested by

no test coverage detected