forked from qt-creator/qt-creator
Added TypeOfExpression::preprocess(expression, document).
The method `preprocess' returns the preprocessed text for the given expression.
This commit is contained in:
@@ -70,6 +70,12 @@ QList<TypeOfExpression::Result> TypeOfExpression::operator()(const QString &expr
|
||||
return resolveExpression(m_ast);
|
||||
}
|
||||
|
||||
QString TypeOfExpression::preprocess(const QString &expression,
|
||||
Document::Ptr document) const
|
||||
{
|
||||
return preprocessedExpression(expression, m_snapshot, document);
|
||||
}
|
||||
|
||||
ExpressionAST *TypeOfExpression::ast() const
|
||||
{
|
||||
return m_ast;
|
||||
|
||||
@@ -84,6 +84,8 @@ public:
|
||||
Symbol *lastVisibleSymbol,
|
||||
PreprocessMode mode = NoPreprocess);
|
||||
|
||||
QString preprocess(const QString &expression, Document::Ptr document) const;
|
||||
|
||||
/**
|
||||
* Returns the AST of the last evaluated expression.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user