Added warning when attempting to use #show statements without completion.
This commit is contained in:
parent
19ede968ed
commit
95984f0447
@ -64,10 +64,11 @@ void translate(const char *fileName, std::istream &stream, Context &context)
|
|||||||
|
|
||||||
ast::PrintContext printContext;
|
ast::PrintContext printContext;
|
||||||
|
|
||||||
// TODO: respect predicate visibility in output
|
|
||||||
|
|
||||||
if (!context.complete)
|
if (!context.complete)
|
||||||
{
|
{
|
||||||
|
if (context.visiblePredicateSignatures)
|
||||||
|
context.logger.log(output::Priority::Warning) << "#show statements are ignored because completion is not enabled";
|
||||||
|
|
||||||
for (const auto &scopedFormula : scopedFormulas)
|
for (const auto &scopedFormula : scopedFormulas)
|
||||||
{
|
{
|
||||||
ast::print(context.logger.outputStream(), scopedFormula.formula, printContext);
|
ast::print(context.logger.outputStream(), scopedFormula.formula, printContext);
|
||||||
|
Loading…
Reference in New Issue
Block a user