addTypeMapper method
Adds a typeMapper
. A TypeMapper is able to convert a node to another
structure, allowing to match different types from original behavior.
Implementation
bool addTypeMapper(TypeMapper typeMapper) {
if (_typeMappers.contains(typeMapper)) return false;
_typeMappers.add(typeMapper);
return true;
}