@@ -56,7 +56,7 @@ class UserExpression : public Expression {
5656 // / If not eResultTypeAny, the type to use for the expression
5757 // / result.
5858 UserExpression (ExecutionContextScope &exe_scope, llvm::StringRef expr,
59- llvm::StringRef prefix, lldb::LanguageType language,
59+ llvm::StringRef prefix, SourceLanguage language,
6060 ResultType desired_type,
6161 const EvaluateExpressionOptions &options);
6262
@@ -196,7 +196,7 @@ class UserExpression : public Expression {
196196 virtual bool IsParseCacheable () { return true ; }
197197 // / Return the language that should be used when parsing. To use the
198198 // / default, return eLanguageTypeUnknown.
199- lldb::LanguageType Language () const override { return m_language; }
199+ SourceLanguage Language () const override { return m_language; }
200200
201201 // / Return the desired result type of the function, or eResultTypeAny if
202202 // / indifferent.
@@ -308,19 +308,22 @@ class UserExpression : public Expression {
308308 lldb::ProcessSP &process_sp,
309309 lldb::StackFrameSP &frame_sp);
310310
311- Address m_address; // /< The address the process is stopped in.
312- std::string m_expr_text; // /< The text of the expression, as typed by the user
313- std::string m_expr_prefix; // /< The text of the translation-level definitions,
314- // /as provided by the user
315- std::string m_fixed_text; // /< The text of the expression with fix-its applied
316- // /- this won't be set if the fixed text doesn't
317- // /parse.
318- lldb::LanguageType m_language; // /< The language to use when parsing
319- // /(eLanguageTypeUnknown means use defaults)
320- ResultType m_desired_type; // /< The type to coerce the expression's result to.
321- // /If eResultTypeAny, inferred from the expression.
322- EvaluateExpressionOptions
323- m_options; // /< Additional options provided by the user.
311+ // / The address the process is stopped in.
312+ Address m_address;
313+ // / The text of the expression, as typed by the user.
314+ std::string m_expr_text;
315+ // / The text of the translation-level definitions, as provided by the user.
316+ std::string m_expr_prefix;
317+ // / The text of the expression with fix-its applied this won't be set if the
318+ // / fixed text doesn't parse.
319+ std::string m_fixed_text;
320+ // / The language to use when parsing (unknown means use defaults).
321+ SourceLanguage m_language;
322+ // / The type to coerce the expression's result to. If eResultTypeAny, inferred
323+ // / from the expression.
324+ ResultType m_desired_type;
325+ // / Additional options provided by the user.
326+ EvaluateExpressionOptions m_options;
324327};
325328
326329} // namespace lldb_private
0 commit comments