resolveGenerics function

Iterable<TypeToken> resolveGenerics(
  1. String fullTypeName
)

Implementation

Iterable<TypeToken> resolveGenerics(String fullTypeName) sync* {
  String fullGeneric = _getGenericsString(fullTypeName);
  List<String> genericStrings = _splitGenerics(fullGeneric).toList();
  for (var genericString in genericStrings) {
    String childGenericString = _getGenericsString(genericString);
    if (childGenericString == null) {
      yield TypeToken.ofName(genericString);
    } else {
      yield TypeToken.ofName(resolveTypeName(genericString), resolveGenerics(genericString).toList());
    }
  }
}