diff options
Diffstat (limited to 'include/lldb/Expression/ExpressionSourceCode.h')
-rw-r--r-- | include/lldb/Expression/ExpressionSourceCode.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/lldb/Expression/ExpressionSourceCode.h b/include/lldb/Expression/ExpressionSourceCode.h index 2dd09378fcd2..33ceade45558 100644 --- a/include/lldb/Expression/ExpressionSourceCode.h +++ b/include/lldb/Expression/ExpressionSourceCode.h @@ -54,10 +54,17 @@ public: bool GetText (std::string &text, lldb::LanguageType wrapping_language, - bool const_object, bool static_method, ExecutionContext &exe_ctx) const; + // Given a string returned by GetText, find the beginning and end of the body passed to CreateWrapped. + // Return true if the bounds could be found. This will also work on text with FixItHints applied. + static bool + GetOriginalBodyBounds(std::string transformed_text, + lldb::LanguageType wrapping_language, + size_t &start_loc, + size_t &end_loc); + private: ExpressionSourceCode (const char *name, const char *prefix, |