CLI2: Refactoring

- Whenever A2::attribute sees 'raw' being set, it automaticall decomposes the
  arg, which can now be removed from other methods.
- New ::canonicalizeNames method means that the ::decomposeMod* methods are no
  longer needed.
- Removed ::findOverrides which now does nothing.
This commit is contained in:
Paul Beckingham
2015-07-05 16:13:56 -04:00
parent b46bf15f40
commit 460f2aeea5
2 changed files with 84 additions and 30 deletions

View File

@@ -49,6 +49,9 @@ public:
const std::string getToken () const;
const std::string dump () const;
private:
void decompose ();
public:
Lexer::Type _lextype;
std::vector <std::string> _tags;
@@ -88,7 +91,7 @@ private:
void lexArguments ();
void demoteDOM ();
void aliasExpansion ();
void findOverrides ();
void canonicalizeNames ();
bool findCommand ();
bool exactMatch (const std::string&, const std::string&) const;
void desugarFilterTags ();