Skip to content

Commit ecfcba6

Browse files
author
thk123
committed
Add documentation to the member_of function
1 parent 4eb7d04 commit ecfcba6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

jbmc/src/java_bytecode/java_bytecode_convert_method.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,14 @@ static irep_idt get_if_cmp_operator(const irep_idt &stmt)
647647
throw "unhandled java comparison instruction";
648648
}
649649

650+
/// Build a member exprt for accessing a specific field that may come from a
651+
/// base class.
652+
/// \param pointer: The expression to access the field on.
653+
/// \param fieldref: A getfield/setfield instruction produced by the bytecode
654+
/// parser.
655+
/// \param ns: Global namespace
656+
/// \return A member expression accessing the field, through base class
657+
/// components if necessary.
650658
static member_exprt
651659
to_member(const exprt &pointer, const exprt &fieldref, const namespacet &ns)
652660
{

0 commit comments

Comments
 (0)