Commit 22f223e7 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Added TypeOfExpression::preprocess(expression, document).

The method `preprocess' returns the preprocessed text for the given expression.
parent 4acbbe83
......@@ -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.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment