public static IPythonCollection CreateSet(IPythonModule declaringModule, IReadOnlyList <IMember> contents, bool flatten = true, bool exact = false) { var collectionType = new PythonCollectionType(BuiltinTypeId.Set, declaringModule, true); return(new PythonCollection(collectionType, contents, flatten, exact: exact)); }
public static IPythonCollection CreateTuple(IPythonModule declaringModule, IReadOnlyList <IMember> contents, bool exact = false) { var collectionType = new PythonCollectionType(BuiltinTypeId.Tuple, declaringModule, false); return(new PythonCollection(collectionType, contents, exact: exact)); }
public static IPythonCollection CreateSet(IPythonInterpreter interpreter, LocationInfo location, IReadOnlyList <IMember> contents, bool flatten = true) { var collectionType = new PythonCollectionType(null, BuiltinTypeId.Set, interpreter, true); return(new PythonCollection(collectionType, location, contents, flatten)); }
public static IPythonCollection CreateTuple(IPythonInterpreter interpreter, LocationInfo location, IReadOnlyList <IMember> contents) { var collectionType = new PythonCollectionType(null, BuiltinTypeId.Tuple, interpreter, false); return(new PythonCollection(collectionType, location, contents)); }
public static IPythonCollection CreateSet(IPythonInterpreter interpreter, IReadOnlyList <IMember> contents, bool flatten = true, bool exact = false) { var collectionType = new PythonCollectionType(null, BuiltinTypeId.Set, interpreter, true); return(new PythonCollection(collectionType, contents, flatten, exact: exact)); }
public static IPythonCollection CreateTuple(IPythonInterpreter interpreter, IReadOnlyList <IMember> contents, bool exact = false) { var collectionType = new PythonCollectionType(null, BuiltinTypeId.Tuple, interpreter, false); return(new PythonCollection(collectionType, contents, exact: exact)); }