List<NamedType> get typeNames => astNode.types .map( (name) => NamedType(name, getType), ) .toList();