Debugger: Add interface for expression evaluation.

SourceLanguage:
- Add a virtual to the language base class that requests expression
  evaluation.
This commit is contained in:
Rene Gollent
2014-10-25 16:50:45 -04:00
parent 50d274f7f9
commit 732fd84401
2 changed files with 15 additions and 1 deletions
@@ -1,5 +1,6 @@
/* /*
* Copyright 2009, Ingo Weinhold, [email protected]. * Copyright 2009, Ingo Weinhold, [email protected].
* Copyright 2014, Rene Gollent, [email protected].
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
*/ */
@@ -20,8 +21,16 @@ SourceLanguage::GetSyntaxHighlighter() const
status_t status_t
SourceLanguage::ParseTypeExpression(const BString &expression, SourceLanguage::ParseTypeExpression(const BString& expression,
TeamTypeInformation* info, Type*& _resultType) const TeamTypeInformation* info, Type*& _resultType) const
{ {
return B_NOT_SUPPORTED; return B_NOT_SUPPORTED;
} }
status_t
SourceLanguage::EvaluateExpression(const BString& expression,
Value*& _resultValue)
{
return B_NOT_SUPPORTED;
}
@@ -1,5 +1,6 @@
/* /*
* Copyright 2009, Ingo Weinhold, [email protected]. * Copyright 2009, Ingo Weinhold, [email protected].
* Copyright 2014, Rene Gollent, [email protected].
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
*/ */
#ifndef SOURCE_LANGUAGE_H #ifndef SOURCE_LANGUAGE_H
@@ -13,6 +14,7 @@ class BString;
class SyntaxHighlighter; class SyntaxHighlighter;
class TeamTypeInformation; class TeamTypeInformation;
class Type; class Type;
class Value;
class SourceLanguage : public BReferenceable { class SourceLanguage : public BReferenceable {
@@ -28,6 +30,9 @@ public:
virtual status_t ParseTypeExpression(const BString &expression, virtual status_t ParseTypeExpression(const BString &expression,
TeamTypeInformation* info, TeamTypeInformation* info,
Type*& _resultType) const; Type*& _resultType) const;
virtual status_t EvaluateExpression(const BString& expression,
Value*& _output);
}; };