This module is toolbox for operating on types and it's declarations. It should simplify required operations.

  • Use flat object to extract type or declaration hierarchy into stream so it can be searched or filtered.

    value stringflatHierarchy = flat.types(`String`);
    assert(stringflatHierarchy.containsEvery([`SearchableList<Character>`,`List<Character>`,`Comparable<String>`,`Object`]));
    
    value stringflatHierarchy = flat.declarations(`class String`);
    assert(stringflatHierarchy.containsEvery([`interface SearchableList`,`interface List`,`interface Comparable`,`class Object`]));
    
By: Wojciech Potiopa
License: http://www.apache.org/licenses/LICENSE-2.0.html
Packages
herd.type.support
Values
flatshared flat flat

Anonymous object providing posibilities for flattening hierarchy, for given type or declaration

Classes
flatshared flat

Anonymous object providing posibilities for flattening hierarchy, for given type or declaration