Skip to content

Commit ea59d21

Browse files
author
svorenova
committed
Add a comment to static field with the name of the field
1 parent ba00679 commit ea59d21

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

jbmc/src/java_bytecode/java_bytecode_convert_class.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,7 @@ void java_bytecode_convert_classt::convert(
645645
// link matches the method used by java_bytecode_convert_method::convert
646646
// for methods.
647647
new_symbol.type.set(ID_C_class, class_symbol.name);
648+
new_symbol.type.set(ID_C_field, f.name);
648649
new_symbol.type.set(ID_C_constant, f.is_final);
649650
new_symbol.pretty_name=id2string(class_symbol.pretty_name)+
650651
"."+id2string(f.name);

src/util/irep_ids.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ IREP_ID_TWO(power, **)
350350
IREP_ID_ONE(factorial_power)
351351
IREP_ID_ONE(pretty_name)
352352
IREP_ID_TWO(C_class, #class)
353+
IREP_ID_TWO(C_field, #field)
353354
IREP_ID_TWO(C_interface, #interface)
354355
IREP_ID_ONE(event)
355356
IREP_ID_ONE(designated_initializer)

0 commit comments

Comments
 (0)