CLI2: Removed obsolete ::decomposeModTags
This commit is contained in:
22
src/CLI2.cpp
22
src/CLI2.cpp
@@ -638,7 +638,6 @@ void CLI2::prepareFilter (bool applyContext)
|
|||||||
insertJunctions (); // Deliberately after all desugar calls.
|
insertJunctions (); // Deliberately after all desugar calls.
|
||||||
|
|
||||||
// Decompose the elements for MODIFICATIONs.
|
// Decompose the elements for MODIFICATIONs.
|
||||||
//decomposeModTags ();
|
|
||||||
//decomposeModSubstitutions ();
|
//decomposeModSubstitutions ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1697,27 +1696,6 @@ void CLI2::defaultCommand ()
|
|||||||
context.debug (dump ("CLI2::analyze defaultCommand"));
|
context.debug (dump ("CLI2::analyze defaultCommand"));
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
void CLI2::decomposeModTags ()
|
|
||||||
{
|
|
||||||
bool changes = false;
|
|
||||||
for (auto& a : _args)
|
|
||||||
{
|
|
||||||
if (a._lextype == Lexer::Type::tag &&
|
|
||||||
a.hasTag ("MODIFICATION"))
|
|
||||||
{
|
|
||||||
std::string raw = a.attribute ("raw");
|
|
||||||
a.attribute ("name", raw.substr (1));
|
|
||||||
a.attribute ("sign", raw.substr (0, 1));
|
|
||||||
changes = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (changes &&
|
|
||||||
context.config.getInteger ("debug.parser") >= 3)
|
|
||||||
context.debug (dump ("CLI2::prepareFilter decomposeModTags"));
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
void CLI2::decomposeModSubstitutions ()
|
void CLI2::decomposeModSubstitutions ()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -104,7 +104,6 @@ private:
|
|||||||
void desugarFilterPlainArgs ();
|
void desugarFilterPlainArgs ();
|
||||||
void insertJunctions ();
|
void insertJunctions ();
|
||||||
void defaultCommand ();
|
void defaultCommand ();
|
||||||
void decomposeModTags ();
|
|
||||||
void decomposeModSubstitutions ();
|
void decomposeModSubstitutions ();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user