visitTypeLiteral method
Implementation
@override
void visitTypeLiteral(TypeLiteral typeLiteral) {
assert(_currentClass != null);
final class$ = _currentClass!;
final type = resolver.annotations[typeLiteral]!;
if (_currentContext is TypeDefinitionStatement) {
class$.addParameter(type);
} else if (_currentContext is TypeVariantNode) {
for (final type in _typeParametersFromType(type)) {
class$.addParameter(type);
}
}
}