visitTypeVariantParameterNode method

  1. @override
Future<Element> visitTypeVariantParameterNode(
  1. TypeVariantParameterNode node
)
override

Implementation

@override
Future<Element> visitTypeVariantParameterNode(TypeVariantParameterNode node) async {
  try {
    final type = _resolveTypeIdentifier(node.typeIdentifier);
    return ParameterElement(name: node.name.lexeme)..type = type;
  } on _SymbolNotResolved {
    final parameter = ParameterElement(name: node.name.lexeme);
    _unresolvedParameters[parameter] = node;
    return parameter;
  }
}