private IPythonType CreateIteratorType(IReadOnlyList <IPythonType> typeArgs) { if (typeArgs.Count == 1) { return(TypingTypeFactory.CreateIteratorType(Interpreter, typeArgs[0])); } // TODO: report wrong number of arguments return(Interpreter.UnknownType); }
private IPythonType CreateIteratorType(IReadOnlyList <IPythonType> typeArgs) { if (typeArgs.Count == 1) { // If argument is generic type parameter then this is still a generic specification return(typeArgs[0] is IGenericTypeParameter ? ToGenericTemplate("Iterator", typeArgs, BuiltinTypeId.ListIterator) : TypingTypeFactory.CreateIteratorType(Interpreter, typeArgs[0])); } // TODO: report wrong number of arguments return(Interpreter.UnknownType); }