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

Function _get_current_comment

python/scriptingprovider.py:1374–1383  ·  view source on GitHub ↗
(instance: PythonScriptingInstance)

Source from the content-addressed store, hash-verified

1372
1373
1374def _get_current_comment(instance: PythonScriptingInstance):
1375 if instance.interpreter.active_view is None:
1376 return None
1377
1378 if instance.interpreter.active_func is None:
1379 return instance.interpreter.active_view.get_comment_at(instance.interpreter.active_addr)
1380 elif instance.interpreter.active_func.get_comment_at(instance.interpreter.active_addr) != '':
1381 return instance.interpreter.active_func.get_comment_at(instance.interpreter.active_addr)
1382 else:
1383 return instance.interpreter.active_view.get_comment_at(instance.interpreter.active_addr)
1384
1385
1386def _set_current_comment(instance: PythonScriptingInstance, old_value: Any, new_value: Any):

Callers

nothing calls this directly

Calls 1

get_comment_atMethod · 0.45

Tested by

no test coverage detected