Added TypeOfExpression::preprocess(expression, document).

The method `preprocess' returns the preprocessed text for the given expression.
This commit is contained in:
Roberto Raggi
2008-12-18 10:49:27 +01:00
parent 4acbbe835c
commit 22f223e732
2 changed files with 8 additions and 0 deletions

View File

@@ -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;

View File

@@ -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.
*/