MCPcopy Index your code
hub / github.com/nodejs/node / get_string_value

Function get_string_value

deps/v8/tools/lldb_visualizers.py:139–147  ·  view source on GitHub ↗
(valobj)

Source from the content-addressed store, hash-verified

137
138
139def get_string_value(valobj):
140 # Count on existing std::string visualizer to give us a summary so we don't
141 # need to do valobj.__r_.__value_.__l.__data_
142 summary = valobj.GetSummary()
143 if summary and len(summary) >= 2 and summary[0] == '"' and summary[-1] == '"':
144 # Also count on the std::string summary being a valid python string
145 # representation.
146 return eval(summary)
147 return None
148
149
150def make_synthetic_field(parent, summary, name):

Callers 3

populate_childrenMethod · 0.85

Calls 1

evalFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…