mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Command
- Added a debug mode parse tree dump in Command::filter, which is the first opportunity to see the complete tree. There will be other places where this occurs too.
This commit is contained in:
parent
6f948826a7
commit
3cb10a4850
1 changed files with 14 additions and 0 deletions
|
@ -292,6 +292,13 @@ void Command::filter (const std::vector <Task>& input, std::vector <Task>& outpu
|
||||||
A3 filt = context.a3.extract_filter ();
|
A3 filt = context.a3.extract_filter ();
|
||||||
filt.dump ("extract_filter");
|
filt.dump ("extract_filter");
|
||||||
|
|
||||||
|
if (context.config.getBoolean ("debug"))
|
||||||
|
{
|
||||||
|
Tree* t = context.a3t.tree ();
|
||||||
|
if (t)
|
||||||
|
context.debug (t->dump ());
|
||||||
|
}
|
||||||
|
|
||||||
if (filt.size ())
|
if (filt.size ())
|
||||||
{
|
{
|
||||||
E9 e (filt);
|
E9 e (filt);
|
||||||
|
@ -315,6 +322,13 @@ void Command::filter (std::vector <Task>& output)
|
||||||
A3 filt = context.a3.extract_filter ();
|
A3 filt = context.a3.extract_filter ();
|
||||||
filt.dump ("extract_filter");
|
filt.dump ("extract_filter");
|
||||||
|
|
||||||
|
if (context.config.getBoolean ("debug"))
|
||||||
|
{
|
||||||
|
Tree* t = context.a3t.tree ();
|
||||||
|
if (t)
|
||||||
|
context.debug (t->dump ());
|
||||||
|
}
|
||||||
|
|
||||||
if (filt.size ())
|
if (filt.size ())
|
||||||
{
|
{
|
||||||
context.timer_filter.stop ();
|
context.timer_filter.stop ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue