public AstPythonIterable( IPythonType iterableType, IEnumerable <IPythonType> types, IPythonType iteratorBase, IPythonModule declaringModule ) : base(iterableType, declaringModule) { IteratorType = new AstPythonIterator(iteratorBase, types, declaringModule); }
public AstPythonSequence( IPythonType sequenceType, IPythonModule declaringModule, IEnumerable <IPythonType> contents, IPythonType iteratorBase ) : base(sequenceType, declaringModule) { IndexTypes = (contents ?? throw new ArgumentNullException(nameof(contents))).ToArray(); IteratorType = new AstPythonIterator(iteratorBase, IndexTypes, declaringModule); }
public AstPythonIterable( IPythonType iterableType, IEnumerable <IPythonType> types, IPythonType iteratorBase, IPythonModule declModule ) { _type = iterableType; IteratorType = new AstPythonIterator(iteratorBase, types, declModule); DeclaringModule = declModule; }