mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Parser
- ::findBinary diagnostics.
This commit is contained in:
parent
d1e38a7843
commit
fbf8550274
1 changed files with 6 additions and 1 deletions
|
@ -338,9 +338,12 @@ void Parser::scan (void (Parser::*callback) (Tree*), Tree* tree /* = NULL */)
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Locate and tag the binary.
|
||||
// Locate and tag the binary. It is assumed that the binary is the first
|
||||
// argument, which is valid.
|
||||
void Parser::findBinary ()
|
||||
{
|
||||
context.debug ("Parser::findBinary");
|
||||
|
||||
if (_tree->_branches.size () >= 1)
|
||||
{
|
||||
_tree->_branches[0]->unTag ("?");
|
||||
|
@ -364,6 +367,8 @@ void Parser::findBinary ()
|
|||
_tree->_branches[0]->tag ("TW");
|
||||
}
|
||||
}
|
||||
|
||||
context.debug (_tree->dump ());
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue