├── .DS_Store
├── IronKit.csproj
├── IronKit.csproj.user
├── IronKit.sln
├── Properties
└── AssemblyInfo.cs
├── README.md
├── Source
├── IronPython.Modules
│ ├── GlobalSuppressions.cs
│ ├── IterTools.cs
│ ├── ModuleOps.cs
│ ├── NtSignalState.cs
│ ├── ResourceMetaPathImporter.cs
│ ├── SimpleSignalState.cs
│ ├── _bisect.cs
│ ├── _bytesio.cs
│ ├── _codecs.cs
│ ├── _codecs_cn.cs
│ ├── _collections.cs
│ ├── _csv.cs
│ ├── _ctypes
│ │ ├── Array.cs
│ │ ├── ArrayType.cs
│ │ ├── CData.cs
│ │ ├── CFuncPtr.cs
│ │ ├── CFuncPtrType.cs
│ │ ├── Extensions.cs
│ │ ├── Field.cs
│ │ ├── INativeType.cs
│ │ ├── LocalOrArg.cs
│ │ ├── MarshalCleanup.cs
│ │ ├── MemoryHolder.cs
│ │ ├── NativeArgument.cs
│ │ ├── NativeFunctions.cs
│ │ ├── Pointer.cs
│ │ ├── PointerType.cs
│ │ ├── SimpleCData.cs
│ │ ├── SimpleType.cs
│ │ ├── SimpleTypeKind.cs
│ │ ├── StructType.cs
│ │ ├── Structure.cs
│ │ ├── Union.cs
│ │ ├── UnionType.cs
│ │ └── _ctypes.cs
│ ├── _ctypes_test.cs
│ ├── _fileio.cs
│ ├── _functools.cs
│ ├── _heapq.cs
│ ├── _io.cs
│ ├── _locale.cs
│ ├── _multibytecodec.cs
│ ├── _random.RandomGen.cs
│ ├── _random.cs
│ ├── _socket.cs
│ ├── _sre.cs
│ ├── _ssl.cs
│ ├── _struct.cs
│ ├── _subprocess.cs
│ ├── _sysconfigdata.cs
│ ├── _warnings.cs
│ ├── _weakref.Generated.cs
│ ├── _weakref.cs
│ ├── _winreg.cs
│ ├── array.cs
│ ├── binascii.cs
│ ├── bz2
│ │ ├── BZ2Compressor.cs
│ │ ├── BZ2Decompressor.cs
│ │ ├── BZ2File.cs
│ │ ├── BZ2Module.cs
│ │ └── dotnetzip
│ │ │ ├── BZip2
│ │ │ ├── BZip2Compressor.cs
│ │ │ ├── BZip2InputStream.cs
│ │ │ ├── BZip2OutputStream.cs
│ │ │ ├── BitWriter.cs
│ │ │ ├── CRC32.cs
│ │ │ ├── ParallelBZip2OutputStream.cs
│ │ │ └── Rand.cs
│ │ │ └── source.txt
│ ├── cPickle.cs
│ ├── cStringIO.cs
│ ├── cmath.cs
│ ├── copy_reg.cs
│ ├── datetime.cs
│ ├── errno.cs
│ ├── gc.cs
│ ├── grp.cs
│ ├── hashlib
│ │ ├── MD5CryptoServiceProvider.cs
│ │ ├── SHA224.cs
│ │ ├── SHA224Managed.cs
│ │ ├── _hashlib.cs
│ │ ├── _md5.cs
│ │ ├── _sha.cs
│ │ ├── _sha256.cs
│ │ └── _sha512.cs
│ ├── marshal.cs
│ ├── math.Generated.cs
│ ├── math.cs
│ ├── mmap.cs
│ ├── msvcrt.cs
│ ├── nt.cs
│ ├── operator.cs
│ ├── pwd.cs
│ ├── pyexpat.cs
│ ├── re.cs
│ ├── select.cs
│ ├── signal.cs
│ ├── spwd.cs
│ ├── thread.cs
│ ├── time.cs
│ ├── winsound.cs
│ ├── xxsubtype.cs
│ ├── zipimport.cs
│ └── zlib
│ │ ├── Compress.cs
│ │ ├── Decompress.cs
│ │ └── ZlibModule.cs
├── IronPython
│ ├── Compiler
│ │ ├── Ast
│ │ │ ├── AndExpression.cs
│ │ │ ├── Arg.cs
│ │ │ ├── AssertStatement.cs
│ │ │ ├── AssignmentStatement.cs
│ │ │ ├── AstMethods.cs
│ │ │ ├── AugmentedAssignStatement.cs
│ │ │ ├── BackQuoteExpression.cs
│ │ │ ├── BinaryExpression.Generated.cs
│ │ │ ├── BinaryExpression.cs
│ │ │ ├── BreakStatement.cs
│ │ │ ├── CallExpression.cs
│ │ │ ├── ClassDefinition.cs
│ │ │ ├── Comprehension.cs
│ │ │ ├── ComprehensionFor.cs
│ │ │ ├── ComprehensionIf.cs
│ │ │ ├── ConditionalExpression.cs
│ │ │ ├── ConstantExpression.cs
│ │ │ ├── ContinueStatement.cs
│ │ │ ├── DelStatement.cs
│ │ │ ├── DictionaryExpression.cs
│ │ │ ├── DottedName.cs
│ │ │ ├── DynamicConvertExpression.cs
│ │ │ ├── DynamicGetMemberExpression.cs
│ │ │ ├── EmptyStatement.cs
│ │ │ ├── ErrorExpression.cs
│ │ │ ├── ExecStatement.cs
│ │ │ ├── Expression.cs
│ │ │ ├── ExpressionStatement.cs
│ │ │ ├── FlowChecker.cs
│ │ │ ├── ForStatement.cs
│ │ │ ├── FromImportStatement.cs
│ │ │ ├── FunctionDefinition.cs
│ │ │ ├── GeneratorExpression.cs
│ │ │ ├── GetGlobalContextExpression.cs
│ │ │ ├── GetParentContextFromFunctionExpression.cs
│ │ │ ├── GlobalStatement.cs
│ │ │ ├── ILoopStatement.cs
│ │ │ ├── IfStatement.cs
│ │ │ ├── IfStatementTest.cs
│ │ │ ├── ImportStatement.cs
│ │ │ ├── IndexExpression.cs
│ │ │ ├── LambdaExpression.cs
│ │ │ ├── ListExpression.cs
│ │ │ ├── MemberExpression.cs
│ │ │ ├── ModuleName.cs
│ │ │ ├── NameExpression.cs
│ │ │ ├── Node.cs
│ │ │ ├── OrExpression.cs
│ │ │ ├── Parameter.cs
│ │ │ ├── ParenthesisExpression.cs
│ │ │ ├── PrintStatement.cs
│ │ │ ├── PythonAst.cs
│ │ │ ├── PythonConstantExpression.cs
│ │ │ ├── PythonNameBinder.cs
│ │ │ ├── PythonOperator.cs
│ │ │ ├── PythonReference.cs
│ │ │ ├── PythonVariable.cs
│ │ │ ├── PythonWalker.Generated.cs
│ │ │ ├── RaiseStatement.cs
│ │ │ ├── RelativeModuleName.cs
│ │ │ ├── ReturnStatement.cs
│ │ │ ├── ScopeStatement.cs
│ │ │ ├── SequenceExpression.cs
│ │ │ ├── SerializedScopeStatement.cs
│ │ │ ├── SetExpression.cs
│ │ │ ├── SliceExpression.cs
│ │ │ ├── Statement.cs
│ │ │ ├── SuiteStatement.cs
│ │ │ ├── TryStatement.cs
│ │ │ ├── TupleExpression.cs
│ │ │ ├── UnaryExpression.cs
│ │ │ ├── VariableKind.cs
│ │ │ ├── WhileStatement.cs
│ │ │ ├── WithStatement.cs
│ │ │ └── YieldExpression.cs
│ │ ├── ClosureExpression.cs
│ │ ├── ClosureInfo.cs
│ │ ├── CollectableCompilationMode.cs
│ │ ├── CompilationMode.cs
│ │ ├── GeneratorRewriter.cs
│ │ ├── LazyCode.cs
│ │ ├── LookupCompilationMode.cs
│ │ ├── OnDiskScriptCode.cs
│ │ ├── Parser.cs
│ │ ├── PythonCallTargets.cs
│ │ ├── PythonCompilerOptions.cs
│ │ ├── PythonDynamicExpression.cs
│ │ ├── PythonGlobal.cs
│ │ ├── PythonGlobalVariableExpression.cs
│ │ ├── PythonSavableScriptCode.cs
│ │ ├── PythonScriptCode.cs
│ │ ├── ReducableDynamicExpression.cs
│ │ ├── RunnableScriptCode.cs
│ │ ├── RuntimeScriptCode.cs
│ │ ├── ToDiskCompilationMode.cs
│ │ ├── Token.cs
│ │ ├── TokenKind.Generated.cs
│ │ ├── Tokenizer.Generated.cs
│ │ ├── Tokenizer.cs
│ │ ├── UncollectableCompilationMode.Generated.cs
│ │ └── UncollectableCompilationMode.cs
│ ├── FakeInteropServices.cs
│ ├── GlobalSuppressions.cs
│ ├── Hosting
│ │ ├── Python.cs
│ │ ├── PythonCodeDomCodeGen.cs
│ │ ├── PythonCommandLine.cs
│ │ ├── PythonConsoleOptions.cs
│ │ ├── PythonOptionsParser.cs
│ │ └── PythonService.cs
│ ├── Lib
│ │ └── iptest
│ │ │ ├── __init__.py
│ │ │ ├── cominterop_util.py
│ │ │ ├── console_util.py
│ │ │ ├── file_util.py
│ │ │ ├── ipunittest.py
│ │ │ ├── misc_util.py
│ │ │ ├── process_util.py
│ │ │ ├── runner.py
│ │ │ ├── test_env.py
│ │ │ └── type_util.py
│ ├── MaybeNotImplementedAttribute.cs
│ ├── Modules
│ │ ├── Builtin.Generated.cs
│ │ ├── Builtin.cs
│ │ ├── _ast.cs
│ │ ├── imp.cs
│ │ ├── sys.cs
│ │ ├── unicodedata.cs
│ │ └── unicodedata
│ │ │ ├── EastAsianWidth.txt
│ │ │ ├── IPyUnicodeData.txt.gz
│ │ │ ├── UnicodeData.txt
│ │ │ └── genunicodedata.py
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ └── Runtime
│ │ ├── Binding
│ │ ├── BinaryRetTypeBinder.Generated.cs
│ │ ├── BinaryRetTypeBinder.cs
│ │ ├── Binders.cs
│ │ ├── BindingHelpers.cs
│ │ ├── CompatibilityInvokeBinder.cs
│ │ ├── ConditionalBuilder.cs
│ │ ├── ContextArgBuilder.cs
│ │ ├── ConversionBinder.cs
│ │ ├── CreateFallbackBinder.cs
│ │ ├── FastBindResult.cs
│ │ ├── FastGetBase.cs
│ │ ├── FastSetBase.cs
│ │ ├── IComConvertible.cs
│ │ ├── IFastGettable.cs
│ │ ├── IFastInvokable.cs
│ │ ├── IFastSettable.cs
│ │ ├── IPythonConvertible.cs
│ │ ├── IPythonExpandable.cs
│ │ ├── IPythonGetable.cs
│ │ ├── IPythonInvokable.cs
│ │ ├── IPythonOperable.cs
│ │ ├── IPythonSite.cs
│ │ ├── MetaBuiltinFunction.cs
│ │ ├── MetaBuiltinMethodDescriptor.cs
│ │ ├── MetaMethod.cs
│ │ ├── MetaOldClass.cs
│ │ ├── MetaOldInstance.cs
│ │ ├── MetaPythonFunction.cs
│ │ ├── MetaPythonObject.cs
│ │ ├── MetaPythonType.Calls.cs
│ │ ├── MetaPythonType.Members.cs
│ │ ├── MetaPythonType.cs
│ │ ├── MetaUserObject.Members.cs
│ │ ├── MetaUserObject.cs
│ │ ├── PythonBinaryOperationBinder.cs
│ │ ├── PythonBinder.Create.cs
│ │ ├── PythonBinder.cs
│ │ ├── PythonDeleteIndexBinder.cs
│ │ ├── PythonDeleteMemberBinder.cs
│ │ ├── PythonDeleteSliceBinder.cs
│ │ ├── PythonExtensionBinder.cs
│ │ ├── PythonGetIndexBinder.cs
│ │ ├── PythonGetMemberBinder.cs
│ │ ├── PythonGetSliceBinder.cs
│ │ ├── PythonIndexType.cs
│ │ ├── PythonInvokeBinder.cs
│ │ ├── PythonOperationBinder.cs
│ │ ├── PythonOperationKind.cs
│ │ ├── PythonOverloadResolver.cs
│ │ ├── PythonProtocol.Operations.cs
│ │ ├── PythonProtocol.cs
│ │ ├── PythonSetIndexBinder.cs
│ │ ├── PythonSetMemberBinder.cs
│ │ ├── PythonSetSliceBinder.cs
│ │ ├── PythonUnaryOperationBinder.cs
│ │ ├── SiteLocalStorageBuilder.cs
│ │ └── SlotOrFunction.cs
│ │ ├── BindingWarnings.cs
│ │ ├── BuiltinPythonModule.cs
│ │ ├── BuiltinsDictionaryStorage.cs
│ │ ├── ByteArray.cs
│ │ ├── Bytes.cs
│ │ ├── BytesConversionAttribute.cs
│ │ ├── ClassMethodAttribute.cs
│ │ ├── ClassMethodDescriptor.cs
│ │ ├── ClrModule.cs
│ │ ├── CodeContext.cs
│ │ ├── CollectionDebugView.cs
│ │ ├── CommonDictionaryStorage.cs
│ │ ├── CompareUtil.cs
│ │ ├── CompileFlags.cs
│ │ ├── CompiledLoader.cs
│ │ ├── ConstantDictionaryStorage.cs
│ │ ├── ConversionWrappers.cs
│ │ ├── Converter.cs
│ │ ├── CustomDictionaryStorage.cs
│ │ ├── DebuggerDictionaryStorage.cs
│ │ ├── DefaultContext.cs
│ │ ├── Descriptors.cs
│ │ ├── DictionaryOps.cs
│ │ ├── DictionaryStorage.cs
│ │ ├── DictionaryTypeInfoAttribute.cs
│ │ ├── DontMapGetMemberNamesToDirAttribute.cs
│ │ ├── DontMapICollectionToLenAttribute.cs
│ │ ├── DontMapIDisposableToContextManagerAttribute.cs
│ │ ├── DontMapIEnumerableToContainsAttribute.cs
│ │ ├── DontMapIEnumerableToIterAttribute.cs
│ │ ├── EmptyDictionaryStorage.cs
│ │ ├── Enumerate.cs
│ │ ├── ErrorCodes.cs
│ │ ├── Exceptions
│ │ ├── ApplicationException.cs
│ │ ├── AssertionException.Generated.cs
│ │ ├── AttributeErrorException.cs
│ │ ├── BufferException.Generated.cs
│ │ ├── BytesWarningException.cs
│ │ ├── DeprecationWarningException.Generated.cs
│ │ ├── EnvironmentException.Generated.cs
│ │ ├── FloatingPointException.Generated.cs
│ │ ├── FutureWarningException.Generated.cs
│ │ ├── GeneratorExitException.cs
│ │ ├── IPythonException.cs
│ │ ├── ImportException.Generated.cs
│ │ ├── ImportWarningException.Generated.cs
│ │ ├── IndentationException.cs
│ │ ├── LookupException.Generated.cs
│ │ ├── OSException.Generated.cs
│ │ ├── ObjectException.cs
│ │ ├── OldInstanceException.cs
│ │ ├── PendingDeprecationWarningException.Generated.cs
│ │ ├── PythonException.cs
│ │ ├── PythonExceptions.Generated.cs
│ │ ├── PythonExceptions.cs
│ │ ├── ReferenceException.Generated.cs
│ │ ├── RuntimeException.Generated.cs
│ │ ├── RuntimeWarningException.Generated.cs
│ │ ├── StopIterationException.Generated.cs
│ │ ├── SyntaxWarningException.Generated.cs
│ │ ├── SystemException.cs
│ │ ├── SystemExitException.cs
│ │ ├── TabException.cs
│ │ ├── TraceBack.cs
│ │ ├── TypeErrorException.cs
│ │ ├── UnicodeException.Generated.cs
│ │ ├── UnicodeTranslateException.Generated.cs
│ │ ├── UnicodeWarningException.Generated.cs
│ │ ├── UserWarningException.Generated.cs
│ │ ├── ValueErrorException.cs
│ │ ├── WarningException.Generated.cs
│ │ └── Win32Exception.cs
│ │ ├── ExtensionMethodSet.cs
│ │ ├── FormattingHelper.cs
│ │ ├── FunctionAttributes.cs
│ │ ├── FunctionCode.cs
│ │ ├── FutureBuiltins.cs
│ │ ├── Generator.cs
│ │ ├── GlobalDictionaryStorage.cs
│ │ ├── IBufferProtocol.cs
│ │ ├── IParameterSequence.cs
│ │ ├── Implementation.cs
│ │ ├── Importer.cs
│ │ ├── Index.cs
│ │ ├── InstancedModuleDictionaryStorage.cs
│ │ ├── Interfaces.cs
│ │ ├── KwCallInfo.cs
│ │ ├── List.cs
│ │ ├── LiteralParser.cs
│ │ ├── MemoryView.cs
│ │ ├── Method.Generated.cs
│ │ ├── Method.cs
│ │ ├── MissingParameter.cs
│ │ ├── ModuleContext.cs
│ │ ├── ModuleDictionaryStorage.cs
│ │ ├── ModuleGlobalCache.cs
│ │ ├── ModuleLoader.cs
│ │ ├── ModuleOptions.cs
│ │ ├── NameType.cs
│ │ ├── NewStringFormatter.cs
│ │ ├── NoLineFeedSourceContentProvider.cs
│ │ ├── ObjectAttributesAdapter.cs
│ │ ├── ObjectDebugView.cs
│ │ ├── Operations
│ │ ├── ArrayOps.cs
│ │ ├── BoolOps.cs
│ │ ├── ByteOps.cs
│ │ ├── CharOps.cs
│ │ ├── ComOps.cs
│ │ ├── ComplexOps.cs
│ │ ├── CustomTypeDescHelpers.cs
│ │ ├── DBNullOps.cs
│ │ ├── DecimalOps.cs
│ │ ├── DelegateOps.cs
│ │ ├── DictionaryOfTOps.cs
│ │ ├── EnumOps.cs
│ │ ├── FloatOps.cs
│ │ ├── IListOfByteOps.cs
│ │ ├── InstanceOps.cs
│ │ ├── IntOps.Generated.cs
│ │ ├── IntOps.cs
│ │ ├── ListOfTOps.cs
│ │ ├── LongOps.cs
│ │ ├── MarshalOps.cs
│ │ ├── NamespaceTrackerOps.cs
│ │ ├── ObjectOps.cs
│ │ ├── PythonCalls.cs
│ │ ├── PythonOps.Generated.cs
│ │ ├── PythonOps.cs
│ │ ├── PythonTypeOps.cs
│ │ ├── StringOps.cs
│ │ ├── TypeGroupOps.cs
│ │ ├── TypeTrackerOps.cs
│ │ └── UserTypeOps.cs
│ │ ├── OutputWriter.cs
│ │ ├── PlatformsAttribute.cs
│ │ ├── Profiler.cs
│ │ ├── Python3Warning.cs
│ │ ├── PythonAsciiEncoding.cs
│ │ ├── PythonBuffer.cs
│ │ ├── PythonContext.Generated.cs
│ │ ├── PythonContext.cs
│ │ ├── PythonDictionary.cs
│ │ ├── PythonDocumentationProvider.cs
│ │ ├── PythonDynamicStackFrame.cs
│ │ ├── PythonFile.cs
│ │ ├── PythonFunction.Generated.cs
│ │ ├── PythonFunction.cs
│ │ ├── PythonHiddenAttribute.cs
│ │ ├── PythonHiddenBaseClassAttribute.cs
│ │ ├── PythonModule.cs
│ │ ├── PythonModuleAttribute.cs
│ │ ├── PythonNarrowing.cs
│ │ ├── PythonOptions.cs
│ │ ├── PythonScopeExtension.cs
│ │ ├── PythonTracebackListener.cs
│ │ ├── PythonTuple.cs
│ │ ├── PythonTypeAttribute.cs
│ │ ├── Reversed.cs
│ │ ├── RuntimeVariablesDictionaryStorage.cs
│ │ ├── ScopeDictionaryStorage.cs
│ │ ├── SequenceTypeInfoAttribute.cs
│ │ ├── Set.cs
│ │ ├── SetStorage.cs
│ │ ├── SiteLocalStorage.cs
│ │ ├── Slice.cs
│ │ ├── StringDictionaryStorage.cs
│ │ ├── StringFormatSpec.cs
│ │ ├── StringFormatter.cs
│ │ ├── Super.cs
│ │ ├── Symbols.Generated.cs
│ │ ├── SysModuleDictionaryStorage.cs
│ │ ├── ThrowingErrorSink.cs
│ │ ├── Types
│ │ ├── BuiltinFunction.cs
│ │ ├── BuiltinFunctionOverloadMapper.cs
│ │ ├── BuiltinMethodDescriptor.cs
│ │ ├── CachedNewTypeInfo.cs
│ │ ├── ConstructorFunction.cs
│ │ ├── CustomAttributeTracker.cs
│ │ ├── CustomInstanceDictionaryStorage.cs
│ │ ├── DictProxy.cs
│ │ ├── DocBuilder.cs
│ │ ├── DynamicBaseTypeAttribute.cs
│ │ ├── DynamicHelpers.cs
│ │ ├── EmptyType.cs
│ │ ├── ExtensionPropertyInfo.cs
│ │ ├── FunctionType.cs
│ │ ├── IPythonObject.cs
│ │ ├── InstanceCreator.cs
│ │ ├── Mro.cs
│ │ ├── NameConverter.cs
│ │ ├── NewTypeInfo.cs
│ │ ├── NewTypeMaker.cs
│ │ ├── OldClass.cs
│ │ ├── OldInstance.Generated.cs
│ │ ├── OldInstance.cs
│ │ ├── OperatorMapping.cs
│ │ ├── ParameterInfoWrapper.cs
│ │ ├── PythonAssemblyOps.cs
│ │ ├── PythonSiteCache.cs
│ │ ├── PythonType.Generated.cs
│ │ ├── PythonType.cs
│ │ ├── PythonTypeDataSlot.cs
│ │ ├── PythonTypeDictSlot.cs
│ │ ├── PythonTypeInfo.Generated.cs
│ │ ├── PythonTypeInfo.cs
│ │ ├── PythonTypeSlot.cs
│ │ ├── PythonTypeTypeSlot.cs
│ │ ├── PythonTypeUserDescriptorSlot.cs
│ │ ├── PythonTypeWeakRefSlot.cs
│ │ ├── ReflectedEvent.cs
│ │ ├── ReflectedExtensionProperty.cs
│ │ ├── ReflectedField.cs
│ │ ├── ReflectedGetterSetter.cs
│ │ ├── ReflectedIndexer.cs
│ │ ├── ReflectedProperty.cs
│ │ ├── ReflectedSlotProperty.cs
│ │ ├── ResolvedMember.cs
│ │ ├── SlotFieldAttribute.cs
│ │ ├── StaticUnderlyingSystemType.cs
│ │ └── TypeCache.Generated.cs
│ │ ├── UnboundNameException.cs
│ │ ├── WarningInfo.cs
│ │ ├── WeakRef.cs
│ │ ├── WrapperDescriptorAttribute.cs
│ │ ├── WrapperDictionary.cs
│ │ ├── XRange.cs
│ │ └── XamlObjectWriterSettings.cs
├── Microsoft.Dynamic
│ ├── Actions
│ │ ├── ActionBinder.cs
│ │ ├── Argument.cs
│ │ ├── ArgumentType.cs
│ │ ├── BoundMemberTracker.cs
│ │ ├── CallSignature.cs
│ │ ├── Calls
│ │ │ ├── ActualArguments.cs
│ │ │ ├── ApplicableCandidate.cs
│ │ │ ├── ArgBuilder.cs
│ │ │ ├── ArgumentBinding.cs
│ │ │ ├── BindingResult.cs
│ │ │ ├── BindingTarget.cs
│ │ │ ├── ByRefReturnBuilder.cs
│ │ │ ├── CallFailure.cs
│ │ │ ├── CallFailureReason.cs
│ │ │ ├── Candidate.cs
│ │ │ ├── CandidateSet.cs
│ │ │ ├── ConversionResult.cs
│ │ │ ├── DefaultArgBuilder.cs
│ │ │ ├── DefaultOverloadResolver.cs
│ │ │ ├── InstanceBuilder.cs
│ │ │ ├── KeywordArgBuilder.cs
│ │ │ ├── KeywordConstructorReturnBuilder.cs
│ │ │ ├── MethodCandidate.cs
│ │ │ ├── NarrowingLevel.cs
│ │ │ ├── OutArgBuilder.cs
│ │ │ ├── OverloadInfo.cs
│ │ │ ├── OverloadResolver.cs
│ │ │ ├── OverloadResolverFactory.cs
│ │ │ ├── ParameterMapping.cs
│ │ │ ├── ParameterWrapper.cs
│ │ │ ├── ParamsArgBuilder.cs
│ │ │ ├── ParamsDictArgBuilder.cs
│ │ │ ├── ReferenceArgBuilder.cs
│ │ │ ├── RestrictedArguments.cs
│ │ │ ├── ReturnBuilder.cs
│ │ │ ├── ReturnReferenceArgBuilder.cs
│ │ │ ├── SimpleArgBuilder.cs
│ │ │ └── TypeInferer.cs
│ │ ├── ComboActionRewriter.cs
│ │ ├── ComboBinder.cs
│ │ ├── ConditionalBuilder.cs
│ │ ├── ConstructorTracker.cs
│ │ ├── ConversionResultKind.cs
│ │ ├── CustomTracker.cs
│ │ ├── DefaultBinder.Conversions.cs
│ │ ├── DefaultBinder.DeleteMember.cs
│ │ ├── DefaultBinder.GetMember.cs
│ │ ├── DefaultBinder.Invoke.cs
│ │ ├── DefaultBinder.MethodCalls.cs
│ │ ├── DefaultBinder.Operations.cs
│ │ ├── DefaultBinder.SetMember.cs
│ │ ├── DefaultBinder.cs
│ │ ├── DynamicSiteHelper.cs
│ │ ├── ErrorInfo.cs
│ │ ├── ErrorMetaObject.cs
│ │ ├── EventTracker.cs
│ │ ├── ExtensionBinaryOperationBinder.cs
│ │ ├── ExtensionMethodTracker.cs
│ │ ├── ExtensionPropertyTracker.cs
│ │ ├── ExtensionUnaryOperationBinder.cs
│ │ ├── FieldTracker.cs
│ │ ├── ILightExceptionBinder.cs
│ │ ├── Interceptor.cs
│ │ ├── MemberGroup.cs
│ │ ├── MemberRequestKind.cs
│ │ ├── MemberTracker.cs
│ │ ├── MethodGroup.cs
│ │ ├── MethodTracker.cs
│ │ ├── NamespaceTracker.cs
│ │ ├── NestedTypeTracker.cs
│ │ ├── NoSideEffectsAttribute.cs
│ │ ├── OperationBinder.cs
│ │ ├── OperationMetaObject.cs
│ │ ├── OperatorInfo.cs
│ │ ├── PropertyTracker.cs
│ │ ├── ReflectedPropertyTracker.cs
│ │ ├── TopNamespaceTracker.cs
│ │ ├── TrackerTypes.cs
│ │ ├── TypeGroup.cs
│ │ └── TypeTracker.cs
│ ├── Ast
│ │ ├── BinaryExpression.cs
│ │ ├── Block.cs
│ │ ├── BlockBuilder.cs
│ │ ├── ConstantExpression.cs
│ │ ├── DebugStatement.cs
│ │ ├── EmptyStatements.cs
│ │ ├── ExpressionCollectionBuilder.cs
│ │ ├── FinallyFlowControlExpression.cs
│ │ ├── FlowControlRewriter.cs
│ │ ├── GeneratorExpression.cs
│ │ ├── GeneratorRewriter.cs
│ │ ├── ILightExceptionAwareExpression.cs
│ │ ├── IfStatementBuilder.cs
│ │ ├── IfStatementTest.cs
│ │ ├── LambdaBuilder.cs
│ │ ├── LambdaParameterRewriter.cs
│ │ ├── LightCheckAndThrowExpression.cs
│ │ ├── LightDynamicExpression.cs
│ │ ├── LightExceptionConvertingExpression.cs
│ │ ├── LightExceptionRewriter.cs
│ │ ├── LightLambdaExpression.cs
│ │ ├── LightThrowExpression.cs
│ │ ├── LoopStatement.cs
│ │ ├── MethodCallExpression.cs
│ │ ├── NewArrayExpression.cs
│ │ ├── NewExpression.cs
│ │ ├── SourceFileInformation.cs
│ │ ├── TryStatementBuilder.cs
│ │ ├── UnaryExpression.cs
│ │ ├── Utils.cs
│ │ └── YieldExpression.cs
│ ├── ComInterop
│ │ ├── ArgBuilder.cs
│ │ ├── BoolArgBuilder.cs
│ │ ├── BoundDispEvent.cs
│ │ ├── CollectionExtensions.cs
│ │ ├── ComBinder.cs
│ │ ├── ComBinderHelpers.cs
│ │ ├── ComClassMetaObject.cs
│ │ ├── ComDispIds.cs
│ │ ├── ComEventDesc.cs
│ │ ├── ComEventSink.netfx.cs
│ │ ├── ComEventSinkProxy.netfx.cs
│ │ ├── ComEventSinksContainer.cs
│ │ ├── ComEventsMethod.netcoreapp.cs
│ │ ├── ComFallbackMetaObject.cs
│ │ ├── ComHresults.cs
│ │ ├── ComInterop.cs
│ │ ├── ComInvokeAction.cs
│ │ ├── ComInvokeBinder.cs
│ │ ├── ComMetaObject.cs
│ │ ├── ComMethodDesc.cs
│ │ ├── ComObject.cs
│ │ ├── ComParamDesc.cs
│ │ ├── ComRuntimeHelpers.cs
│ │ ├── ComType.cs
│ │ ├── ComTypeClassDesc.cs
│ │ ├── ComTypeDesc.cs
│ │ ├── ComTypeEnumDesc.cs
│ │ ├── ComTypeLibDesc.cs
│ │ ├── ComTypeLibInfo.cs
│ │ ├── ComTypeLibMemberDesc.cs
│ │ ├── ConversionArgBuilder.cs
│ │ ├── ConvertArgBuilder.cs
│ │ ├── ConvertibleArgBuilder.cs
│ │ ├── CurrencyArgBuilder.cs
│ │ ├── DateTimeArgBuilder.cs
│ │ ├── DispCallable.cs
│ │ ├── DispCallableMetaObject.cs
│ │ ├── DispatchArgBuilder.cs
│ │ ├── ErrorArgBuilder.cs
│ │ ├── Errors.cs
│ │ ├── ExcepInfo.cs
│ │ ├── Helpers.cs
│ │ ├── IDispatchComObject.cs
│ │ ├── IDispatchMetaObject.cs
│ │ ├── IPseudoComObject.cs
│ │ ├── NullArgBuilder.cs
│ │ ├── SimpleArgBuilder.cs
│ │ ├── SplatCallSite.cs
│ │ ├── StringArgBuilder.cs
│ │ ├── TypeEnumMetaObject.cs
│ │ ├── TypeLibInfoMetaObject.cs
│ │ ├── TypeLibMetaObject.cs
│ │ ├── TypeUtils.cs
│ │ ├── UnknownArgBuilder.cs
│ │ ├── VarEnumSelector.cs
│ │ ├── Variant.cs
│ │ ├── VariantArgBuilder.cs
│ │ ├── VariantArray.cs
│ │ └── VariantBuilder.cs
│ ├── DebugOptions.cs
│ ├── Debugging
│ │ ├── CollectionUtils.cs
│ │ ├── CompilerServices
│ │ │ ├── DebugLambdaInfo.cs
│ │ │ └── IDebugCompilerSupport.cs
│ │ ├── DebugContext.GeneratorLoopProc.cs
│ │ ├── DebugContext.cs
│ │ ├── DebugFrame.cs
│ │ ├── DebugGenerator.cs
│ │ ├── DebugInfoRewriter.cs
│ │ ├── DebugMode.cs
│ │ ├── DebugSourceFile.cs
│ │ ├── DebugSourceSpan.cs
│ │ ├── DebugThread.cs
│ │ ├── DebuggableLambdaBuilder.cs
│ │ ├── DefaultRuntimeVariablesImpl
│ │ │ ├── DebugRuntimeVariables.cs
│ │ │ ├── DefaultDebugThread.cs
│ │ │ └── DefaultDebugThreadFactory.cs
│ │ ├── DelegateHelpers.cs
│ │ ├── ForceToGeneratorLoopException.cs
│ │ ├── FunctionInfo.cs
│ │ ├── IDebugCallback.cs
│ │ ├── InvokeTargets.cs
│ │ ├── LambdaWalker.cs
│ │ ├── Microsoft.Scripting.Debugging.Generated.cs
│ │ ├── RuntimeOps.cs
│ │ ├── RuntimeVariablesSupport
│ │ │ ├── IDebugRuntimeVariables.cs
│ │ │ └── IDebugThreadFactory.cs
│ │ ├── ScopedRuntimeVariables.cs
│ │ ├── ThreadLocal.cs
│ │ ├── TraceEventKind.cs
│ │ ├── TracePipeline
│ │ │ ├── ITraceCallback.cs
│ │ │ ├── ITracePipeline.cs
│ │ │ └── TracePipeline.cs
│ │ └── VariableInfo.cs
│ ├── Generation
│ │ ├── AssemblyGen.cs
│ │ ├── CompilerHelpers.cs
│ │ ├── ConstantCheck.cs
│ │ ├── DelegateHelpers.Generated.cs
│ │ ├── DelegateHelpers.cs
│ │ ├── DynamicILGen.cs
│ │ ├── FieldBuilderExpression.cs
│ │ ├── IExpressionSerializable.cs
│ │ ├── ILGen.cs
│ │ ├── KeyedQueue.cs
│ │ ├── MethodSignatureInfo.cs
│ │ ├── Snippets.cs
│ │ ├── SymbolGuids.cs
│ │ ├── ToDiskRewriter.cs
│ │ └── TypeGen.cs
│ ├── GlobalSuppressions.cs
│ ├── Hosting
│ │ └── Shell
│ │ │ ├── BasicConsole.cs
│ │ │ ├── CommandLine.cs
│ │ │ ├── ConsoleHost.cs
│ │ │ ├── ConsoleHostOptions.cs
│ │ │ ├── ConsoleHostOptionsParser.cs
│ │ │ ├── ConsoleOptions.cs
│ │ │ ├── ICommandDispatcher.cs
│ │ │ ├── IConsole.cs
│ │ │ ├── OptionsParser.cs
│ │ │ ├── Remote
│ │ │ ├── ConsoleRestartManager.cs
│ │ │ ├── RemoteCommandDispatcher.cs
│ │ │ ├── RemoteConsoleCommandLine.cs
│ │ │ ├── RemoteConsoleHost.cs
│ │ │ └── RemoteRuntimeServer.cs
│ │ │ ├── Style.cs
│ │ │ └── SuperConsole.cs
│ ├── Interpreter
│ │ ├── BranchLabel.cs
│ │ ├── ILightCallSiteBinder.cs
│ │ ├── Instructions
│ │ │ ├── AddInstruction.cs
│ │ │ ├── ArrayOperations.cs
│ │ │ ├── CallInstruction.Generated.cs
│ │ │ ├── CallInstruction.cs
│ │ │ ├── ControlFlowInstructions.cs
│ │ │ ├── DivInstruction.cs
│ │ │ ├── DynamicInstructionN.cs
│ │ │ ├── DynamicInstructions.Generated.cs
│ │ │ ├── DynamicSplatInstruction.cs
│ │ │ ├── EqualInstruction.cs
│ │ │ ├── FieldOperations.cs
│ │ │ ├── GreaterThanInstruction.cs
│ │ │ ├── Instruction.cs
│ │ │ ├── InstructionFactory.cs
│ │ │ ├── InstructionList.cs
│ │ │ ├── LabelInfo.cs
│ │ │ ├── LessThanInstruction.cs
│ │ │ ├── LocalAccess.cs
│ │ │ ├── NotEqualInstruction.cs
│ │ │ ├── NumericConvertInstruction.cs
│ │ │ ├── StackOperations.cs
│ │ │ └── TypeOperations.cs
│ │ ├── InterpretedFrame.cs
│ │ ├── Interpreter.cs
│ │ ├── LightCompiler.cs
│ │ ├── LightDelegateCreator.cs
│ │ ├── LightLambda.Generated.cs
│ │ ├── LightLambda.cs
│ │ ├── LightLambdaClosureVisitor.cs
│ │ ├── LocalVariables.cs
│ │ ├── LoopCompiler.cs
│ │ └── RuntimeVariables.cs
│ ├── KeyboardInterruptException.cs
│ ├── Microsoft.Scripting.txt
│ ├── MultiRuntimeAwareAttribute.cs
│ ├── MutableTuple.cs
│ ├── PerfTrack.cs
│ ├── Runtime
│ │ ├── AmbiguousFileNameException.cs
│ │ ├── ArgumentArray.cs
│ │ ├── AssemblyTypeNames.cs
│ │ ├── BinderOps.cs
│ │ ├── BinderType.cs
│ │ ├── BindingRestrictionsHelpers.cs
│ │ ├── CallTargets.cs
│ │ ├── CallTypes.cs
│ │ ├── Cast.Generated.cs
│ │ ├── Cast.cs
│ │ ├── CodeDomCodeGen.cs
│ │ ├── CompilerContext.cs
│ │ ├── CustomStringDictionary.cs
│ │ ├── DelegateInfo.cs
│ │ ├── DelegateSignatureInfo.cs
│ │ ├── DlrCachedCodeAttribute.cs
│ │ ├── DocumentationAttribute.cs
│ │ ├── DynamicDelegateCreator.cs
│ │ ├── DynamicNull.cs
│ │ ├── ExceptionHelpers.cs
│ │ ├── ExplicitConversionMethodAttribute.cs
│ │ ├── Extensible.cs
│ │ ├── ExtensionTypeAttribute.cs
│ │ ├── ExtraKeyEnumerator.cs
│ │ ├── Generator.cs
│ │ ├── IConvertibleMetaObject.cs
│ │ ├── ICustomScriptCodeData.cs
│ │ ├── IMembersList.cs
│ │ ├── IRestrictedMetaObject.cs
│ │ ├── ISlice.cs
│ │ ├── IdDispenser.cs
│ │ ├── ImplicitConversionMethodAttribute.cs
│ │ ├── LanguageBoundTextContentProvider.cs
│ │ ├── LegacyScriptCode.cs
│ │ ├── LightExceptions.cs
│ │ ├── LightThrowingAttribute.cs
│ │ ├── LocalsDictionary.cs
│ │ ├── MetaObjectExtensions.cs
│ │ ├── ModuleChangeEventArgs.cs
│ │ ├── ModuleChangeEventType.cs
│ │ ├── NullTextContentProvider.cs
│ │ ├── OperationFailed.cs
│ │ ├── OperatorSlotAttribute.cs
│ │ ├── PositionTrackingWriter.cs
│ │ ├── PropertyMethodAttribute.cs
│ │ ├── ReflectionCache.cs
│ │ ├── RestrictedMetaObject.cs
│ │ ├── ReturnFixer.cs
│ │ ├── SavableScriptCode.cs
│ │ ├── ScriptingRuntimeHelpers.cs
│ │ ├── SourceStringContentProvider.cs
│ │ ├── StaticExtensionMethodAttribute.cs
│ │ ├── TokenizerBuffer.cs
│ │ └── Uninitialized.cs
│ ├── SourceFileContentProvider.cs
│ ├── Utils
│ │ ├── ArrayUtils.cs
│ │ ├── Assert.cs
│ │ ├── CacheDict.cs
│ │ ├── CheckedDictionaryEnumerator.cs
│ │ ├── CollectionExtensions.cs
│ │ ├── CollectionUtils.cs
│ │ ├── ContractUtils.cs
│ │ ├── CopyOnWriteList.cs
│ │ ├── DictionaryUnionEnumerator.cs
│ │ ├── DynamicUtils.cs
│ │ ├── EnumUtils.cs
│ │ ├── ExceptionUtils.cs
│ │ ├── HybridReferenceDictionary.cs
│ │ ├── IOUtils.cs
│ │ ├── ListEqualityComparer.cs
│ │ ├── MathUtils.cs
│ │ ├── MonitorUtils.cs
│ │ ├── Publisher.cs
│ │ ├── ReferenceEqualityComparer.cs
│ │ ├── ReflectionUtils.cs
│ │ ├── StringUtils.cs
│ │ ├── SynchronizedDictionary.cs
│ │ ├── ThreadLocal.cs
│ │ ├── ThreadingUtils.cs
│ │ ├── TypeMemberCache.cs
│ │ ├── TypeUtils.cs
│ │ ├── ValueArray.cs
│ │ ├── WeakCollection.cs
│ │ ├── WeakDictionary.cs
│ │ └── WeakHandle.cs
│ ├── Xaml
│ │ └── DynamicXamlReader.cs
│ └── zlib.net
│ │ ├── Adler32.cs
│ │ ├── Deflate.cs
│ │ ├── InfBlocks.cs
│ │ ├── InfCodes.cs
│ │ ├── InfTree.cs
│ │ ├── Inflate.cs
│ │ ├── StaticTree.cs
│ │ ├── Tree.cs
│ │ ├── ZStream.cs
│ │ ├── ZStreamException.cs
│ │ ├── Zlib.cs
│ │ ├── history.txt
│ │ ├── license.txt
│ │ └── readme.txt
├── Microsoft.Scripting.Metadata
│ ├── ClrStubs.cs
│ ├── MemoryBlock.cs
│ ├── MemoryMapping.V4.cs
│ ├── MemoryReader.cs
│ ├── MetadataExtensions.cs
│ ├── MetadataImport.cs
│ ├── MetadataName.cs
│ ├── MetadataServices.cs
│ ├── MetadataTableEnumerator.CCI.cs
│ ├── MetadataTableImplementations.cs
│ ├── MetadataTables.CCI.cs
│ ├── MetadataTables.cs
│ └── PEFileStructures.cs
└── Microsoft.Scripting
│ ├── ArgumentTypeException.cs
│ ├── AssemblyLoadedEventArgs.cs
│ ├── CompilerOptions.cs
│ ├── ErrorSink.cs
│ ├── Hosting
│ ├── CompiledCode.cs
│ ├── Configuration
│ │ ├── LanguageElement.cs
│ │ ├── LanguageElementCollection.cs
│ │ ├── OptionElement.cs
│ │ ├── OptionElementCollection.cs
│ │ └── Section.cs
│ ├── DocumentationOperations.cs
│ ├── ErrorListener.cs
│ ├── ErrorListenerProxy.cs
│ ├── ErrorSinkProxyListener.cs
│ ├── ExceptionOperations.cs
│ ├── LanguageSetup.cs
│ ├── MemberDoc.cs
│ ├── MemberKind.cs
│ ├── ObjectOperations.cs
│ ├── OverloadDoc.cs
│ ├── ParameterDoc.cs
│ ├── ParameterFlags.cs
│ ├── Providers
│ │ └── HostingHelpers.cs
│ ├── ScriptEngine.cs
│ ├── ScriptHost.cs
│ ├── ScriptHostProxy.cs
│ ├── ScriptIO.cs
│ ├── ScriptRuntime.cs
│ ├── ScriptRuntimeSetup.cs
│ ├── ScriptScope.cs
│ ├── ScriptSource.cs
│ └── TokenCategorizer.cs
│ ├── IndexSpan.cs
│ ├── InvalidImplementationException.cs
│ ├── LanguageOptions.cs
│ ├── PlatformAdaptationLayer.cs
│ ├── Runtime
│ ├── ContextId.cs
│ ├── DlrConfiguration.cs
│ ├── DocumentationProvider.cs
│ ├── DynamicOperations.Generated.cs
│ ├── DynamicOperations.cs
│ ├── DynamicRuntimeHostingProvider.cs
│ ├── DynamicStackFrame.cs
│ ├── InvariantContext.cs
│ ├── LanguageBoundTextContentProvider.cs
│ ├── LanguageContext.cs
│ ├── NotNullAttribute.cs
│ ├── ObjectDictionaryExpando.cs
│ ├── ParamDictionaryAttribute.cs
│ ├── ParserSink.cs
│ ├── Scope.cs
│ ├── ScopeExtension.cs
│ ├── ScopeStorage.cs
│ ├── ScriptCode.cs
│ ├── ScriptDomainManager.cs
│ ├── SharedIO.cs
│ ├── StreamContentProvider.cs
│ ├── StringDictionaryExpando.cs
│ ├── TokenInfo.cs
│ ├── TokenTriggers.cs
│ └── TokenizerService.cs
│ ├── ScriptCodeParseResult.cs
│ ├── Severity.cs
│ ├── SourceCodeKind.cs
│ ├── SourceCodeReader.cs
│ ├── SourceLocation.cs
│ ├── SourceSpan.cs
│ ├── SourceUnit.cs
│ ├── Stubs.cs
│ ├── SyntaxErrorException.cs
│ ├── TextContentProvider.cs
│ ├── TokenCategory.cs
│ └── Utils
│ ├── ArrayUtils.cs
│ ├── AssemblyQualifiedTypeName.cs
│ ├── Assert.cs
│ ├── CollectionExtensions.cs
│ ├── ConsoleInputStream.cs
│ ├── ConsoleStreamType.cs
│ ├── ContractUtils.cs
│ ├── DelegateUtils.cs
│ ├── ExceptionFactory.Generated.cs
│ ├── ExceptionUtils.cs
│ ├── ExpressionUtils.cs
│ ├── NativeMethods.cs
│ ├── ReflectionUtils.cs
│ └── StringUtils.cs
├── Util
└── References
│ └── Mono.Posix.dll
└── Zolom
├── .vs
└── Zolom
│ └── v16
│ └── .suo
├── README.md
├── Zolom.sln
├── Zolom
├── FodyWeavers.xml
├── Lib.zip
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ └── Visibility.cs
├── Source
│ ├── IronPython.Modules
│ │ ├── GlobalSuppressions.cs
│ │ ├── IterTools.cs
│ │ ├── ModuleOps.cs
│ │ ├── NtSignalState.cs
│ │ ├── ResourceMetaPathImporter.cs
│ │ ├── SimpleSignalState.cs
│ │ ├── _bisect.cs
│ │ ├── _bytesio.cs
│ │ ├── _codecs.cs
│ │ ├── _codecs_cn.cs
│ │ ├── _collections.cs
│ │ ├── _csv.cs
│ │ ├── _ctypes
│ │ │ ├── Array.cs
│ │ │ ├── ArrayType.cs
│ │ │ ├── CData.cs
│ │ │ ├── CFuncPtr.cs
│ │ │ ├── CFuncPtrType.cs
│ │ │ ├── Extensions.cs
│ │ │ ├── Field.cs
│ │ │ ├── INativeType.cs
│ │ │ ├── LocalOrArg.cs
│ │ │ ├── MarshalCleanup.cs
│ │ │ ├── MemoryHolder.cs
│ │ │ ├── NativeArgument.cs
│ │ │ ├── NativeFunctions.cs
│ │ │ ├── Pointer.cs
│ │ │ ├── PointerType.cs
│ │ │ ├── SimpleCData.cs
│ │ │ ├── SimpleType.cs
│ │ │ ├── SimpleTypeKind.cs
│ │ │ ├── StructType.cs
│ │ │ ├── Structure.cs
│ │ │ ├── Union.cs
│ │ │ ├── UnionType.cs
│ │ │ └── _ctypes.cs
│ │ ├── _ctypes_test.cs
│ │ ├── _fileio.cs
│ │ ├── _functools.cs
│ │ ├── _heapq.cs
│ │ ├── _io.cs
│ │ ├── _locale.cs
│ │ ├── _multibytecodec.cs
│ │ ├── _random.RandomGen.cs
│ │ ├── _random.cs
│ │ ├── _socket.cs
│ │ ├── _sre.cs
│ │ ├── _ssl.cs
│ │ ├── _struct.cs
│ │ ├── _subprocess.cs
│ │ ├── _sysconfigdata.cs
│ │ ├── _warnings.cs
│ │ ├── _weakref.Generated.cs
│ │ ├── _weakref.cs
│ │ ├── _winreg.cs
│ │ ├── array.cs
│ │ ├── binascii.cs
│ │ ├── bz2
│ │ │ ├── BZ2Compressor.cs
│ │ │ ├── BZ2Decompressor.cs
│ │ │ ├── BZ2File.cs
│ │ │ ├── BZ2Module.cs
│ │ │ └── dotnetzip
│ │ │ │ ├── BZip2
│ │ │ │ ├── BZip2Compressor.cs
│ │ │ │ ├── BZip2InputStream.cs
│ │ │ │ ├── BZip2OutputStream.cs
│ │ │ │ ├── BitWriter.cs
│ │ │ │ ├── CRC32.cs
│ │ │ │ ├── ParallelBZip2OutputStream.cs
│ │ │ │ └── Rand.cs
│ │ │ │ └── source.txt
│ │ ├── cPickle.cs
│ │ ├── cStringIO.cs
│ │ ├── cmath.cs
│ │ ├── copy_reg.cs
│ │ ├── datetime.cs
│ │ ├── errno.cs
│ │ ├── gc.cs
│ │ ├── grp.cs
│ │ ├── hashlib
│ │ │ ├── MD5CryptoServiceProvider.cs
│ │ │ ├── SHA224.cs
│ │ │ ├── SHA224Managed.cs
│ │ │ ├── _hashlib.cs
│ │ │ ├── _md5.cs
│ │ │ ├── _sha.cs
│ │ │ ├── _sha256.cs
│ │ │ └── _sha512.cs
│ │ ├── marshal.cs
│ │ ├── math.Generated.cs
│ │ ├── math.cs
│ │ ├── mmap.cs
│ │ ├── msvcrt.cs
│ │ ├── nt.cs
│ │ ├── operator.cs
│ │ ├── pwd.cs
│ │ ├── pyexpat.cs
│ │ ├── re.cs
│ │ ├── select.cs
│ │ ├── signal.cs
│ │ ├── spwd.cs
│ │ ├── thread.cs
│ │ ├── time.cs
│ │ ├── winsound.cs
│ │ ├── xxsubtype.cs
│ │ ├── zipimport.cs
│ │ └── zlib
│ │ │ ├── Compress.cs
│ │ │ ├── Decompress.cs
│ │ │ └── ZlibModule.cs
│ ├── IronPython
│ │ ├── Compiler
│ │ │ ├── Ast
│ │ │ │ ├── AndExpression.cs
│ │ │ │ ├── Arg.cs
│ │ │ │ ├── AssertStatement.cs
│ │ │ │ ├── AssignmentStatement.cs
│ │ │ │ ├── AstMethods.cs
│ │ │ │ ├── AugmentedAssignStatement.cs
│ │ │ │ ├── BackQuoteExpression.cs
│ │ │ │ ├── BinaryExpression.Generated.cs
│ │ │ │ ├── BinaryExpression.cs
│ │ │ │ ├── BreakStatement.cs
│ │ │ │ ├── CallExpression.cs
│ │ │ │ ├── ClassDefinition.cs
│ │ │ │ ├── Comprehension.cs
│ │ │ │ ├── ComprehensionFor.cs
│ │ │ │ ├── ComprehensionIf.cs
│ │ │ │ ├── ConditionalExpression.cs
│ │ │ │ ├── ConstantExpression.cs
│ │ │ │ ├── ContinueStatement.cs
│ │ │ │ ├── DelStatement.cs
│ │ │ │ ├── DictionaryExpression.cs
│ │ │ │ ├── DottedName.cs
│ │ │ │ ├── DynamicConvertExpression.cs
│ │ │ │ ├── DynamicGetMemberExpression.cs
│ │ │ │ ├── EmptyStatement.cs
│ │ │ │ ├── ErrorExpression.cs
│ │ │ │ ├── ExecStatement.cs
│ │ │ │ ├── Expression.cs
│ │ │ │ ├── ExpressionStatement.cs
│ │ │ │ ├── FlowChecker.cs
│ │ │ │ ├── ForStatement.cs
│ │ │ │ ├── FromImportStatement.cs
│ │ │ │ ├── FunctionDefinition.cs
│ │ │ │ ├── GeneratorExpression.cs
│ │ │ │ ├── GetGlobalContextExpression.cs
│ │ │ │ ├── GetParentContextFromFunctionExpression.cs
│ │ │ │ ├── GlobalStatement.cs
│ │ │ │ ├── ILoopStatement.cs
│ │ │ │ ├── IfStatement.cs
│ │ │ │ ├── IfStatementTest.cs
│ │ │ │ ├── ImportStatement.cs
│ │ │ │ ├── IndexExpression.cs
│ │ │ │ ├── LambdaExpression.cs
│ │ │ │ ├── ListExpression.cs
│ │ │ │ ├── MemberExpression.cs
│ │ │ │ ├── ModuleName.cs
│ │ │ │ ├── NameExpression.cs
│ │ │ │ ├── Node.cs
│ │ │ │ ├── OrExpression.cs
│ │ │ │ ├── Parameter.cs
│ │ │ │ ├── ParenthesisExpression.cs
│ │ │ │ ├── PrintStatement.cs
│ │ │ │ ├── PythonAst.cs
│ │ │ │ ├── PythonConstantExpression.cs
│ │ │ │ ├── PythonNameBinder.cs
│ │ │ │ ├── PythonOperator.cs
│ │ │ │ ├── PythonReference.cs
│ │ │ │ ├── PythonVariable.cs
│ │ │ │ ├── PythonWalker.Generated.cs
│ │ │ │ ├── RaiseStatement.cs
│ │ │ │ ├── RelativeModuleName.cs
│ │ │ │ ├── ReturnStatement.cs
│ │ │ │ ├── ScopeStatement.cs
│ │ │ │ ├── SequenceExpression.cs
│ │ │ │ ├── SerializedScopeStatement.cs
│ │ │ │ ├── SetExpression.cs
│ │ │ │ ├── SliceExpression.cs
│ │ │ │ ├── Statement.cs
│ │ │ │ ├── SuiteStatement.cs
│ │ │ │ ├── TryStatement.cs
│ │ │ │ ├── TupleExpression.cs
│ │ │ │ ├── UnaryExpression.cs
│ │ │ │ ├── VariableKind.cs
│ │ │ │ ├── WhileStatement.cs
│ │ │ │ ├── WithStatement.cs
│ │ │ │ └── YieldExpression.cs
│ │ │ ├── ClosureExpression.cs
│ │ │ ├── ClosureInfo.cs
│ │ │ ├── CollectableCompilationMode.cs
│ │ │ ├── CompilationMode.cs
│ │ │ ├── GeneratorRewriter.cs
│ │ │ ├── LazyCode.cs
│ │ │ ├── LookupCompilationMode.cs
│ │ │ ├── OnDiskScriptCode.cs
│ │ │ ├── Parser.cs
│ │ │ ├── PythonCallTargets.cs
│ │ │ ├── PythonCompilerOptions.cs
│ │ │ ├── PythonDynamicExpression.cs
│ │ │ ├── PythonGlobal.cs
│ │ │ ├── PythonGlobalVariableExpression.cs
│ │ │ ├── PythonSavableScriptCode.cs
│ │ │ ├── PythonScriptCode.cs
│ │ │ ├── ReducableDynamicExpression.cs
│ │ │ ├── RunnableScriptCode.cs
│ │ │ ├── RuntimeScriptCode.cs
│ │ │ ├── ToDiskCompilationMode.cs
│ │ │ ├── Token.cs
│ │ │ ├── TokenKind.Generated.cs
│ │ │ ├── Tokenizer.Generated.cs
│ │ │ ├── Tokenizer.cs
│ │ │ ├── UncollectableCompilationMode.Generated.cs
│ │ │ └── UncollectableCompilationMode.cs
│ │ ├── FakeInteropServices.cs
│ │ ├── GlobalSuppressions.cs
│ │ ├── Hosting
│ │ │ ├── Python.cs
│ │ │ ├── PythonCodeDomCodeGen.cs
│ │ │ ├── PythonCommandLine.cs
│ │ │ ├── PythonConsoleOptions.cs
│ │ │ ├── PythonOptionsParser.cs
│ │ │ └── PythonService.cs
│ │ ├── Lib
│ │ │ └── iptest
│ │ │ │ ├── __init__.py
│ │ │ │ ├── cominterop_util.py
│ │ │ │ ├── console_util.py
│ │ │ │ ├── file_util.py
│ │ │ │ ├── ipunittest.py
│ │ │ │ ├── misc_util.py
│ │ │ │ ├── process_util.py
│ │ │ │ ├── runner.py
│ │ │ │ ├── test_env.py
│ │ │ │ └── type_util.py
│ │ ├── MaybeNotImplementedAttribute.cs
│ │ ├── Modules
│ │ │ ├── Builtin.Generated.cs
│ │ │ ├── Builtin.cs
│ │ │ ├── _ast.cs
│ │ │ ├── imp.cs
│ │ │ ├── sys.cs
│ │ │ ├── unicodedata.cs
│ │ │ └── unicodedata
│ │ │ │ ├── EastAsianWidth.txt
│ │ │ │ ├── IPyUnicodeData.txt.gz
│ │ │ │ ├── UnicodeData.txt
│ │ │ │ └── genunicodedata.py
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ └── Runtime
│ │ │ ├── Binding
│ │ │ ├── BinaryRetTypeBinder.Generated.cs
│ │ │ ├── BinaryRetTypeBinder.cs
│ │ │ ├── Binders.cs
│ │ │ ├── BindingHelpers.cs
│ │ │ ├── CompatibilityInvokeBinder.cs
│ │ │ ├── ConditionalBuilder.cs
│ │ │ ├── ContextArgBuilder.cs
│ │ │ ├── ConversionBinder.cs
│ │ │ ├── CreateFallbackBinder.cs
│ │ │ ├── FastBindResult.cs
│ │ │ ├── FastGetBase.cs
│ │ │ ├── FastSetBase.cs
│ │ │ ├── IComConvertible.cs
│ │ │ ├── IFastGettable.cs
│ │ │ ├── IFastInvokable.cs
│ │ │ ├── IFastSettable.cs
│ │ │ ├── IPythonConvertible.cs
│ │ │ ├── IPythonExpandable.cs
│ │ │ ├── IPythonGetable.cs
│ │ │ ├── IPythonInvokable.cs
│ │ │ ├── IPythonOperable.cs
│ │ │ ├── IPythonSite.cs
│ │ │ ├── MetaBuiltinFunction.cs
│ │ │ ├── MetaBuiltinMethodDescriptor.cs
│ │ │ ├── MetaMethod.cs
│ │ │ ├── MetaOldClass.cs
│ │ │ ├── MetaOldInstance.cs
│ │ │ ├── MetaPythonFunction.cs
│ │ │ ├── MetaPythonObject.cs
│ │ │ ├── MetaPythonType.Calls.cs
│ │ │ ├── MetaPythonType.Members.cs
│ │ │ ├── MetaPythonType.cs
│ │ │ ├── MetaUserObject.Members.cs
│ │ │ ├── MetaUserObject.cs
│ │ │ ├── PythonBinaryOperationBinder.cs
│ │ │ ├── PythonBinder.Create.cs
│ │ │ ├── PythonBinder.cs
│ │ │ ├── PythonDeleteIndexBinder.cs
│ │ │ ├── PythonDeleteMemberBinder.cs
│ │ │ ├── PythonDeleteSliceBinder.cs
│ │ │ ├── PythonExtensionBinder.cs
│ │ │ ├── PythonGetIndexBinder.cs
│ │ │ ├── PythonGetMemberBinder.cs
│ │ │ ├── PythonGetSliceBinder.cs
│ │ │ ├── PythonIndexType.cs
│ │ │ ├── PythonInvokeBinder.cs
│ │ │ ├── PythonOperationBinder.cs
│ │ │ ├── PythonOperationKind.cs
│ │ │ ├── PythonOverloadResolver.cs
│ │ │ ├── PythonProtocol.Operations.cs
│ │ │ ├── PythonProtocol.cs
│ │ │ ├── PythonSetIndexBinder.cs
│ │ │ ├── PythonSetMemberBinder.cs
│ │ │ ├── PythonSetSliceBinder.cs
│ │ │ ├── PythonUnaryOperationBinder.cs
│ │ │ ├── SiteLocalStorageBuilder.cs
│ │ │ └── SlotOrFunction.cs
│ │ │ ├── BindingWarnings.cs
│ │ │ ├── BuiltinPythonModule.cs
│ │ │ ├── BuiltinsDictionaryStorage.cs
│ │ │ ├── ByteArray.cs
│ │ │ ├── Bytes.cs
│ │ │ ├── BytesConversionAttribute.cs
│ │ │ ├── ClassMethodAttribute.cs
│ │ │ ├── ClassMethodDescriptor.cs
│ │ │ ├── ClrModule.cs
│ │ │ ├── CodeContext.cs
│ │ │ ├── CollectionDebugView.cs
│ │ │ ├── CommonDictionaryStorage.cs
│ │ │ ├── CompareUtil.cs
│ │ │ ├── CompileFlags.cs
│ │ │ ├── CompiledLoader.cs
│ │ │ ├── ConstantDictionaryStorage.cs
│ │ │ ├── ConversionWrappers.cs
│ │ │ ├── Converter.cs
│ │ │ ├── CustomDictionaryStorage.cs
│ │ │ ├── DebuggerDictionaryStorage.cs
│ │ │ ├── DefaultContext.cs
│ │ │ ├── Descriptors.cs
│ │ │ ├── DictionaryOps.cs
│ │ │ ├── DictionaryStorage.cs
│ │ │ ├── DictionaryTypeInfoAttribute.cs
│ │ │ ├── DontMapGetMemberNamesToDirAttribute.cs
│ │ │ ├── DontMapICollectionToLenAttribute.cs
│ │ │ ├── DontMapIDisposableToContextManagerAttribute.cs
│ │ │ ├── DontMapIEnumerableToContainsAttribute.cs
│ │ │ ├── DontMapIEnumerableToIterAttribute.cs
│ │ │ ├── EmptyDictionaryStorage.cs
│ │ │ ├── Enumerate.cs
│ │ │ ├── ErrorCodes.cs
│ │ │ ├── Exceptions
│ │ │ ├── ApplicationException.cs
│ │ │ ├── AssertionException.Generated.cs
│ │ │ ├── AttributeErrorException.cs
│ │ │ ├── BufferException.Generated.cs
│ │ │ ├── BytesWarningException.cs
│ │ │ ├── DeprecationWarningException.Generated.cs
│ │ │ ├── EnvironmentException.Generated.cs
│ │ │ ├── FloatingPointException.Generated.cs
│ │ │ ├── FutureWarningException.Generated.cs
│ │ │ ├── GeneratorExitException.cs
│ │ │ ├── IPythonException.cs
│ │ │ ├── ImportException.Generated.cs
│ │ │ ├── ImportWarningException.Generated.cs
│ │ │ ├── IndentationException.cs
│ │ │ ├── LookupException.Generated.cs
│ │ │ ├── OSException.Generated.cs
│ │ │ ├── ObjectException.cs
│ │ │ ├── OldInstanceException.cs
│ │ │ ├── PendingDeprecationWarningException.Generated.cs
│ │ │ ├── PythonException.cs
│ │ │ ├── PythonExceptions.Generated.cs
│ │ │ ├── PythonExceptions.cs
│ │ │ ├── ReferenceException.Generated.cs
│ │ │ ├── RuntimeException.Generated.cs
│ │ │ ├── RuntimeWarningException.Generated.cs
│ │ │ ├── StopIterationException.Generated.cs
│ │ │ ├── SyntaxWarningException.Generated.cs
│ │ │ ├── SystemException.cs
│ │ │ ├── SystemExitException.cs
│ │ │ ├── TabException.cs
│ │ │ ├── TraceBack.cs
│ │ │ ├── TypeErrorException.cs
│ │ │ ├── UnicodeException.Generated.cs
│ │ │ ├── UnicodeTranslateException.Generated.cs
│ │ │ ├── UnicodeWarningException.Generated.cs
│ │ │ ├── UserWarningException.Generated.cs
│ │ │ ├── ValueErrorException.cs
│ │ │ ├── WarningException.Generated.cs
│ │ │ └── Win32Exception.cs
│ │ │ ├── ExtensionMethodSet.cs
│ │ │ ├── FormattingHelper.cs
│ │ │ ├── FunctionAttributes.cs
│ │ │ ├── FunctionCode.cs
│ │ │ ├── FutureBuiltins.cs
│ │ │ ├── Generator.cs
│ │ │ ├── GlobalDictionaryStorage.cs
│ │ │ ├── IBufferProtocol.cs
│ │ │ ├── IParameterSequence.cs
│ │ │ ├── Implementation.cs
│ │ │ ├── Importer.cs
│ │ │ ├── Index.cs
│ │ │ ├── InstancedModuleDictionaryStorage.cs
│ │ │ ├── Interfaces.cs
│ │ │ ├── KwCallInfo.cs
│ │ │ ├── List.cs
│ │ │ ├── LiteralParser.cs
│ │ │ ├── MemoryView.cs
│ │ │ ├── Method.Generated.cs
│ │ │ ├── Method.cs
│ │ │ ├── MissingParameter.cs
│ │ │ ├── ModuleContext.cs
│ │ │ ├── ModuleDictionaryStorage.cs
│ │ │ ├── ModuleGlobalCache.cs
│ │ │ ├── ModuleLoader.cs
│ │ │ ├── ModuleOptions.cs
│ │ │ ├── NameType.cs
│ │ │ ├── NewStringFormatter.cs
│ │ │ ├── NoLineFeedSourceContentProvider.cs
│ │ │ ├── ObjectAttributesAdapter.cs
│ │ │ ├── ObjectDebugView.cs
│ │ │ ├── Operations
│ │ │ ├── ArrayOps.cs
│ │ │ ├── BoolOps.cs
│ │ │ ├── ByteOps.cs
│ │ │ ├── CharOps.cs
│ │ │ ├── ComOps.cs
│ │ │ ├── ComplexOps.cs
│ │ │ ├── CustomTypeDescHelpers.cs
│ │ │ ├── DBNullOps.cs
│ │ │ ├── DecimalOps.cs
│ │ │ ├── DelegateOps.cs
│ │ │ ├── DictionaryOfTOps.cs
│ │ │ ├── EnumOps.cs
│ │ │ ├── FloatOps.cs
│ │ │ ├── IListOfByteOps.cs
│ │ │ ├── InstanceOps.cs
│ │ │ ├── IntOps.Generated.cs
│ │ │ ├── IntOps.cs
│ │ │ ├── ListOfTOps.cs
│ │ │ ├── LongOps.cs
│ │ │ ├── MarshalOps.cs
│ │ │ ├── NamespaceTrackerOps.cs
│ │ │ ├── ObjectOps.cs
│ │ │ ├── PythonCalls.cs
│ │ │ ├── PythonOps.Generated.cs
│ │ │ ├── PythonOps.cs
│ │ │ ├── PythonTypeOps.cs
│ │ │ ├── StringOps.cs
│ │ │ ├── TypeGroupOps.cs
│ │ │ ├── TypeTrackerOps.cs
│ │ │ └── UserTypeOps.cs
│ │ │ ├── OutputWriter.cs
│ │ │ ├── PlatformsAttribute.cs
│ │ │ ├── Profiler.cs
│ │ │ ├── Python3Warning.cs
│ │ │ ├── PythonAsciiEncoding.cs
│ │ │ ├── PythonBuffer.cs
│ │ │ ├── PythonContext.Generated.cs
│ │ │ ├── PythonContext.cs
│ │ │ ├── PythonDictionary.cs
│ │ │ ├── PythonDocumentationProvider.cs
│ │ │ ├── PythonDynamicStackFrame.cs
│ │ │ ├── PythonFile.cs
│ │ │ ├── PythonFunction.Generated.cs
│ │ │ ├── PythonFunction.cs
│ │ │ ├── PythonHiddenAttribute.cs
│ │ │ ├── PythonHiddenBaseClassAttribute.cs
│ │ │ ├── PythonModule.cs
│ │ │ ├── PythonModuleAttribute.cs
│ │ │ ├── PythonNarrowing.cs
│ │ │ ├── PythonOptions.cs
│ │ │ ├── PythonScopeExtension.cs
│ │ │ ├── PythonTracebackListener.cs
│ │ │ ├── PythonTuple.cs
│ │ │ ├── PythonTypeAttribute.cs
│ │ │ ├── Reversed.cs
│ │ │ ├── RuntimeVariablesDictionaryStorage.cs
│ │ │ ├── ScopeDictionaryStorage.cs
│ │ │ ├── SequenceTypeInfoAttribute.cs
│ │ │ ├── Set.cs
│ │ │ ├── SetStorage.cs
│ │ │ ├── SiteLocalStorage.cs
│ │ │ ├── Slice.cs
│ │ │ ├── StringDictionaryStorage.cs
│ │ │ ├── StringFormatSpec.cs
│ │ │ ├── StringFormatter.cs
│ │ │ ├── Super.cs
│ │ │ ├── Symbols.Generated.cs
│ │ │ ├── SysModuleDictionaryStorage.cs
│ │ │ ├── ThrowingErrorSink.cs
│ │ │ ├── Types
│ │ │ ├── BuiltinFunction.cs
│ │ │ ├── BuiltinFunctionOverloadMapper.cs
│ │ │ ├── BuiltinMethodDescriptor.cs
│ │ │ ├── CachedNewTypeInfo.cs
│ │ │ ├── ConstructorFunction.cs
│ │ │ ├── CustomAttributeTracker.cs
│ │ │ ├── CustomInstanceDictionaryStorage.cs
│ │ │ ├── DictProxy.cs
│ │ │ ├── DocBuilder.cs
│ │ │ ├── DynamicBaseTypeAttribute.cs
│ │ │ ├── DynamicHelpers.cs
│ │ │ ├── EmptyType.cs
│ │ │ ├── ExtensionPropertyInfo.cs
│ │ │ ├── FunctionType.cs
│ │ │ ├── IPythonObject.cs
│ │ │ ├── InstanceCreator.cs
│ │ │ ├── Mro.cs
│ │ │ ├── NameConverter.cs
│ │ │ ├── NewTypeInfo.cs
│ │ │ ├── NewTypeMaker.cs
│ │ │ ├── OldClass.cs
│ │ │ ├── OldInstance.Generated.cs
│ │ │ ├── OldInstance.cs
│ │ │ ├── OperatorMapping.cs
│ │ │ ├── ParameterInfoWrapper.cs
│ │ │ ├── PythonAssemblyOps.cs
│ │ │ ├── PythonSiteCache.cs
│ │ │ ├── PythonType.Generated.cs
│ │ │ ├── PythonType.cs
│ │ │ ├── PythonTypeDataSlot.cs
│ │ │ ├── PythonTypeDictSlot.cs
│ │ │ ├── PythonTypeInfo.Generated.cs
│ │ │ ├── PythonTypeInfo.cs
│ │ │ ├── PythonTypeSlot.cs
│ │ │ ├── PythonTypeTypeSlot.cs
│ │ │ ├── PythonTypeUserDescriptorSlot.cs
│ │ │ ├── PythonTypeWeakRefSlot.cs
│ │ │ ├── ReflectedEvent.cs
│ │ │ ├── ReflectedExtensionProperty.cs
│ │ │ ├── ReflectedField.cs
│ │ │ ├── ReflectedGetterSetter.cs
│ │ │ ├── ReflectedIndexer.cs
│ │ │ ├── ReflectedProperty.cs
│ │ │ ├── ReflectedSlotProperty.cs
│ │ │ ├── ResolvedMember.cs
│ │ │ ├── SlotFieldAttribute.cs
│ │ │ ├── StaticUnderlyingSystemType.cs
│ │ │ └── TypeCache.Generated.cs
│ │ │ ├── UnboundNameException.cs
│ │ │ ├── WarningInfo.cs
│ │ │ ├── WeakRef.cs
│ │ │ ├── WrapperDescriptorAttribute.cs
│ │ │ ├── WrapperDictionary.cs
│ │ │ ├── XRange.cs
│ │ │ └── XamlObjectWriterSettings.cs
│ ├── Microsoft.Dynamic
│ │ ├── Actions
│ │ │ ├── ActionBinder.cs
│ │ │ ├── Argument.cs
│ │ │ ├── ArgumentType.cs
│ │ │ ├── BoundMemberTracker.cs
│ │ │ ├── CallSignature.cs
│ │ │ ├── Calls
│ │ │ │ ├── ActualArguments.cs
│ │ │ │ ├── ApplicableCandidate.cs
│ │ │ │ ├── ArgBuilder.cs
│ │ │ │ ├── ArgumentBinding.cs
│ │ │ │ ├── BindingResult.cs
│ │ │ │ ├── BindingTarget.cs
│ │ │ │ ├── ByRefReturnBuilder.cs
│ │ │ │ ├── CallFailure.cs
│ │ │ │ ├── CallFailureReason.cs
│ │ │ │ ├── Candidate.cs
│ │ │ │ ├── CandidateSet.cs
│ │ │ │ ├── ConversionResult.cs
│ │ │ │ ├── DefaultArgBuilder.cs
│ │ │ │ ├── DefaultOverloadResolver.cs
│ │ │ │ ├── InstanceBuilder.cs
│ │ │ │ ├── KeywordArgBuilder.cs
│ │ │ │ ├── KeywordConstructorReturnBuilder.cs
│ │ │ │ ├── MethodCandidate.cs
│ │ │ │ ├── NarrowingLevel.cs
│ │ │ │ ├── OutArgBuilder.cs
│ │ │ │ ├── OverloadInfo.cs
│ │ │ │ ├── OverloadResolver.cs
│ │ │ │ ├── OverloadResolverFactory.cs
│ │ │ │ ├── ParameterMapping.cs
│ │ │ │ ├── ParameterWrapper.cs
│ │ │ │ ├── ParamsArgBuilder.cs
│ │ │ │ ├── ParamsDictArgBuilder.cs
│ │ │ │ ├── ReferenceArgBuilder.cs
│ │ │ │ ├── RestrictedArguments.cs
│ │ │ │ ├── ReturnBuilder.cs
│ │ │ │ ├── ReturnReferenceArgBuilder.cs
│ │ │ │ ├── SimpleArgBuilder.cs
│ │ │ │ └── TypeInferer.cs
│ │ │ ├── ComboActionRewriter.cs
│ │ │ ├── ComboBinder.cs
│ │ │ ├── ConditionalBuilder.cs
│ │ │ ├── ConstructorTracker.cs
│ │ │ ├── ConversionResultKind.cs
│ │ │ ├── CustomTracker.cs
│ │ │ ├── DefaultBinder.Conversions.cs
│ │ │ ├── DefaultBinder.DeleteMember.cs
│ │ │ ├── DefaultBinder.GetMember.cs
│ │ │ ├── DefaultBinder.Invoke.cs
│ │ │ ├── DefaultBinder.MethodCalls.cs
│ │ │ ├── DefaultBinder.Operations.cs
│ │ │ ├── DefaultBinder.SetMember.cs
│ │ │ ├── DefaultBinder.cs
│ │ │ ├── DynamicSiteHelper.cs
│ │ │ ├── ErrorInfo.cs
│ │ │ ├── ErrorMetaObject.cs
│ │ │ ├── EventTracker.cs
│ │ │ ├── ExtensionBinaryOperationBinder.cs
│ │ │ ├── ExtensionMethodTracker.cs
│ │ │ ├── ExtensionPropertyTracker.cs
│ │ │ ├── ExtensionUnaryOperationBinder.cs
│ │ │ ├── FieldTracker.cs
│ │ │ ├── ILightExceptionBinder.cs
│ │ │ ├── Interceptor.cs
│ │ │ ├── MemberGroup.cs
│ │ │ ├── MemberRequestKind.cs
│ │ │ ├── MemberTracker.cs
│ │ │ ├── MethodGroup.cs
│ │ │ ├── MethodTracker.cs
│ │ │ ├── NamespaceTracker.cs
│ │ │ ├── NestedTypeTracker.cs
│ │ │ ├── NoSideEffectsAttribute.cs
│ │ │ ├── OperationBinder.cs
│ │ │ ├── OperationMetaObject.cs
│ │ │ ├── OperatorInfo.cs
│ │ │ ├── PropertyTracker.cs
│ │ │ ├── ReflectedPropertyTracker.cs
│ │ │ ├── TopNamespaceTracker.cs
│ │ │ ├── TrackerTypes.cs
│ │ │ ├── TypeGroup.cs
│ │ │ └── TypeTracker.cs
│ │ ├── Ast
│ │ │ ├── BinaryExpression.cs
│ │ │ ├── Block.cs
│ │ │ ├── BlockBuilder.cs
│ │ │ ├── ConstantExpression.cs
│ │ │ ├── DebugStatement.cs
│ │ │ ├── EmptyStatements.cs
│ │ │ ├── ExpressionCollectionBuilder.cs
│ │ │ ├── FinallyFlowControlExpression.cs
│ │ │ ├── FlowControlRewriter.cs
│ │ │ ├── GeneratorExpression.cs
│ │ │ ├── GeneratorRewriter.cs
│ │ │ ├── ILightExceptionAwareExpression.cs
│ │ │ ├── IfStatementBuilder.cs
│ │ │ ├── IfStatementTest.cs
│ │ │ ├── LambdaBuilder.cs
│ │ │ ├── LambdaParameterRewriter.cs
│ │ │ ├── LightCheckAndThrowExpression.cs
│ │ │ ├── LightDynamicExpression.cs
│ │ │ ├── LightExceptionConvertingExpression.cs
│ │ │ ├── LightExceptionRewriter.cs
│ │ │ ├── LightLambdaExpression.cs
│ │ │ ├── LightThrowExpression.cs
│ │ │ ├── LoopStatement.cs
│ │ │ ├── MethodCallExpression.cs
│ │ │ ├── NewArrayExpression.cs
│ │ │ ├── NewExpression.cs
│ │ │ ├── SourceFileInformation.cs
│ │ │ ├── TryStatementBuilder.cs
│ │ │ ├── UnaryExpression.cs
│ │ │ ├── Utils.cs
│ │ │ └── YieldExpression.cs
│ │ ├── ComInterop
│ │ │ ├── ArgBuilder.cs
│ │ │ ├── BoolArgBuilder.cs
│ │ │ ├── BoundDispEvent.cs
│ │ │ ├── CollectionExtensions.cs
│ │ │ ├── ComBinder.cs
│ │ │ ├── ComBinderHelpers.cs
│ │ │ ├── ComClassMetaObject.cs
│ │ │ ├── ComDispIds.cs
│ │ │ ├── ComEventDesc.cs
│ │ │ ├── ComEventSink.netfx.cs
│ │ │ ├── ComEventSinkProxy.netfx.cs
│ │ │ ├── ComEventSinksContainer.cs
│ │ │ ├── ComEventsMethod.netcoreapp.cs
│ │ │ ├── ComFallbackMetaObject.cs
│ │ │ ├── ComHresults.cs
│ │ │ ├── ComInterop.cs
│ │ │ ├── ComInvokeAction.cs
│ │ │ ├── ComInvokeBinder.cs
│ │ │ ├── ComMetaObject.cs
│ │ │ ├── ComMethodDesc.cs
│ │ │ ├── ComObject.cs
│ │ │ ├── ComParamDesc.cs
│ │ │ ├── ComRuntimeHelpers.cs
│ │ │ ├── ComType.cs
│ │ │ ├── ComTypeClassDesc.cs
│ │ │ ├── ComTypeDesc.cs
│ │ │ ├── ComTypeEnumDesc.cs
│ │ │ ├── ComTypeLibDesc.cs
│ │ │ ├── ComTypeLibInfo.cs
│ │ │ ├── ComTypeLibMemberDesc.cs
│ │ │ ├── ConversionArgBuilder.cs
│ │ │ ├── ConvertArgBuilder.cs
│ │ │ ├── ConvertibleArgBuilder.cs
│ │ │ ├── CurrencyArgBuilder.cs
│ │ │ ├── DateTimeArgBuilder.cs
│ │ │ ├── DispCallable.cs
│ │ │ ├── DispCallableMetaObject.cs
│ │ │ ├── DispatchArgBuilder.cs
│ │ │ ├── ErrorArgBuilder.cs
│ │ │ ├── Errors.cs
│ │ │ ├── ExcepInfo.cs
│ │ │ ├── Helpers.cs
│ │ │ ├── IDispatchComObject.cs
│ │ │ ├── IDispatchMetaObject.cs
│ │ │ ├── IPseudoComObject.cs
│ │ │ ├── NullArgBuilder.cs
│ │ │ ├── SimpleArgBuilder.cs
│ │ │ ├── SplatCallSite.cs
│ │ │ ├── StringArgBuilder.cs
│ │ │ ├── TypeEnumMetaObject.cs
│ │ │ ├── TypeLibInfoMetaObject.cs
│ │ │ ├── TypeLibMetaObject.cs
│ │ │ ├── TypeUtils.cs
│ │ │ ├── UnknownArgBuilder.cs
│ │ │ ├── VarEnumSelector.cs
│ │ │ ├── Variant.cs
│ │ │ ├── VariantArgBuilder.cs
│ │ │ ├── VariantArray.cs
│ │ │ └── VariantBuilder.cs
│ │ ├── DebugOptions.cs
│ │ ├── Debugging
│ │ │ ├── CollectionUtils.cs
│ │ │ ├── CompilerServices
│ │ │ │ ├── DebugLambdaInfo.cs
│ │ │ │ └── IDebugCompilerSupport.cs
│ │ │ ├── DebugContext.GeneratorLoopProc.cs
│ │ │ ├── DebugContext.cs
│ │ │ ├── DebugFrame.cs
│ │ │ ├── DebugGenerator.cs
│ │ │ ├── DebugInfoRewriter.cs
│ │ │ ├── DebugMode.cs
│ │ │ ├── DebugSourceFile.cs
│ │ │ ├── DebugSourceSpan.cs
│ │ │ ├── DebugThread.cs
│ │ │ ├── DebuggableLambdaBuilder.cs
│ │ │ ├── DefaultRuntimeVariablesImpl
│ │ │ │ ├── DebugRuntimeVariables.cs
│ │ │ │ ├── DefaultDebugThread.cs
│ │ │ │ └── DefaultDebugThreadFactory.cs
│ │ │ ├── DelegateHelpers.cs
│ │ │ ├── ForceToGeneratorLoopException.cs
│ │ │ ├── FunctionInfo.cs
│ │ │ ├── IDebugCallback.cs
│ │ │ ├── InvokeTargets.cs
│ │ │ ├── LambdaWalker.cs
│ │ │ ├── Microsoft.Scripting.Debugging.Generated.cs
│ │ │ ├── RuntimeOps.cs
│ │ │ ├── RuntimeVariablesSupport
│ │ │ │ ├── IDebugRuntimeVariables.cs
│ │ │ │ └── IDebugThreadFactory.cs
│ │ │ ├── ScopedRuntimeVariables.cs
│ │ │ ├── ThreadLocal.cs
│ │ │ ├── TraceEventKind.cs
│ │ │ ├── TracePipeline
│ │ │ │ ├── ITraceCallback.cs
│ │ │ │ ├── ITracePipeline.cs
│ │ │ │ └── TracePipeline.cs
│ │ │ └── VariableInfo.cs
│ │ ├── Generation
│ │ │ ├── AssemblyGen.cs
│ │ │ ├── CompilerHelpers.cs
│ │ │ ├── ConstantCheck.cs
│ │ │ ├── DelegateHelpers.Generated.cs
│ │ │ ├── DelegateHelpers.cs
│ │ │ ├── DynamicILGen.cs
│ │ │ ├── FieldBuilderExpression.cs
│ │ │ ├── IExpressionSerializable.cs
│ │ │ ├── ILGen.cs
│ │ │ ├── KeyedQueue.cs
│ │ │ ├── MethodSignatureInfo.cs
│ │ │ ├── Snippets.cs
│ │ │ ├── SymbolGuids.cs
│ │ │ ├── ToDiskRewriter.cs
│ │ │ └── TypeGen.cs
│ │ ├── GlobalSuppressions.cs
│ │ ├── Hosting
│ │ │ └── Shell
│ │ │ │ ├── BasicConsole.cs
│ │ │ │ ├── CommandLine.cs
│ │ │ │ ├── ConsoleHost.cs
│ │ │ │ ├── ConsoleHostOptions.cs
│ │ │ │ ├── ConsoleHostOptionsParser.cs
│ │ │ │ ├── ConsoleOptions.cs
│ │ │ │ ├── ICommandDispatcher.cs
│ │ │ │ ├── IConsole.cs
│ │ │ │ ├── OptionsParser.cs
│ │ │ │ ├── Remote
│ │ │ │ ├── ConsoleRestartManager.cs
│ │ │ │ ├── RemoteCommandDispatcher.cs
│ │ │ │ ├── RemoteConsoleCommandLine.cs
│ │ │ │ ├── RemoteConsoleHost.cs
│ │ │ │ └── RemoteRuntimeServer.cs
│ │ │ │ ├── Style.cs
│ │ │ │ └── SuperConsole.cs
│ │ ├── Interpreter
│ │ │ ├── BranchLabel.cs
│ │ │ ├── ILightCallSiteBinder.cs
│ │ │ ├── Instructions
│ │ │ │ ├── AddInstruction.cs
│ │ │ │ ├── ArrayOperations.cs
│ │ │ │ ├── CallInstruction.Generated.cs
│ │ │ │ ├── CallInstruction.cs
│ │ │ │ ├── ControlFlowInstructions.cs
│ │ │ │ ├── DivInstruction.cs
│ │ │ │ ├── DynamicInstructionN.cs
│ │ │ │ ├── DynamicInstructions.Generated.cs
│ │ │ │ ├── DynamicSplatInstruction.cs
│ │ │ │ ├── EqualInstruction.cs
│ │ │ │ ├── FieldOperations.cs
│ │ │ │ ├── GreaterThanInstruction.cs
│ │ │ │ ├── Instruction.cs
│ │ │ │ ├── InstructionFactory.cs
│ │ │ │ ├── InstructionList.cs
│ │ │ │ ├── LabelInfo.cs
│ │ │ │ ├── LessThanInstruction.cs
│ │ │ │ ├── LocalAccess.cs
│ │ │ │ ├── NotEqualInstruction.cs
│ │ │ │ ├── NumericConvertInstruction.cs
│ │ │ │ ├── StackOperations.cs
│ │ │ │ └── TypeOperations.cs
│ │ │ ├── InterpretedFrame.cs
│ │ │ ├── Interpreter.cs
│ │ │ ├── LightCompiler.cs
│ │ │ ├── LightDelegateCreator.cs
│ │ │ ├── LightLambda.Generated.cs
│ │ │ ├── LightLambda.cs
│ │ │ ├── LightLambdaClosureVisitor.cs
│ │ │ ├── LocalVariables.cs
│ │ │ ├── LoopCompiler.cs
│ │ │ └── RuntimeVariables.cs
│ │ ├── KeyboardInterruptException.cs
│ │ ├── Microsoft.Scripting.txt
│ │ ├── MultiRuntimeAwareAttribute.cs
│ │ ├── MutableTuple.cs
│ │ ├── PerfTrack.cs
│ │ ├── Runtime
│ │ │ ├── AmbiguousFileNameException.cs
│ │ │ ├── ArgumentArray.cs
│ │ │ ├── AssemblyTypeNames.cs
│ │ │ ├── BinderOps.cs
│ │ │ ├── BinderType.cs
│ │ │ ├── BindingRestrictionsHelpers.cs
│ │ │ ├── CallTargets.cs
│ │ │ ├── CallTypes.cs
│ │ │ ├── Cast.Generated.cs
│ │ │ ├── Cast.cs
│ │ │ ├── CodeDomCodeGen.cs
│ │ │ ├── CompilerContext.cs
│ │ │ ├── CustomStringDictionary.cs
│ │ │ ├── DelegateInfo.cs
│ │ │ ├── DelegateSignatureInfo.cs
│ │ │ ├── DlrCachedCodeAttribute.cs
│ │ │ ├── DocumentationAttribute.cs
│ │ │ ├── DynamicDelegateCreator.cs
│ │ │ ├── DynamicNull.cs
│ │ │ ├── ExceptionHelpers.cs
│ │ │ ├── ExplicitConversionMethodAttribute.cs
│ │ │ ├── Extensible.cs
│ │ │ ├── ExtensionTypeAttribute.cs
│ │ │ ├── ExtraKeyEnumerator.cs
│ │ │ ├── Generator.cs
│ │ │ ├── IConvertibleMetaObject.cs
│ │ │ ├── ICustomScriptCodeData.cs
│ │ │ ├── IMembersList.cs
│ │ │ ├── IRestrictedMetaObject.cs
│ │ │ ├── ISlice.cs
│ │ │ ├── IdDispenser.cs
│ │ │ ├── ImplicitConversionMethodAttribute.cs
│ │ │ ├── LanguageBoundTextContentProvider.cs
│ │ │ ├── LegacyScriptCode.cs
│ │ │ ├── LightExceptions.cs
│ │ │ ├── LightThrowingAttribute.cs
│ │ │ ├── LocalsDictionary.cs
│ │ │ ├── MetaObjectExtensions.cs
│ │ │ ├── ModuleChangeEventArgs.cs
│ │ │ ├── ModuleChangeEventType.cs
│ │ │ ├── NullTextContentProvider.cs
│ │ │ ├── OperationFailed.cs
│ │ │ ├── OperatorSlotAttribute.cs
│ │ │ ├── PositionTrackingWriter.cs
│ │ │ ├── PropertyMethodAttribute.cs
│ │ │ ├── ReflectionCache.cs
│ │ │ ├── RestrictedMetaObject.cs
│ │ │ ├── ReturnFixer.cs
│ │ │ ├── SavableScriptCode.cs
│ │ │ ├── ScriptingRuntimeHelpers.cs
│ │ │ ├── SourceStringContentProvider.cs
│ │ │ ├── StaticExtensionMethodAttribute.cs
│ │ │ ├── TokenizerBuffer.cs
│ │ │ └── Uninitialized.cs
│ │ ├── SourceFileContentProvider.cs
│ │ ├── Utils
│ │ │ ├── ArrayUtils.cs
│ │ │ ├── Assert.cs
│ │ │ ├── CacheDict.cs
│ │ │ ├── CheckedDictionaryEnumerator.cs
│ │ │ ├── CollectionExtensions.cs
│ │ │ ├── CollectionUtils.cs
│ │ │ ├── ContractUtils.cs
│ │ │ ├── CopyOnWriteList.cs
│ │ │ ├── DictionaryUnionEnumerator.cs
│ │ │ ├── DynamicUtils.cs
│ │ │ ├── EnumUtils.cs
│ │ │ ├── ExceptionUtils.cs
│ │ │ ├── HybridReferenceDictionary.cs
│ │ │ ├── IOUtils.cs
│ │ │ ├── ListEqualityComparer.cs
│ │ │ ├── MathUtils.cs
│ │ │ ├── MonitorUtils.cs
│ │ │ ├── Publisher.cs
│ │ │ ├── ReferenceEqualityComparer.cs
│ │ │ ├── ReflectionUtils.cs
│ │ │ ├── StringUtils.cs
│ │ │ ├── SynchronizedDictionary.cs
│ │ │ ├── ThreadLocal.cs
│ │ │ ├── ThreadingUtils.cs
│ │ │ ├── TypeMemberCache.cs
│ │ │ ├── TypeUtils.cs
│ │ │ ├── ValueArray.cs
│ │ │ ├── WeakCollection.cs
│ │ │ ├── WeakDictionary.cs
│ │ │ └── WeakHandle.cs
│ │ ├── Xaml
│ │ │ └── DynamicXamlReader.cs
│ │ └── zlib.net
│ │ │ ├── Adler32.cs
│ │ │ ├── Deflate.cs
│ │ │ ├── InfBlocks.cs
│ │ │ ├── InfCodes.cs
│ │ │ ├── InfTree.cs
│ │ │ ├── Inflate.cs
│ │ │ ├── StaticTree.cs
│ │ │ ├── Tree.cs
│ │ │ ├── ZStream.cs
│ │ │ ├── ZStreamException.cs
│ │ │ ├── Zlib.cs
│ │ │ ├── history.txt
│ │ │ ├── license.txt
│ │ │ └── readme.txt
│ ├── Microsoft.Scripting.Metadata
│ │ ├── ClrStubs.cs
│ │ ├── MemoryBlock.cs
│ │ ├── MemoryMapping.V4.cs
│ │ ├── MemoryReader.cs
│ │ ├── MetadataExtensions.cs
│ │ ├── MetadataImport.cs
│ │ ├── MetadataName.cs
│ │ ├── MetadataServices.cs
│ │ ├── MetadataTableEnumerator.CCI.cs
│ │ ├── MetadataTableImplementations.cs
│ │ ├── MetadataTables.CCI.cs
│ │ ├── MetadataTables.cs
│ │ └── PEFileStructures.cs
│ └── Microsoft.Scripting
│ │ ├── ArgumentTypeException.cs
│ │ ├── AssemblyLoadedEventArgs.cs
│ │ ├── CompilerOptions.cs
│ │ ├── ErrorSink.cs
│ │ ├── Hosting
│ │ ├── CompiledCode.cs
│ │ ├── Configuration
│ │ │ ├── LanguageElement.cs
│ │ │ ├── LanguageElementCollection.cs
│ │ │ ├── OptionElement.cs
│ │ │ ├── OptionElementCollection.cs
│ │ │ └── Section.cs
│ │ ├── DocumentationOperations.cs
│ │ ├── ErrorListener.cs
│ │ ├── ErrorListenerProxy.cs
│ │ ├── ErrorSinkProxyListener.cs
│ │ ├── ExceptionOperations.cs
│ │ ├── LanguageSetup.cs
│ │ ├── MemberDoc.cs
│ │ ├── MemberKind.cs
│ │ ├── ObjectOperations.cs
│ │ ├── OverloadDoc.cs
│ │ ├── ParameterDoc.cs
│ │ ├── ParameterFlags.cs
│ │ ├── Providers
│ │ │ └── HostingHelpers.cs
│ │ ├── ScriptEngine.cs
│ │ ├── ScriptHost.cs
│ │ ├── ScriptHostProxy.cs
│ │ ├── ScriptIO.cs
│ │ ├── ScriptRuntime.cs
│ │ ├── ScriptRuntimeSetup.cs
│ │ ├── ScriptScope.cs
│ │ ├── ScriptSource.cs
│ │ └── TokenCategorizer.cs
│ │ ├── IndexSpan.cs
│ │ ├── InvalidImplementationException.cs
│ │ ├── LanguageOptions.cs
│ │ ├── PlatformAdaptationLayer.cs
│ │ ├── Runtime
│ │ ├── ContextId.cs
│ │ ├── DlrConfiguration.cs
│ │ ├── DocumentationProvider.cs
│ │ ├── DynamicOperations.Generated.cs
│ │ ├── DynamicOperations.cs
│ │ ├── DynamicRuntimeHostingProvider.cs
│ │ ├── DynamicStackFrame.cs
│ │ ├── InvariantContext.cs
│ │ ├── LanguageBoundTextContentProvider.cs
│ │ ├── LanguageContext.cs
│ │ ├── NotNullAttribute.cs
│ │ ├── ObjectDictionaryExpando.cs
│ │ ├── ParamDictionaryAttribute.cs
│ │ ├── ParserSink.cs
│ │ ├── Scope.cs
│ │ ├── ScopeExtension.cs
│ │ ├── ScopeStorage.cs
│ │ ├── ScriptCode.cs
│ │ ├── ScriptDomainManager.cs
│ │ ├── SharedIO.cs
│ │ ├── StreamContentProvider.cs
│ │ ├── StringDictionaryExpando.cs
│ │ ├── TokenInfo.cs
│ │ ├── TokenTriggers.cs
│ │ └── TokenizerService.cs
│ │ ├── ScriptCodeParseResult.cs
│ │ ├── Severity.cs
│ │ ├── SourceCodeKind.cs
│ │ ├── SourceCodeReader.cs
│ │ ├── SourceLocation.cs
│ │ ├── SourceSpan.cs
│ │ ├── SourceUnit.cs
│ │ ├── Stubs.cs
│ │ ├── SyntaxErrorException.cs
│ │ ├── TextContentProvider.cs
│ │ ├── TokenCategory.cs
│ │ └── Utils
│ │ ├── ArrayUtils.cs
│ │ ├── AssemblyQualifiedTypeName.cs
│ │ ├── Assert.cs
│ │ ├── CollectionExtensions.cs
│ │ ├── ConsoleInputStream.cs
│ │ ├── ConsoleStreamType.cs
│ │ ├── ContractUtils.cs
│ │ ├── DelegateUtils.cs
│ │ ├── ExceptionFactory.Generated.cs
│ │ ├── ExceptionUtils.cs
│ │ ├── ExpressionUtils.cs
│ │ ├── NativeMethods.cs
│ │ ├── ReflectionUtils.cs
│ │ └── StringUtils.cs
├── Util
│ └── References
│ │ └── Mono.Posix.dll
├── Zolom.csproj
├── app.config
└── packages.config
└── packages
├── Costura.Fody.2.0.0
├── .signature.p7s
├── Costura.Fody.2.0.0.nupkg
├── build
│ └── Costura.Fody.targets
├── lib
│ └── net452
│ │ ├── Costura.dll
│ │ └── Costura.xml
├── netclassictask
│ ├── Costura.Tasks.dll
│ └── Costura.Tasks.pdb
├── netclassicweaver
│ ├── Costura.Fody.dll
│ └── Costura.Fody.pdb
├── netstandardtask
│ ├── Costura.Tasks.dll
│ └── Costura.Tasks.pdb
└── netstandardweaver
│ ├── Costura.Fody.dll
│ └── Costura.Fody.pdb
└── Fody.2.0.0
├── .signature.p7s
├── Content
└── FodyWeavers.xml
├── Fody.2.0.0.nupkg
├── Fody.dll
├── Fody.pdb
├── FodyCommon.dll
├── FodyCommon.pdb
├── FodyIsolated.dll
├── FodyIsolated.pdb
├── Mono.Cecil.Mdb.dll
├── Mono.Cecil.Pdb.dll
├── Mono.Cecil.Rocks.dll
├── Mono.Cecil.dll
├── Tools
└── install.ps1
└── build
├── dotnet
└── Fody.targets
├── netstandard1.4
└── Fody.targets
└── portable-net+sl+win+wpa+wp
└── Fody.targets
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/.DS_Store
--------------------------------------------------------------------------------
/IronKit.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ProjectFiles
5 |
6 |
--------------------------------------------------------------------------------
/Source/IronPython.Modules/_ctypes/Extensions.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | #if FEATURE_CTYPES
6 |
7 | using System;
8 |
9 | namespace IronPython.Modules {
10 | internal static class CTypesExtensionMethods {
11 | public static IntPtr Add(this IntPtr self, int offset) {
12 | return new IntPtr(checked(self.ToInt64() + offset));
13 | }
14 | }
15 | }
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/Source/IronPython.Modules/_ctypes/Union.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | #if FEATURE_CTYPES
6 |
7 | using System;
8 |
9 | using IronPython.Runtime;
10 | using IronPython.Runtime.Types;
11 |
12 | namespace IronPython.Modules {
13 | ///
14 | /// Provides support for interop with native code from Python code.
15 | ///
16 | public static partial class CTypes {
17 | [PythonType("Union")]
18 | public abstract class _Union : CData {
19 | public void __init__(CodeContext/*!*/ context) {
20 | _memHolder = new MemoryHolder(Size);
21 | }
22 | }
23 | }
24 |
25 | }
26 | #endif
27 |
--------------------------------------------------------------------------------
/Source/IronPython.Modules/_sysconfigdata.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using IronPython.Runtime;
6 |
7 | [assembly: PythonModule("_sysconfigdata", typeof(IronPython.Modules._sysconfigdata), PlatformsAttribute.PlatformFamily.Unix)]
8 | namespace IronPython.Modules {
9 | public static class _sysconfigdata
10 | {
11 | public static PythonDictionary build_time_vars = new PythonDictionary();
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/IronPython.Modules/bz2/dotnetzip/source.txt:
--------------------------------------------------------------------------------
1 | https://dotnetzip.svn.codeplex.com/svn 90901
2 |
--------------------------------------------------------------------------------
/Source/IronPython/Compiler/Ast/ErrorExpression.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using MSAst = System.Linq.Expressions;
6 |
7 | using System;
8 |
9 | namespace IronPython.Compiler.Ast {
10 | public class ErrorExpression : Expression {
11 | public ErrorExpression() {
12 | }
13 |
14 | public override void Walk(PythonWalker walker) {
15 | if (walker.Walk(this)) {
16 | ;
17 | }
18 | walker.PostWalk(this);
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Source/IronPython/Compiler/Ast/ILoopStatement.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | using MSAst = System.Linq.Expressions;
6 |
7 |
8 | namespace IronPython.Compiler.Ast {
9 | internal interface ILoopStatement {
10 | MSAst.LabelTarget BreakLabel {
11 | get;
12 | set;
13 | }
14 |
15 | MSAst.LabelTarget ContinueLabel {
16 | get;
17 | set;
18 | }
19 |
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/Source/IronPython/Compiler/Ast/ModuleName.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using Microsoft.Scripting;
6 |
7 | namespace IronPython.Compiler.Ast {
8 | public class ModuleName : DottedName {
9 | public ModuleName(string[] names)
10 | : base(names) {
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/IronPython/Compiler/Ast/PythonReference.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using MSAst = System.Linq.Expressions;
6 |
7 | using Microsoft.Scripting;
8 |
9 | namespace IronPython.Compiler.Ast {
10 | ///
11 | /// Represents a reference to a name. A PythonReference is created for each name
12 | /// referred to in a scope (global, class, or function).
13 | ///
14 | class PythonReference {
15 | private readonly string _name;
16 | private PythonVariable _variable;
17 |
18 | public PythonReference(string name) {
19 | _name = name;
20 | }
21 |
22 | public string Name {
23 | get { return _name; }
24 | }
25 |
26 | internal PythonVariable PythonVariable {
27 | get { return _variable; }
28 | set { _variable = value; }
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/Source/IronPython/Compiler/Ast/RelativeModuleName.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using Microsoft.Scripting;
6 |
7 | namespace IronPython.Compiler.Ast {
8 | public class RelativeModuleName : ModuleName {
9 | private readonly int _dotCount;
10 |
11 | public RelativeModuleName(string[] names, int dotCount)
12 | : base(names) {
13 | _dotCount = dotCount;
14 | }
15 |
16 | public int DotCount {
17 | get {
18 | return _dotCount;
19 | }
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Source/IronPython/Compiler/Ast/VariableKind.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace IronPython.Compiler.Ast {
6 |
7 | public enum VariableKind {
8 |
9 | ///
10 | /// Local variable.
11 | ///
12 | /// Local variables can be referenced from nested lambdas
13 | ///
14 | Local,
15 |
16 | ///
17 | /// Parameter to a LambdaExpression
18 | ///
19 | /// Like locals, they can be referenced from nested lambdas
20 | ///
21 | Parameter,
22 |
23 | ///
24 | /// Global variable
25 | ///
26 | /// Should only appear in global (top level) lambda.
27 | ///
28 | Global
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/Source/IronPython/Lib/iptest/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the .NET Foundation under one or more agreements.
2 | # The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | # See the LICENSE file in the project root for more information.
4 |
5 |
6 | from ipunittest import IronPythonTestCase, stdout_trapper, stderr_trapper, path_modifier, retryOnFailure, run_test, skipUnlessIronPython, source_root
7 | from test_env import *
8 | from type_util import *
9 | from misc_util import ip_supported_encodings
10 |
--------------------------------------------------------------------------------
/Source/IronPython/MaybeNotImplementedAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Collections.Generic;
7 | using System.Text;
8 |
9 | namespace IronPython {
10 | ///
11 | /// Marks that the return value of a function might include NotImplemented.
12 | ///
13 | /// This is added to an operator method to ensure that all necessary methods are called
14 | /// if one cannot guarantee that it can perform the comparison.
15 | ///
16 | [AttributeUsage(AttributeTargets.ReturnValue)]
17 | public sealed class MaybeNotImplementedAttribute : Attribute {
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Source/IronPython/Modules/unicodedata/IPyUnicodeData.txt.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Source/IronPython/Modules/unicodedata/IPyUnicodeData.txt.gz
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/Binding/FastBindResult.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Linq.Expressions;
6 |
7 | using System;
8 | using System.Dynamic;
9 | using System.Runtime.CompilerServices;
10 |
11 | using Microsoft.Scripting.Actions;
12 | using Microsoft.Scripting.Runtime;
13 |
14 | namespace IronPython.Runtime.Binding {
15 | using Ast = Expression;
16 |
17 | struct FastBindResult where T : class {
18 | public readonly T Target;
19 | public readonly bool ShouldCache;
20 |
21 | public FastBindResult(T target, bool shouldCache) {
22 | Target = target;
23 | ShouldCache = shouldCache;
24 | }
25 |
26 | public FastBindResult(T target) {
27 | Target = target;
28 | ShouldCache = false;
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/Binding/IComConvertible.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Collections.Generic;
7 | using System.Dynamic;
8 | using System.Text;
9 |
10 | namespace IronPython.Runtime.Binding {
11 | ///
12 | /// An interface that is implemented on DynamicMetaObjects.
13 | ///
14 | /// This allows objects to opt-into custom conversions when calling
15 | /// COM APIs. The IronPython binders all call this interface before
16 | /// doing any COM binding.
17 | ///
18 | interface IComConvertible {
19 | DynamicMetaObject GetComMetaObject();
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/Binding/IFastGettable.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Linq.Expressions;
6 |
7 | using System;
8 | using System.Dynamic;
9 |
10 | using Microsoft.Scripting.Actions;
11 |
12 | using Microsoft.Scripting.Runtime;
13 | using System.Runtime.CompilerServices;
14 |
15 | namespace IronPython.Runtime.Binding {
16 | interface IFastGettable {
17 | T MakeGetBinding(CallSite site, PythonGetMemberBinder/*!*/ binder, CodeContext/*!*/ state, string/*!*/ name) where T : class;
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/Binding/IFastInvokable.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Linq.Expressions;
6 |
7 | using System;
8 | using System.Dynamic;
9 | using System.Runtime.CompilerServices;
10 | using Microsoft.Scripting.Actions;
11 | using Microsoft.Scripting.Runtime;
12 |
13 | namespace IronPython.Runtime.Binding {
14 | interface IFastInvokable {
15 | FastBindResult MakeInvokeBinding(CallSite site, PythonInvokeBinder/*!*/ binder, CodeContext/*!*/ context, object[] args) where T : class;
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/Binding/IFastSettable.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Linq.Expressions;
6 |
7 | using System;
8 | using System.Dynamic;
9 |
10 | using Microsoft.Scripting.Actions;
11 |
12 | using Microsoft.Scripting.Runtime;
13 | using System.Runtime.CompilerServices;
14 |
15 | namespace IronPython.Runtime.Binding {
16 | interface IFastSettable {
17 | T MakeSetBinding(CallSite site, PythonSetMemberBinder/*!*/ binder) where T : class;
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/Binding/IPythonConvertible.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Linq.Expressions;
6 |
7 | using System;
8 | using System.Dynamic;
9 | using Microsoft.Scripting.Actions;
10 |
11 | namespace IronPython.Runtime.Binding {
12 | interface IPythonConvertible {
13 | DynamicMetaObject BindConvert(PythonConversionBinder/*!*/ binder);
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/Binding/IPythonGetable.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Linq.Expressions;
6 |
7 | using System;
8 | using System.Dynamic;
9 |
10 | namespace IronPython.Runtime.Binding {
11 | interface IPythonGetable {
12 | DynamicMetaObject/*!*/ GetMember(PythonGetMemberBinder/*!*/ member, DynamicMetaObject/*!*/ codeContext);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/Binding/IPythonInvokable.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Linq.Expressions;
6 |
7 | using System;
8 | using System.Dynamic;
9 |
10 | namespace IronPython.Runtime.Binding {
11 | ///
12 | /// Interface used to mark objects as being invokable from Python. These objects support
13 | /// calling with splatted positional and keyword arguments.
14 | ///
15 | interface IPythonInvokable {
16 | DynamicMetaObject/*!*/ Invoke(PythonInvokeBinder/*!*/ pythonInvoke, Expression/*!*/ codeContext, DynamicMetaObject/*!*/ target, DynamicMetaObject/*!*/[]/*!*/ args);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/Binding/IPythonOperable.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Collections.Generic;
7 | using System.Text;
8 | using System.Dynamic;
9 |
10 | namespace IronPython.Runtime.Binding {
11 | interface IPythonOperable {
12 | DynamicMetaObject BindOperation(PythonOperationBinder action, DynamicMetaObject[] args);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/Binding/IPythonSite.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace IronPython.Runtime.Binding {
6 | interface IPythonSite {
7 | ///
8 | /// Gets the PythonContext which the CallSiteBinder is associated with.
9 | ///
10 | PythonContext/*!*/ Context {
11 | get;
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/Binding/PythonIndexType.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Collections.Generic;
7 | using System.Text;
8 |
9 | namespace IronPython.Runtime.Binding {
10 | enum PythonIndexType {
11 | GetItem,
12 | SetItem,
13 | DeleteItem,
14 | GetSlice,
15 | SetSlice,
16 | DeleteSlice
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/ClassMethodAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information./
4 |
5 | using System;
6 | using System.Collections.Generic;
7 | using System.Text;
8 |
9 | namespace IronPython.Runtime {
10 | ///
11 | /// Marks a method as being a class method. The PythonType which was used to access
12 | /// the method will then be passed as the first argument.
13 | ///
14 | [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
15 | public sealed class ClassMethodAttribute : Attribute {
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/CompileFlags.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace IronPython.Runtime {
8 | [Flags]
9 | public enum CompileFlags {
10 | CO_NESTED = 0x0010, // nested_scopes
11 | CO_DONT_IMPLY_DEDENT = 0x0200, // report errors if statement isn't dedented.
12 | CO_GENERATOR_ALLOWED = 0x1000, // generators
13 | CO_FUTURE_DIVISION = 0x2000, // division
14 | CO_FUTURE_ABSOLUTE_IMPORT = 0x4000, // absolute imports by default
15 | CO_FUTURE_WITH_STATEMENT = 0x8000, // with statement
16 | CO_FUTURE_PRINT_FUNCTION = 0x10000, // print function
17 | CO_FUTURE_UNICODE_LITERALS = 0x20000, // default unicode literals
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/DontMapGetMemberNamesToDirAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Collections.Generic;
7 | using System.Text;
8 |
9 | namespace IronPython.Runtime {
10 | ///
11 | /// Marks a type so that IronPython will not expose types which have GetMemberNames
12 | /// as having a __dir__ method.
13 | ///
14 | /// Also suppresses __dir__ on something which implements IDynamicMetaObjectProvider
15 | /// but is not an IPythonObject.
16 | ///
17 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)]
18 | sealed class DontMapGetMemberNamesToDirAttribute : Attribute {
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/DontMapICollectionToLenAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Collections.Generic;
7 | using System.Text;
8 |
9 | namespace IronPython.Runtime {
10 | ///
11 | /// Marks a type so that IronPython will not expose the ICollection interface out as
12 | /// __len__.
13 | ///
14 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)]
15 | sealed class DontMapICollectionToLenAttribute : Attribute {
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/DontMapIDisposableToContextManagerAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Collections.Generic;
7 | using System.Text;
8 |
9 | namespace IronPython.Runtime {
10 | ///
11 | /// Marks a type so that IronPython will not expose the IDisposable interface out as
12 | /// __enter__ and __exit__ methods of a context manager.
13 | ///
14 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)]
15 | sealed class DontMapIDisposableToContextManagerAttribute : Attribute {
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/DontMapIEnumerableToContainsAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Collections.Generic;
7 | using System.Text;
8 |
9 | namespace IronPython.Runtime {
10 | ///
11 | /// Marks a type so that IronPython will not expose the IEnumerable interface out as
12 | /// __contains__
13 | ///
14 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)]
15 | sealed class DontMapIEnumerableToContainsAttribute : Attribute {
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/DontMapIEnumerableToIterAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Collections.Generic;
7 | using System.Text;
8 |
9 | namespace IronPython.Runtime {
10 | ///
11 | /// Marks a type so that IronPython will not expose the IEnumerable interface out as
12 | /// __iter__
13 | ///
14 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)]
15 | sealed class DontMapIEnumerableToIterAttribute : Attribute {
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/Exceptions/ApplicationException.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | #if !FEATURE_APPLICATIONEXCEPTION
6 | using System;
7 |
8 | namespace IronPython.Runtime.Exceptions {
9 | [Serializable]
10 | public class ApplicationException : Exception {
11 | public ApplicationException() : base() { }
12 | public ApplicationException(string msg) : base(msg) { }
13 | public ApplicationException(string message, Exception innerException)
14 | : base(message, innerException) {
15 | }
16 | }
17 | }
18 |
19 | #endif
20 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/Exceptions/IPythonException.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace IronPython.Runtime.Exceptions {
6 | public interface IPythonException {
7 | object ToPythonException();
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/Exceptions/SystemException.cs:
--------------------------------------------------------------------------------
1 | #if WIN8
2 |
3 | using System;
4 |
5 | namespace System {
6 | [Serializable]
7 | public class SystemException : Exception {
8 | public SystemException()
9 | : base("System exception") {
10 | }
11 |
12 | public SystemException(string message)
13 | : base(message) {
14 | }
15 |
16 | public SystemException(string message, Exception innerException)
17 | : base(message, innerException) {
18 | }
19 | }
20 | }
21 |
22 | #endif
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/Exceptions/TabException.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Dynamic;
7 | using Microsoft.Scripting;
8 |
9 | namespace IronPython.Runtime.Exceptions {
10 | ///
11 | /// .NET Exception thrown when a Python syntax error is related to incorrect tabs.
12 | ///
13 | [Serializable]
14 | sealed class TabException : IndentationException {
15 | public TabException(string message) : base(message) { }
16 |
17 | public TabException(string message, SourceUnit sourceUnit, SourceSpan span, int errorCode, Severity severity)
18 | : base(message, sourceUnit, span, errorCode, severity) { }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/Exceptions/Win32Exception.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 | #if !FEATURE_WIN32EXCEPTION
5 |
6 | using System;
7 |
8 | namespace IronPython.Runtime.Exceptions {
9 | // exits for better compatibility w/ Silverlight where this exception isn't available.
10 |
11 | [Serializable]
12 | public class Win32Exception : Exception {
13 | public Win32Exception() : base() { }
14 | public Win32Exception(string msg) : base(msg) { }
15 | public Win32Exception(string message, Exception innerException)
16 | : base(message, innerException) {
17 | }
18 |
19 | public int ErrorCode {
20 | get {
21 | return 0;
22 | }
23 | }
24 |
25 | public int NativeErrorCode {
26 | get {
27 | return 0;
28 | }
29 | }
30 | }
31 | }
32 |
33 | #endif
34 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/IParameterSequence.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace IronPython.Runtime {
6 | ///
7 | /// Represents a sequence which may have been provided as a set of parameters to an indexer.
8 | ///
9 | /// TODO: This should be removed, and all uses of this should go to [SpecialName]object GetItem(..., params object[] keys)
10 | /// and [SpecialName]void SetItem(..., params object [] keys) or this[params object[]xyz] which is also legal.
11 | ///
12 | /// currently this exists for backwards compatibility w/ IronPython's "expandable tuples".
13 | ///
14 | public interface IParameterSequence {
15 | object[] Expand(object initial);
16 | object this[int index] {
17 | get;
18 | }
19 | int Count {
20 | get;
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/Index.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 | using Microsoft.Scripting.Utils.Dynamic;
5 |
6 | namespace IronPython.Runtime {
7 | ///
8 | /// Wrapper class used when a user defined type (new-style or old-style)
9 | /// defines __index__. We provide a conversion from all user defined
10 | /// types to the Index type so they can be used for determing and method bind
11 | /// time the most appropriate method to dispatch to.
12 | ///
13 | public class Index {
14 | private readonly object _value;
15 |
16 | public Index(object/*!*/ value) {
17 | ContractUtils.RequiresNotNull(value, "value");
18 |
19 | _value = value;
20 | }
21 |
22 | internal object/*!*/ Value {
23 | get {
24 | return _value;
25 | }
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/MissingParameter.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace IronPython.Runtime {
6 | public sealed class MissingParameter {
7 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")]
8 | public static readonly MissingParameter Value = new MissingParameter();
9 |
10 | private MissingParameter() { }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/NameType.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace IronPython.Runtime {
8 | [Flags]
9 | public enum NameType {
10 | None = 0x0000,
11 | Python = 0x0001,
12 |
13 | Method = 0x0002,
14 | Field = 0x0004,
15 | Property = 0x0008,
16 | Event = 0x0010,
17 | Type = 0x0020,
18 | BaseTypeMask = 0x003e,
19 |
20 | PythonMethod = Method | Python,
21 | PythonField = Field | Python,
22 | PythonProperty = Property | Python,
23 | PythonEvent = Event | Python,
24 | PythonType = Type | Python,
25 |
26 | ClassMember = 0x0040,
27 | ClassMethod = ClassMember | PythonMethod,
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/Operations/DBNullOps.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 | #if FEATURE_DBNULL
5 | using System;
6 |
7 | namespace IronPython.Runtime.Operations {
8 | public static class DBNullOps {
9 | public static bool __nonzero__(DBNull value) {
10 | return false;
11 | }
12 | }
13 | }
14 | #endif
15 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/Operations/TypeTrackerOps.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 |
6 | using System.Collections;
7 | using System.Runtime.CompilerServices;
8 | using IronPython.Runtime.Types;
9 | using Microsoft.Scripting.Actions;
10 | using Microsoft.Scripting.Runtime;
11 |
12 | namespace IronPython.Runtime.Operations {
13 | public static class TypeTrackerOps {
14 | [SpecialName, PropertyMethod]
15 | public static IDictionary Get__dict__(CodeContext context, TypeTracker self) {
16 | return new DictProxy(DynamicHelpers.GetPythonTypeFromType(self.Type));
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/Python3Warning.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Text;
9 | using Microsoft.Scripting.Utils.Dynamic;
10 |
11 | namespace IronPython.Runtime {
12 | [AttributeUsage(AttributeTargets.Method | AttributeTargets.Constructor)]
13 | sealed class Python3WarningAttribute : Attribute {
14 | private readonly string/*!*/ _message;
15 |
16 | public Python3WarningAttribute(string/*!*/ message) {
17 | ContractUtils.RequiresNotNull(message, "message");
18 |
19 | _message = message;
20 | }
21 |
22 | public string/*!*/ Message {
23 | get {
24 | return _message;
25 | }
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/PythonHiddenBaseClassAttribute.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace IronPython.Runtime {
7 | ///
8 | /// Marks a class as being hidden from the Python hierarchy. This is applied to the base class
9 | /// and then all derived types will not see the base class in their hierarchy and will not be
10 | /// able to access members declaredo on the base class.
11 | ///
12 | [AttributeUsage(AttributeTargets.Class)]
13 | public sealed class PythonHiddenBaseClassAttribute : Attribute {
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/SiteLocalStorage.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 |
6 | namespace IronPython.Runtime {
7 | public abstract class SiteLocalStorage {
8 | }
9 |
10 | ///
11 | /// Provides storage which is flowed into a callers site. The same storage object is
12 | /// flowed for multiple calls enabling the callee to cache data that can be re-used
13 | /// across multiple calls.
14 | ///
15 | /// Data is a public field so that this works properly with DynamicSite's as the reference
16 | /// type (and EnsureInitialize)
17 | ///
18 | public class SiteLocalStorage : SiteLocalStorage {
19 | public T Data;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/ThrowingErrorSink.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 |
6 | using System.Dynamic;
7 | using IronPython.Runtime.Operations;
8 | using Microsoft.Scripting;
9 |
10 | namespace IronPython.Runtime {
11 | internal class ThrowingErrorSink : ErrorSink {
12 | public static new readonly ThrowingErrorSink/*!*/ Default = new ThrowingErrorSink();
13 |
14 | private ThrowingErrorSink() {
15 | }
16 |
17 | public override void Add(SourceUnit sourceUnit, string message, SourceSpan span, int errorCode, Severity severity) {
18 | if (severity == Severity.Warning) {
19 | PythonOps.SyntaxWarning(message, sourceUnit, span, errorCode);
20 | } else {
21 | throw PythonOps.SyntaxError(message, sourceUnit, span, errorCode);
22 | }
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/Types/ResolvedMember.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 |
6 | using System.Diagnostics;
7 | using System.Dynamic;
8 | using Microsoft.Scripting.Actions;
9 |
10 | namespace IronPython.Runtime.Types {
11 | ///
12 | /// Couples a MemberGroup and the name which produces the member group together
13 | ///
14 | class ResolvedMember {
15 | public readonly string/*!*/ Name;
16 | public readonly MemberGroup/*!*/ Member;
17 | public static readonly ResolvedMember[]/*!*/ Empty = new ResolvedMember[0];
18 |
19 | public ResolvedMember(string/*!*/ name, MemberGroup/*!*/ member) {
20 | Debug.Assert(name != null);
21 | Debug.Assert(member != null);
22 |
23 | Name = name;
24 | Member = member;
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/Types/SlotFieldAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 |
6 | using System;
7 |
8 | namespace IronPython.Runtime.Types {
9 | ///
10 | /// Represents an ops-extension which adds a new slot. The slot can have arbitrary
11 | /// get/set behavior above and beyond normal .NET methods or properties. This is
12 | /// typically in regards to how it processes access from instances or subtypes.
13 | ///
14 | [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
15 | internal sealed class SlotFieldAttribute : Attribute {
16 | public SlotFieldAttribute() { }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/WrapperDescriptorAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Text;
9 |
10 | namespace IronPython.Runtime {
11 | ///
12 | /// Marks a method/field/property as being a wrapper descriptor. A wrapper desriptor
13 | /// is a member defined on PythonType but is available both for type and other
14 | /// instances of type. For example type.__bases__.
15 | ///
16 | [AttributeUsage(AttributeTargets.Method | AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = true, Inherited = false)]
17 | internal sealed class WrapperDescriptorAttribute : Attribute {
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Source/IronPython/Runtime/XamlObjectWriterSettings.cs:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Actions/Calls/Candidate.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Actions.Calls {
6 | public enum Candidate {
7 | Equivalent = 0,
8 | One = +1,
9 | Two = -1,
10 | Ambiguous = 2
11 | }
12 |
13 | internal static class CandidateExtension {
14 | public static bool Chosen(this Candidate candidate) {
15 | return candidate == Candidate.One || candidate == Candidate.Two;
16 | }
17 |
18 | public static Candidate TheOther(this Candidate candidate) {
19 | if (candidate == Candidate.One) {
20 | return Candidate.Two;
21 | }
22 | if (candidate == Candidate.Two) {
23 | return Candidate.One;
24 | }
25 | return candidate;
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Actions/Calls/OverloadResolverFactory.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Collections.Generic;
6 | using System.Dynamic;
7 | using Microsoft.Scripting.Runtime;
8 |
9 | namespace Microsoft.Scripting.Actions.Calls {
10 | public abstract class OverloadResolverFactory {
11 | public abstract DefaultOverloadResolver CreateOverloadResolver(IList args, CallSignature signature, CallTypes callType);
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Actions/ConstructorTracker.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Reflection;
7 |
8 | namespace Microsoft.Scripting.Actions {
9 | public class ConstructorTracker : MemberTracker {
10 | private readonly ConstructorInfo _ctor;
11 |
12 | public ConstructorTracker(ConstructorInfo ctor) {
13 | _ctor = ctor;
14 | }
15 |
16 | public override Type DeclaringType => _ctor.DeclaringType;
17 |
18 | public override TrackerTypes MemberType => TrackerTypes.Constructor;
19 |
20 | public override string Name => _ctor.Name;
21 |
22 | public bool IsPublic => _ctor.IsPublic;
23 |
24 | public override string ToString() {
25 | return _ctor.ToString();
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Actions/CustomTracker.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Actions {
6 | ///
7 | /// A custom member tracker which enables languages to plug in arbitrary
8 | /// members into the lookup process.
9 | ///
10 | public abstract class CustomTracker : MemberTracker {
11 | protected CustomTracker() {
12 | }
13 |
14 | public sealed override TrackerTypes MemberType => TrackerTypes.Custom;
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Actions/ErrorMetaObject.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Dynamic;
6 | using System.Linq.Expressions;
7 |
8 | namespace Microsoft.Scripting.Actions {
9 | ///
10 | /// A MetaObject which was produced as the result of a failed binding.
11 | ///
12 | public sealed class ErrorMetaObject : DynamicMetaObject {
13 | public ErrorMetaObject(Expression body, BindingRestrictions restrictions)
14 | : base(body, restrictions) {
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Actions/MemberRequestKind.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Actions {
6 | ///
7 | /// Specifies the action for which the default binder is requesting a member.
8 | ///
9 | public enum MemberRequestKind {
10 | None,
11 | Get,
12 | Set,
13 | Delete,
14 | Invoke,
15 | InvokeMember,
16 | Convert,
17 | Operation
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Actions/MemberTracker.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Source/Microsoft.Dynamic/Actions/MemberTracker.cs
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Actions/NoSideEffectsAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Actions {
8 | ///
9 | /// Marks a method as not having side effects. used by the combo binder
10 | /// to allow calls to methods.
11 | ///
12 | [AttributeUsage(AttributeTargets.Method | AttributeTargets.Constructor)]
13 | public sealed class NoSideEffectsAttribute : Attribute {
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Ast/EmptyStatements.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Linq.Expressions;
6 |
7 | using System;
8 | using System.Dynamic;
9 |
10 | namespace Microsoft.Scripting.Ast {
11 | public static partial class Utils {
12 | private static readonly DefaultExpression VoidInstance = Expression.Empty();
13 |
14 | public static DefaultExpression Empty() {
15 | return VoidInstance;
16 | }
17 |
18 | public static DefaultExpression Default(Type type) {
19 | if (type == typeof(void)) {
20 | return Empty();
21 | }
22 | return Expression.Default(type);
23 | }
24 | }
25 | }
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Ast/NewExpression.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Linq.Expressions;
6 | using System.Reflection;
7 |
8 | using Microsoft.Scripting.Utils.Dynamic;
9 |
10 | namespace Microsoft.Scripting.Ast {
11 | public static partial class Utils {
12 | public static NewExpression SimpleNewHelper(ConstructorInfo constructor, params Expression[] arguments) {
13 | ContractUtils.RequiresNotNull(constructor, nameof(constructor));
14 | ContractUtils.RequiresNotNullItems(arguments, nameof(arguments));
15 |
16 | ParameterInfo[] parameters = constructor.GetParameters();
17 | ContractUtils.Requires(arguments.Length == parameters.Length, nameof(arguments), "Incorrect number of arguments");
18 |
19 | return Expression.New(constructor, ArgumentConvertHelper(arguments, parameters));
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/ComInterop/ComDispIds.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | #if FEATURE_COM
6 |
7 | namespace Microsoft.Scripting.ComInterop {
8 | internal static class ComDispIds {
9 | internal const int DISPID_VALUE = 0;
10 | internal const int DISPID_PROPERTYPUT = -3;
11 | internal const int DISPID_NEWENUM = -4;
12 | }
13 | }
14 |
15 | #endif
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/ComInterop/ComEventDesc.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | #if FEATURE_COM
6 |
7 | using System;
8 |
9 | namespace Microsoft.Scripting.ComInterop {
10 | internal class ComEventDesc {
11 | internal Guid sourceIID;
12 | internal int dispid;
13 | };
14 | }
15 |
16 | #endif
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/ComInterop/ComType.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | #if FEATURE_COM
6 |
7 | namespace Microsoft.Scripting.ComInterop {
8 |
9 | public enum ComType {
10 | Class,
11 | Enum,
12 | Interface
13 | };
14 | }
15 |
16 | #endif
17 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/ComInterop/ComTypeLibMemberDesc.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | #if FEATURE_COM
6 |
7 | namespace Microsoft.Scripting.ComInterop {
8 |
9 | public class ComTypeLibMemberDesc {
10 | internal ComTypeLibMemberDesc(ComType kind) {
11 | Kind = kind;
12 | }
13 |
14 | public ComType Kind { get; }
15 | }
16 | }
17 |
18 | #endif
19 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/ComInterop/ConvertibleArgBuilder.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | #if FEATURE_COM
6 |
7 | using System.Linq.Expressions;
8 |
9 | using System;
10 | using System.Globalization;
11 | using Microsoft.Scripting.Utils.Dynamic;
12 |
13 | namespace Microsoft.Scripting.ComInterop {
14 |
15 | internal class ConvertibleArgBuilder : ArgBuilder {
16 |
17 | internal override Expression Marshal(Expression parameter) {
18 | return Helpers.Convert(parameter, typeof(IConvertible));
19 | }
20 |
21 | internal override Expression MarshalToRef(Expression parameter) {
22 | //we are not supporting convertible InOut
23 | throw Assert.Unreachable;
24 | }
25 | }
26 | }
27 |
28 | #endif
29 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/ComInterop/Helpers.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | #if FEATURE_COM
6 | using System.Linq.Expressions;
7 |
8 | using System;
9 |
10 | namespace Microsoft.Scripting.ComInterop {
11 |
12 | // Miscellaneous helpers that don't belong anywhere else
13 | internal static class Helpers {
14 |
15 | internal static Expression Convert(Expression expression, Type type) {
16 | if (expression.Type == type) {
17 | return expression;
18 | }
19 | return Expression.Convert(expression, type);
20 | }
21 | }
22 | }
23 | #endif
24 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/ComInterop/IPseudoComObject.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | #if FEATURE_COM
6 | using System.Linq.Expressions;
7 |
8 | using System;
9 | using System.Dynamic;
10 |
11 | namespace Microsoft.Scripting.ComInterop {
12 | interface IPseudoComObject {
13 | DynamicMetaObject GetMetaObject(Expression expression);
14 | }
15 | }
16 |
17 | #endif
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/ComInterop/NullArgBuilder.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | #if FEATURE_COM
6 | using System.Linq.Expressions;
7 |
8 | using System;
9 | using System.Diagnostics;
10 |
11 | namespace Microsoft.Scripting.ComInterop {
12 |
13 | ///
14 | /// ArgBuilder which always produces null.
15 | ///
16 | internal sealed class NullArgBuilder : ArgBuilder {
17 | internal NullArgBuilder() { }
18 |
19 | internal override Expression Marshal(Expression parameter) {
20 | return Expression.Constant(null);
21 | }
22 | }
23 | }
24 |
25 | #endif
26 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Debugging/CompilerServices/IDebugCompilerSupport.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using MSAst = System.Linq.Expressions;
6 |
7 | namespace Microsoft.Scripting.Debugging.CompilerServices {
8 | ///
9 | /// Implemented by compilers to allow the traceback engine to get additional information.
10 | ///
11 | public interface IDebugCompilerSupport {
12 | bool DoesExpressionNeedReduction(MSAst.Expression expression);
13 | MSAst.Expression QueueExpressionForReduction(MSAst.Expression expression);
14 | bool IsCallToDebuggableLambda(MSAst.Expression expression);
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Debugging/DebugMode.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Debugging {
6 | internal enum DebugMode {
7 | Disabled,
8 | ExceptionsOnly,
9 | TracePoints,
10 | FullyEnabled
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Debugging/ForceToGeneratorLoopException.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Debugging {
8 | [Serializable]
9 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design","CA1032:ImplementStandardExceptionConstructors")]
10 | public sealed class ForceToGeneratorLoopException : Exception {
11 | public ForceToGeneratorLoopException() : base() { }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Debugging/IDebugCallback.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Debugging {
6 | internal interface IDebugCallback {
7 | ///
8 | /// Callback that is fired by the traceback engine
9 | ///
10 | void OnDebugEvent(
11 | TraceEventKind kind,
12 | DebugThread thread,
13 | FunctionInfo functionInfo,
14 | int sequencePointIndex,
15 | int stackDepth,
16 | object payload);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Debugging/RuntimeVariablesSupport/IDebugRuntimeVariables.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Runtime.CompilerServices;
6 |
7 | namespace Microsoft.Scripting.Debugging {
8 | ///
9 | /// IDebugRuntimeVariables is used to wrap IRuntimeVariables and add properties for retrieving
10 | /// FunctionInfo and DebugMarker from debuggable labmdas.
11 | ///
12 | internal interface IDebugRuntimeVariables : IRuntimeVariables {
13 | FunctionInfo FunctionInfo { get; }
14 | int DebugMarker { get; }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Debugging/TracePipeline/ITraceCallback.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using Microsoft.Scripting.Runtime;
7 | using Microsoft.Scripting.Utils;
8 | using System.Collections.Generic;
9 |
10 | namespace Microsoft.Scripting.Debugging {
11 | public interface ITraceCallback {
12 | void OnTraceEvent(
13 | TraceEventKind kind,
14 | string name,
15 | string sourceFileName,
16 | SourceSpan sourceSpan,
17 | Func> scopeCallback,
18 | object payload,
19 | object customPayload
20 | );
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Debugging/TracePipeline/ITracePipeline.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Debugging {
6 | public interface ITracePipeline {
7 | void Close();
8 |
9 | bool TrySetNextStatement(string sourceFile, SourceSpan sourceSpan);
10 |
11 | ITraceCallback TraceCallback { get; set; }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Generation/IExpressionSerializable.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Linq.Expressions;
6 |
7 | namespace Microsoft.Scripting.Runtime {
8 | ///
9 | /// Enables an object to be serializable to an Expression tree. The expression tree can then
10 | /// be emitted into an assembly enabling the de-serialization of the object.
11 | ///
12 | public interface IExpressionSerializable {
13 | Expression CreateExpression();
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Generation/SymbolGuids.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Generation {
8 | internal static class SymbolGuids {
9 | internal static readonly Guid LanguageType_ILAssembly =
10 | new Guid(-1358664493, -12063, 0x11d2, 0x97, 0x7c, 0, 160, 0xc9, 180, 0xd5, 12);
11 |
12 | internal static readonly Guid DocumentType_Text =
13 | new Guid(0x5a869d0b, 0x6611, 0x11d3, 0xbd, 0x2a, 0, 0, 0xf8, 8, 0x49, 0xbd);
14 |
15 | internal static readonly Guid LanguageVendor_Microsoft =
16 | new Guid(-1723120188, -6423, 0x11d2, 0x90, 0x3f, 0, 0xc0, 0x4f, 0xa3, 2, 0xa1);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Hosting/Shell/ICommandDispatcher.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Hosting.Shell {
6 | ///
7 | /// Used to dispatch a single interactive command. It can be used to control things like which Thread
8 | /// the command is executed on, how long the command is allowed to execute, etc
9 | ///
10 | public interface ICommandDispatcher {
11 | object Execute(CompiledCode compiledCode, ScriptScope scope);
12 | }
13 | }
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Hosting/Shell/Style.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Hosting.Shell {
6 | public enum Style {
7 | Prompt, Out, Error, Warning
8 | }
9 | }
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Interpreter/ILightCallSiteBinder.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Interpreter {
6 | public interface ILightCallSiteBinder {
7 | bool AcceptsArgumentArray { get; }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Interpreter/Instructions/ControlFlowInstructions.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Source/Microsoft.Dynamic/Interpreter/Instructions/ControlFlowInstructions.cs
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Interpreter/RuntimeVariables.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Runtime.CompilerServices;
6 |
7 | namespace Microsoft.Scripting.Interpreter {
8 | internal sealed class RuntimeVariables : IRuntimeVariables {
9 | private readonly IStrongBox[] _boxes;
10 |
11 | private RuntimeVariables(IStrongBox[] boxes) {
12 | _boxes = boxes;
13 | }
14 |
15 | int IRuntimeVariables.Count => _boxes.Length;
16 |
17 | object IRuntimeVariables.this[int index] {
18 | get => _boxes[index].Value;
19 | set => _boxes[index].Value = value;
20 | }
21 |
22 | internal static IRuntimeVariables Create(IStrongBox[] boxes) {
23 | return new RuntimeVariables(boxes);
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/KeyboardInterruptException.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Runtime.Serialization;
7 |
8 | namespace Microsoft.Scripting {
9 | [Serializable]
10 | public class KeyboardInterruptException : Exception {
11 | public KeyboardInterruptException() : base() { }
12 | public KeyboardInterruptException(string msg) : base(msg) { }
13 | public KeyboardInterruptException(string message, Exception innerException)
14 | : base(message, innerException) {
15 | }
16 | #if FEATURE_SERIALIZATION
17 | protected KeyboardInterruptException(SerializationInfo info, StreamingContext context) : base(info, context) { }
18 | #endif
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Runtime/BinderType.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Runtime {
6 | public enum BinderType {
7 | ///
8 | /// The MethodBinder will perform normal method binding.
9 | ///
10 | Normal,
11 | ///
12 | /// The MethodBinder will return the languages definition of NotImplemented if the arguments are
13 | /// incompatible with the signature.
14 | ///
15 | BinaryOperator,
16 | ComparisonOperator,
17 | ///
18 | /// The MethodBinder will set properties/fields for unused keyword arguments on the instance
19 | /// that gets returned from the method.
20 | ///
21 | Constructor
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Runtime/CallTargets.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Runtime {
6 | ///
7 | /// The delegate representing the DLR Main function
8 | ///
9 | // TODO: remove in favor of Func
10 | public delegate object DlrMainCallTarget(Scope scope, LanguageContext context);
11 | }
12 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Runtime/CallTypes.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Runtime {
8 | [Flags]
9 | public enum CallTypes {
10 | None = 0,
11 | ImplicitInstance,
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Runtime/DocumentationAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Runtime {
8 | ///
9 | /// Provides a mechanism for providing documentation stored in an assembly as metadata.
10 | ///
11 | /// Applying this attribute will enable documentation to be provided to the user at run-time
12 | /// even if XML Documentation files are unavailable.
13 | ///
14 | [AttributeUsage(AttributeTargets.All)]
15 | public sealed class DocumentationAttribute : Attribute {
16 | public DocumentationAttribute(string documentation) {
17 | Documentation = documentation;
18 | }
19 |
20 | public string Documentation { get; }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Runtime/DynamicNull.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Runtime {
6 | ///
7 | /// Represents the type of a null value.
8 | ///
9 | public sealed class DynamicNull {
10 | ///
11 | /// Private constructor is never called since 'null' is the only valid instance.
12 | ///
13 | private DynamicNull() { }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Runtime/ExplicitConversionMethodAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Runtime {
8 | [AttributeUsage(AttributeTargets.Method, Inherited = false)]
9 | public sealed class ExplicitConversionMethodAttribute : Attribute {
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Runtime/Extensible.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Runtime {
6 | public class Extensible {
7 |
8 | public Extensible() { }
9 | public Extensible(T value) { Value = value; }
10 |
11 | public T Value { get; }
12 |
13 | public override bool Equals(object obj) => Value.Equals(obj);
14 |
15 | public override int GetHashCode() {
16 | return Value.GetHashCode();
17 | }
18 |
19 | public override string ToString() {
20 | return Value.ToString();
21 | }
22 |
23 | public static implicit operator T(Extensible extensible) {
24 | return extensible.Value;
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Runtime/IConvertibleMetaObject.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Runtime {
8 | ///
9 | /// Indicates that a DynamicMetaObject might be convertible to a CLR type.
10 | ///
11 | public interface IConvertibleMetaObject {
12 | bool CanConvertTo(Type type, bool isExplicit);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Runtime/ICustomScriptCodeData.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting {
6 | ///
7 | /// Gets custom data to be serialized when saving script codes to disk.
8 | ///
9 | public interface ICustomScriptCodeData {
10 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
11 | string GetCustomScriptCodeData();
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Runtime/IMembersList.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Collections.Generic;
6 |
7 | namespace Microsoft.Scripting.Runtime {
8 |
9 | ///
10 | /// Provides a list of all the members of an instance.
11 | ///
12 | public interface IMembersList {
13 | IList GetMemberNames();
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Runtime/IRestrictedMetaObject.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Dynamic;
7 |
8 | namespace Microsoft.Scripting.Runtime {
9 | ///
10 | /// Indicates that a MetaObject is already representing a restricted type. Useful
11 | /// when we're already restricted to a known type but this isn't captured in
12 | /// the type info (e.g. the type is not sealed).
13 | ///
14 | public interface IRestrictedMetaObject {
15 | DynamicMetaObject Restrict(Type type);
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Runtime/ImplicitConversionMethodAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Runtime {
8 | [AttributeUsage(AttributeTargets.Method, Inherited = false)]
9 | public sealed class ImplicitConversionMethodAttribute : Attribute {
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Runtime/LightThrowingAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Runtime {
8 | ///
9 | /// Marks a method which may return a light exception. Such
10 | /// methods need to have their return value checked and the exception
11 | /// will need to be thrown if the caller is not light exception aware.
12 | ///
13 | [AttributeUsage(AttributeTargets.Method)]
14 | public sealed class LightThrowingAttribute : Attribute {
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Runtime/ModuleChangeEventType.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Runtime {
6 | ///
7 | /// The way in which a module has changed : Set or Delete
8 | ///
9 | public enum ModuleChangeType {
10 | ///
11 | /// A new value has been set in the module (or a previous value has changed).
12 | ///
13 | Set,
14 | ///
15 | /// A value has been removed from the module.
16 | ///
17 | Delete
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Runtime/NullTextContentProvider.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Runtime {
6 | ///
7 | /// A NullTextContentProvider to be provided when we have a pre-compiled ScriptCode which doesn't
8 | /// have source code associated with it.
9 | ///
10 | public sealed class NullTextContentProvider : TextContentProvider {
11 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")]
12 | public static readonly NullTextContentProvider Null = new NullTextContentProvider();
13 |
14 | private NullTextContentProvider() {
15 | }
16 |
17 | public override SourceCodeReader GetReader() {
18 | return SourceCodeReader.Null;
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Runtime/OperationFailed.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Runtime {
6 | ///
7 | /// Singleton instance returned from an operator method when the operator method cannot provide a value.
8 | ///
9 | public sealed class OperationFailed {
10 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")]
11 | public static readonly OperationFailed Value = new OperationFailed();
12 |
13 | private OperationFailed() {
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Runtime/OperatorSlotAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Runtime {
8 | ///
9 | /// Represents an ops-extension method which is added as an operator.
10 | ///
11 | /// The name must be a well-formed name such as "Add" that matches the CLS
12 | /// naming conventions for adding overloads associated with op_* methods.
13 | ///
14 | [AttributeUsage(AttributeTargets.Field)]
15 | public sealed class OperatorSlotAttribute : Attribute {
16 | public OperatorSlotAttribute() { }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Runtime/PropertyMethodAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Runtime {
8 | ///
9 | /// Represents an ops-extension method which is used to implement a property.
10 | ///
11 | [AttributeUsage(AttributeTargets.Method, Inherited = false)]
12 | public sealed class PropertyMethodAttribute : Attribute {
13 | public PropertyMethodAttribute() { }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Runtime/SavableScriptCode.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Source/Microsoft.Dynamic/Runtime/SavableScriptCode.cs
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Runtime/SourceStringContentProvider.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.IO;
7 |
8 | using Microsoft.Scripting.Utils.Dynamic;
9 |
10 | namespace Microsoft.Scripting {
11 |
12 | [Serializable]
13 | internal sealed class SourceStringContentProvider : TextContentProvider {
14 | private readonly string _code;
15 |
16 | internal SourceStringContentProvider(string code) {
17 | ContractUtils.RequiresNotNull(code, nameof(code));
18 |
19 | _code = code;
20 | }
21 |
22 | public override SourceCodeReader GetReader() {
23 | return new SourceCodeReader(new StringReader(_code), null);
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Runtime/StaticExtensionMethodAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Runtime {
8 | ///
9 | /// Indicates an extension method should be added as a static method, not a instance method.
10 | ///
11 | [AttributeUsage(AttributeTargets.Method, Inherited = false)]
12 | public sealed class StaticExtensionMethodAttribute : Attribute {
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Runtime/Uninitialized.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Runtime {
6 | public sealed class Uninitialized {
7 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")]
8 | public static readonly Uninitialized Instance = new Uninitialized();
9 | private Uninitialized() { }
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Utils/ListEqualityComparer.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Collections.Generic;
6 | using Microsoft.Scripting.Utils.Dynamic;
7 |
8 | namespace Microsoft.Scripting.Utils {
9 | // Compares two ICollection's using element equality
10 | internal sealed class ListEqualityComparer : EqualityComparer> {
11 | internal static readonly ListEqualityComparer Instance = new ListEqualityComparer();
12 |
13 | private ListEqualityComparer() { }
14 |
15 | // EqualityComparer handles null and object identity for us
16 | public override bool Equals(ICollection x, ICollection y) => x.ListEquals(y);
17 |
18 | public override int GetHashCode(ICollection obj) {
19 | return obj.ListHashCode();
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/Utils/ThreadingUtils.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Threading;
6 |
7 | namespace Microsoft.Scripting.Utils {
8 | public static class ThreadingUtils {
9 | private static int id;
10 | private static System.Threading.ThreadLocal threadIds = new System.Threading.ThreadLocal(() => Interlocked.Increment(ref id));
11 |
12 | public static int GetCurrentThreadId() {
13 | return threadIds.Value;
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Source/Microsoft.Dynamic/zlib.net/history.txt:
--------------------------------------------------------------------------------
1 | ZLIB.NET: History of changes
2 | =============================
3 |
4 | version 1.10 (03/10/2010)
5 |
6 | - Bug with the problem with inflate a stream with a dictionary is fixed. Thanks to Baptiste Pernet Mugnier.
7 | - Help file is added
8 |
9 | version 1.04 (03/28/2007)
10 |
11 | - Problem with decompressing some files is solved
12 |
13 |
14 | version 1.03 (03/05/2007)
15 |
16 | - Problem with decomressing some files is solved
17 |
18 |
19 | version 1.02 (01/29/2007)
20 |
21 | - Problem with decompressing large files using ZOutputStream is solved
22 |
23 |
24 | version 1.01 (08/17/2006)
25 |
26 | - Demos are updated
27 | - Some minor bugs are fixed
28 |
29 |
30 | version 1.0 (07/06/2006)
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/Source/Microsoft.Scripting.Metadata/ClrStubs.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Text;
6 | using System;
7 | using System.Diagnostics;
8 |
9 | namespace Microsoft.Scripting.Metadata {
10 | internal static class ClrStubs {
11 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters")]
12 | internal unsafe static int GetCharCount(this Encoding encoding, byte* bytes, int byteCount, object nls) {
13 | return encoding.GetCharCount(bytes, byteCount);
14 | }
15 |
16 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters")]
17 | internal unsafe static void GetChars(this Encoding encoding, byte* bytes, int byteCount, char* chars, int charCount, object nls) {
18 | encoding.GetChars(bytes, byteCount, chars, charCount);
19 | }
20 | }
21 | }
--------------------------------------------------------------------------------
/Source/Microsoft.Scripting/ArgumentTypeException.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Runtime.Serialization;
7 |
8 | namespace Microsoft.Scripting {
9 | [Serializable]
10 | public class ArgumentTypeException : Exception {
11 | public ArgumentTypeException()
12 | : base() {
13 | }
14 |
15 | public ArgumentTypeException(string message)
16 | : base(message) {
17 | }
18 |
19 | public ArgumentTypeException(string message, Exception innerException)
20 | : base(message, innerException) {
21 | }
22 |
23 | #if FEATURE_SERIALIZATION
24 | protected ArgumentTypeException(SerializationInfo info, StreamingContext context) : base(info, context) { }
25 | #endif
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/Source/Microsoft.Scripting/AssemblyLoadedEventArgs.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Collections.Generic;
7 | using System.Text;
8 | using System.Reflection;
9 |
10 | namespace Microsoft.Scripting {
11 | public class AssemblyLoadedEventArgs : EventArgs {
12 | public AssemblyLoadedEventArgs(Assembly assembly) {
13 | Assembly = assembly;
14 | }
15 |
16 | public Assembly Assembly { get; }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Source/Microsoft.Scripting/CompilerOptions.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting {
8 |
9 | ///
10 | /// Class that represents compiler options.
11 | /// Note that this class is likely to change when hosting API becomes part of .Net
12 | ///
13 | [Serializable]
14 | public class CompilerOptions
15 | {
16 | public CompilerOptions() {
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Source/Microsoft.Scripting/Hosting/MemberKind.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Hosting {
6 | ///
7 | /// Specifies the type of member.
8 | ///
9 | public enum MemberKind {
10 | None,
11 | Class,
12 | Delegate,
13 | Enum,
14 | Event,
15 | Field,
16 | Function,
17 | Module,
18 | Property,
19 | Constant,
20 | EnumMember,
21 | Instance,
22 | Method,
23 | Namespace
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Source/Microsoft.Scripting/Hosting/ParameterFlags.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Hosting {
8 | ///
9 | /// Indications extra information about a parameter such as if it's a parameter array.
10 | ///
11 | [Flags]
12 | public enum ParameterFlags {
13 | None,
14 | ParamsArray = 0x01,
15 | ParamsDict = 0x02,
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Source/Microsoft.Scripting/Hosting/ScriptHostProxy.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using Microsoft.Scripting.Runtime;
6 | using Microsoft.Scripting.Utils.Scripting;
7 |
8 | namespace Microsoft.Scripting.Hosting {
9 | ///
10 | /// Provides hosting to DLR. Forwards DLR requests to the ScriptHost.
11 | ///
12 | internal sealed class ScriptHostProxy : DynamicRuntimeHostingProvider {
13 | private readonly ScriptHost _host;
14 |
15 | public ScriptHostProxy(ScriptHost host) {
16 | Assert.NotNull(host);
17 | _host = host;
18 | }
19 |
20 | public override PlatformAdaptationLayer PlatformAdaptationLayer => _host.PlatformAdaptationLayer;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Source/Microsoft.Scripting/InvalidImplementationException.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Runtime.Serialization;
7 |
8 | namespace Microsoft.Scripting {
9 | [Serializable]
10 | public class InvalidImplementationException : Exception {
11 | public InvalidImplementationException()
12 | : base() {
13 | }
14 |
15 | public InvalidImplementationException(string message)
16 | : base(message) {
17 | }
18 |
19 | public InvalidImplementationException(string message, Exception e)
20 | : base(message, e) {
21 | }
22 |
23 | #if FEATURE_SERIALIZATION
24 | protected InvalidImplementationException(SerializationInfo info, StreamingContext context) : base(info, context) { }
25 | #endif
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/Source/Microsoft.Scripting/Runtime/DocumentationProvider.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Collections.Generic;
6 |
7 | using Microsoft.Scripting.Hosting;
8 |
9 | namespace Microsoft.Scripting.Runtime {
10 | ///
11 | /// Provides language specific documentation for live objects.
12 | ///
13 | public abstract class DocumentationProvider {
14 | public abstract ICollection GetMembers(object value);
15 | public abstract ICollection GetOverloads(object value);
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Source/Microsoft.Scripting/Runtime/DynamicRuntimeHostingProvider.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Runtime {
8 | ///
9 | /// DLR requires any Hosting API provider to implement this class and provide its instance upon Runtime initialization.
10 | /// DLR calls on it to perform basic host/system dependent operations.
11 | ///
12 | [Serializable]
13 | public abstract class DynamicRuntimeHostingProvider {
14 | ///
15 | /// Abstracts system operations that are used by DLR and could potentially be platform specific.
16 | ///
17 | public abstract PlatformAdaptationLayer PlatformAdaptationLayer { get; }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Source/Microsoft.Scripting/Runtime/ScopeExtension.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using Microsoft.Scripting.Utils.Scripting;
6 |
7 | namespace Microsoft.Scripting.Runtime {
8 |
9 | // TODO: this class should be abstract
10 | public class ScopeExtension {
11 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2105:ArrayFieldsShouldNotBeReadOnly")]
12 | public static readonly ScopeExtension[] EmptyArray = new ScopeExtension[0];
13 |
14 | public Scope Scope { get; }
15 |
16 | public ScopeExtension(Scope scope) {
17 | ContractUtils.RequiresNotNull(scope, nameof(scope));
18 | Scope = scope;
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Source/Microsoft.Scripting/Runtime/TokenTriggers.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting {
8 |
9 | ///
10 | /// See also Microsoft.VisualStudio.Package.TokenTriggers.
11 | ///
12 | [Flags]
13 | public enum TokenTriggers {
14 | None = 0,
15 | MemberSelect = 1,
16 | MatchBraces = 2,
17 | ParameterStart = 16,
18 | ParameterNext = 32,
19 | ParameterEnd = 64,
20 | Parameter = 128,
21 | MethodTip = 240,
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/Source/Microsoft.Scripting/Severity.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting {
6 | public enum Severity {
7 | Ignore,
8 | Warning,
9 | Error,
10 | FatalError,
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/Source/Microsoft.Scripting/Stubs.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Reflection;
6 |
7 | #if !FEATURE_SERIALIZATION
8 |
9 | namespace System {
10 | using System.Diagnostics;
11 |
12 | [Conditional("STUB")]
13 | public class SerializableAttribute : Attribute {
14 | }
15 |
16 | [Conditional("STUB")]
17 | public class NonSerializedAttribute : Attribute {
18 | }
19 |
20 | namespace Runtime.Serialization {
21 | public interface ISerializable {
22 | }
23 |
24 | public interface IDeserializationCallback {
25 | }
26 | }
27 |
28 | public class SerializationException : Exception {
29 | }
30 | }
31 |
32 | #endif
33 |
--------------------------------------------------------------------------------
/Source/Microsoft.Scripting/Utils/ConsoleStreamType.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Utils {
6 | public enum ConsoleStreamType {
7 | Input,
8 | Output,
9 | ErrorOutput,
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/Source/Microsoft.Scripting/Utils/ExceptionUtils.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Utils.Scripting {
8 | internal static class ExceptionUtils {
9 | public static ArgumentNullException MakeArgumentItemNullException(int index, string arrayName) {
10 | return new ArgumentNullException($"{arrayName}[{index}]");
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/Microsoft.Scripting/Utils/ExpressionUtils.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Linq.Expressions;
6 |
7 | using System;
8 |
9 | namespace Microsoft.Scripting.Utils {
10 | internal sealed class ExpressionUtils {
11 | internal static Expression Convert(Expression expression, Type type) {
12 | return (expression.Type != type) ? Expression.Convert(expression, type) : expression;
13 | }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Source/Microsoft.Scripting/Utils/NativeMethods.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | #if FEATURE_NATIVE
6 |
7 | using System;
8 | using System.Runtime.InteropServices;
9 |
10 | namespace Microsoft.Scripting.Utils {
11 | internal static class NativeMethods {
12 | [DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError=true)]
13 | [return: MarshalAs(UnmanagedType.Bool)]
14 | internal static extern bool SetEnvironmentVariable(string name, string value);
15 | }
16 | }
17 |
18 | #endif
19 |
--------------------------------------------------------------------------------
/Source/Microsoft.Scripting/Utils/ReflectionUtils.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Linq;
7 | using System.Reflection;
8 | using System.Collections.Generic;
9 | using System.Reflection.Emit;
10 |
11 | namespace Microsoft.Scripting.Utils.Scripting {
12 | internal static class ReflectionUtils {
13 | public static MethodInfo GetMethodInfo(this Delegate d) {
14 | return d.Method;
15 | }
16 |
17 | public static IEnumerable GetDeclaredMethods(this Type type, string name) {
18 | return type.GetMember(name).OfType();
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Source/Microsoft.Scripting/Utils/StringUtils.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Collections.Generic;
7 | using System.Globalization;
8 | using System.Text;
9 |
10 | namespace Microsoft.Scripting.Utils.Scripting {
11 | internal static class StringUtils {
12 |
13 | public static Encoding DefaultEncoding {
14 | get {
15 | #if FEATURE_ENCODING
16 | return Encoding.Default;
17 | #else
18 | return Encoding.UTF8;
19 | #endif
20 | }
21 | }
22 |
23 | public static string[] Split(string str, char[] separators, int maxComponents, StringSplitOptions options) {
24 | ContractUtils.RequiresNotNull(str, nameof(str));
25 | return str.Split(separators, maxComponents, options);
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/Util/References/Mono.Posix.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Util/References/Mono.Posix.dll
--------------------------------------------------------------------------------
/Zolom/.vs/Zolom/v16/.suo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/.vs/Zolom/v16/.suo
--------------------------------------------------------------------------------
/Zolom/README.md:
--------------------------------------------------------------------------------
1 | # Zolom
2 | This is a modified version of [Zolom project](https://github.com/checkymander/Zolom) to demonstrate using IronKit to help bundle Zolom without any dependencies (IronPython DLLs).
3 | .
4 | # Usage
5 | `zolom.exe --script:"from random import seed; from random import random; seed(1); print 'getting random number'; print random();"`
6 | `zolom.exe --b64script:"ZnJvbSByYW5kb20gaW1wb3J0IHNlZWQ7IGZyb20gcmFuZG9tIGltcG9ydCByYW5kb207IHNlZWQoMSk7IHByaW50ICdnZXR0aW5nIHJhbmRvbSBudW1iZXInOyBwcmludCByYW5kb20oKTs="`
7 |
8 | # Credits
9 | This project is a modified version of [Zolom](https://github.com/checkymander/Zolom) created by [@checkymander](https://github.com/checkymander) (Thank you).
10 |
--------------------------------------------------------------------------------
/Zolom/Zolom/FodyWeavers.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Lib.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/Zolom/Lib.zip
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython.Modules/_ctypes/Extensions.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | #if FEATURE_CTYPES
6 |
7 | using System;
8 |
9 | namespace IronPython.Modules {
10 | internal static class CTypesExtensionMethods {
11 | public static IntPtr Add(this IntPtr self, int offset) {
12 | return new IntPtr(checked(self.ToInt64() + offset));
13 | }
14 | }
15 | }
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython.Modules/_ctypes/Union.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | #if FEATURE_CTYPES
6 |
7 | using System;
8 |
9 | using IronPython.Runtime;
10 | using IronPython.Runtime.Types;
11 |
12 | namespace IronPython.Modules {
13 | ///
14 | /// Provides support for interop with native code from Python code.
15 | ///
16 | public static partial class CTypes {
17 | [PythonType("Union")]
18 | public abstract class _Union : CData {
19 | public void __init__(CodeContext/*!*/ context) {
20 | _memHolder = new MemoryHolder(Size);
21 | }
22 | }
23 | }
24 |
25 | }
26 | #endif
27 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython.Modules/_sysconfigdata.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using IronPython.Runtime;
6 |
7 | [assembly: PythonModule("_sysconfigdata", typeof(IronPython.Modules._sysconfigdata), PlatformsAttribute.PlatformFamily.Unix)]
8 | namespace IronPython.Modules {
9 | public static class _sysconfigdata
10 | {
11 | public static PythonDictionary build_time_vars = new PythonDictionary();
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython.Modules/bz2/dotnetzip/source.txt:
--------------------------------------------------------------------------------
1 | https://dotnetzip.svn.codeplex.com/svn 90901
2 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Compiler/Ast/ErrorExpression.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using MSAst = System.Linq.Expressions;
6 |
7 | using System;
8 |
9 | namespace IronPython.Compiler.Ast {
10 | public class ErrorExpression : Expression {
11 | public ErrorExpression() {
12 | }
13 |
14 | public override void Walk(PythonWalker walker) {
15 | if (walker.Walk(this)) {
16 | ;
17 | }
18 | walker.PostWalk(this);
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Compiler/Ast/ILoopStatement.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | using MSAst = System.Linq.Expressions;
6 |
7 |
8 | namespace IronPython.Compiler.Ast {
9 | internal interface ILoopStatement {
10 | MSAst.LabelTarget BreakLabel {
11 | get;
12 | set;
13 | }
14 |
15 | MSAst.LabelTarget ContinueLabel {
16 | get;
17 | set;
18 | }
19 |
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Compiler/Ast/ModuleName.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using Microsoft.Scripting;
6 |
7 | namespace IronPython.Compiler.Ast {
8 | public class ModuleName : DottedName {
9 | public ModuleName(string[] names)
10 | : base(names) {
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Compiler/Ast/PythonReference.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using MSAst = System.Linq.Expressions;
6 |
7 | using Microsoft.Scripting;
8 |
9 | namespace IronPython.Compiler.Ast {
10 | ///
11 | /// Represents a reference to a name. A PythonReference is created for each name
12 | /// referred to in a scope (global, class, or function).
13 | ///
14 | class PythonReference {
15 | private readonly string _name;
16 | private PythonVariable _variable;
17 |
18 | public PythonReference(string name) {
19 | _name = name;
20 | }
21 |
22 | public string Name {
23 | get { return _name; }
24 | }
25 |
26 | internal PythonVariable PythonVariable {
27 | get { return _variable; }
28 | set { _variable = value; }
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Compiler/Ast/RelativeModuleName.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using Microsoft.Scripting;
6 |
7 | namespace IronPython.Compiler.Ast {
8 | public class RelativeModuleName : ModuleName {
9 | private readonly int _dotCount;
10 |
11 | public RelativeModuleName(string[] names, int dotCount)
12 | : base(names) {
13 | _dotCount = dotCount;
14 | }
15 |
16 | public int DotCount {
17 | get {
18 | return _dotCount;
19 | }
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Compiler/Ast/VariableKind.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace IronPython.Compiler.Ast {
6 |
7 | public enum VariableKind {
8 |
9 | ///
10 | /// Local variable.
11 | ///
12 | /// Local variables can be referenced from nested lambdas
13 | ///
14 | Local,
15 |
16 | ///
17 | /// Parameter to a LambdaExpression
18 | ///
19 | /// Like locals, they can be referenced from nested lambdas
20 | ///
21 | Parameter,
22 |
23 | ///
24 | /// Global variable
25 | ///
26 | /// Should only appear in global (top level) lambda.
27 | ///
28 | Global
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Lib/iptest/__init__.py:
--------------------------------------------------------------------------------
1 | # Licensed to the .NET Foundation under one or more agreements.
2 | # The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | # See the LICENSE file in the project root for more information.
4 |
5 |
6 | from ipunittest import IronPythonTestCase, stdout_trapper, stderr_trapper, path_modifier, retryOnFailure, run_test, skipUnlessIronPython, source_root
7 | from test_env import *
8 | from type_util import *
9 | from misc_util import ip_supported_encodings
10 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/MaybeNotImplementedAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Collections.Generic;
7 | using System.Text;
8 |
9 | namespace IronPython {
10 | ///
11 | /// Marks that the return value of a function might include NotImplemented.
12 | ///
13 | /// This is added to an operator method to ensure that all necessary methods are called
14 | /// if one cannot guarantee that it can perform the comparison.
15 | ///
16 | [AttributeUsage(AttributeTargets.ReturnValue)]
17 | public sealed class MaybeNotImplementedAttribute : Attribute {
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Modules/unicodedata/IPyUnicodeData.txt.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/Zolom/Source/IronPython/Modules/unicodedata/IPyUnicodeData.txt.gz
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/Binding/FastBindResult.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Linq.Expressions;
6 |
7 | using System;
8 | using System.Dynamic;
9 | using System.Runtime.CompilerServices;
10 |
11 | using Microsoft.Scripting.Actions;
12 | using Microsoft.Scripting.Runtime;
13 |
14 | namespace IronPython.Runtime.Binding {
15 | using Ast = Expression;
16 |
17 | struct FastBindResult where T : class {
18 | public readonly T Target;
19 | public readonly bool ShouldCache;
20 |
21 | public FastBindResult(T target, bool shouldCache) {
22 | Target = target;
23 | ShouldCache = shouldCache;
24 | }
25 |
26 | public FastBindResult(T target) {
27 | Target = target;
28 | ShouldCache = false;
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/Binding/IComConvertible.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Collections.Generic;
7 | using System.Dynamic;
8 | using System.Text;
9 |
10 | namespace IronPython.Runtime.Binding {
11 | ///
12 | /// An interface that is implemented on DynamicMetaObjects.
13 | ///
14 | /// This allows objects to opt-into custom conversions when calling
15 | /// COM APIs. The IronPython binders all call this interface before
16 | /// doing any COM binding.
17 | ///
18 | interface IComConvertible {
19 | DynamicMetaObject GetComMetaObject();
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/Binding/IFastGettable.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Linq.Expressions;
6 |
7 | using System;
8 | using System.Dynamic;
9 |
10 | using Microsoft.Scripting.Actions;
11 |
12 | using Microsoft.Scripting.Runtime;
13 | using System.Runtime.CompilerServices;
14 |
15 | namespace IronPython.Runtime.Binding {
16 | interface IFastGettable {
17 | T MakeGetBinding(CallSite site, PythonGetMemberBinder/*!*/ binder, CodeContext/*!*/ state, string/*!*/ name) where T : class;
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/Binding/IFastInvokable.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Linq.Expressions;
6 |
7 | using System;
8 | using System.Dynamic;
9 | using System.Runtime.CompilerServices;
10 | using Microsoft.Scripting.Actions;
11 | using Microsoft.Scripting.Runtime;
12 |
13 | namespace IronPython.Runtime.Binding {
14 | interface IFastInvokable {
15 | FastBindResult MakeInvokeBinding(CallSite site, PythonInvokeBinder/*!*/ binder, CodeContext/*!*/ context, object[] args) where T : class;
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/Binding/IFastSettable.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Linq.Expressions;
6 |
7 | using System;
8 | using System.Dynamic;
9 |
10 | using Microsoft.Scripting.Actions;
11 |
12 | using Microsoft.Scripting.Runtime;
13 | using System.Runtime.CompilerServices;
14 |
15 | namespace IronPython.Runtime.Binding {
16 | interface IFastSettable {
17 | T MakeSetBinding(CallSite site, PythonSetMemberBinder/*!*/ binder) where T : class;
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/Binding/IPythonConvertible.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Linq.Expressions;
6 |
7 | using System;
8 | using System.Dynamic;
9 | using Microsoft.Scripting.Actions;
10 |
11 | namespace IronPython.Runtime.Binding {
12 | interface IPythonConvertible {
13 | DynamicMetaObject BindConvert(PythonConversionBinder/*!*/ binder);
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/Binding/IPythonGetable.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Linq.Expressions;
6 |
7 | using System;
8 | using System.Dynamic;
9 |
10 | namespace IronPython.Runtime.Binding {
11 | interface IPythonGetable {
12 | DynamicMetaObject/*!*/ GetMember(PythonGetMemberBinder/*!*/ member, DynamicMetaObject/*!*/ codeContext);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/Binding/IPythonInvokable.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Linq.Expressions;
6 |
7 | using System;
8 | using System.Dynamic;
9 |
10 | namespace IronPython.Runtime.Binding {
11 | ///
12 | /// Interface used to mark objects as being invokable from Python. These objects support
13 | /// calling with splatted positional and keyword arguments.
14 | ///
15 | interface IPythonInvokable {
16 | DynamicMetaObject/*!*/ Invoke(PythonInvokeBinder/*!*/ pythonInvoke, Expression/*!*/ codeContext, DynamicMetaObject/*!*/ target, DynamicMetaObject/*!*/[]/*!*/ args);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/Binding/IPythonOperable.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Collections.Generic;
7 | using System.Text;
8 | using System.Dynamic;
9 |
10 | namespace IronPython.Runtime.Binding {
11 | interface IPythonOperable {
12 | DynamicMetaObject BindOperation(PythonOperationBinder action, DynamicMetaObject[] args);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/Binding/IPythonSite.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace IronPython.Runtime.Binding {
6 | interface IPythonSite {
7 | ///
8 | /// Gets the PythonContext which the CallSiteBinder is associated with.
9 | ///
10 | PythonContext/*!*/ Context {
11 | get;
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/Binding/PythonIndexType.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Collections.Generic;
7 | using System.Text;
8 |
9 | namespace IronPython.Runtime.Binding {
10 | enum PythonIndexType {
11 | GetItem,
12 | SetItem,
13 | DeleteItem,
14 | GetSlice,
15 | SetSlice,
16 | DeleteSlice
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/ClassMethodAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information./
4 |
5 | using System;
6 | using System.Collections.Generic;
7 | using System.Text;
8 |
9 | namespace IronPython.Runtime {
10 | ///
11 | /// Marks a method as being a class method. The PythonType which was used to access
12 | /// the method will then be passed as the first argument.
13 | ///
14 | [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
15 | public sealed class ClassMethodAttribute : Attribute {
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/CompileFlags.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace IronPython.Runtime {
8 | [Flags]
9 | public enum CompileFlags {
10 | CO_NESTED = 0x0010, // nested_scopes
11 | CO_DONT_IMPLY_DEDENT = 0x0200, // report errors if statement isn't dedented.
12 | CO_GENERATOR_ALLOWED = 0x1000, // generators
13 | CO_FUTURE_DIVISION = 0x2000, // division
14 | CO_FUTURE_ABSOLUTE_IMPORT = 0x4000, // absolute imports by default
15 | CO_FUTURE_WITH_STATEMENT = 0x8000, // with statement
16 | CO_FUTURE_PRINT_FUNCTION = 0x10000, // print function
17 | CO_FUTURE_UNICODE_LITERALS = 0x20000, // default unicode literals
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/DontMapGetMemberNamesToDirAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Collections.Generic;
7 | using System.Text;
8 |
9 | namespace IronPython.Runtime {
10 | ///
11 | /// Marks a type so that IronPython will not expose types which have GetMemberNames
12 | /// as having a __dir__ method.
13 | ///
14 | /// Also suppresses __dir__ on something which implements IDynamicMetaObjectProvider
15 | /// but is not an IPythonObject.
16 | ///
17 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)]
18 | sealed class DontMapGetMemberNamesToDirAttribute : Attribute {
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/DontMapICollectionToLenAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Collections.Generic;
7 | using System.Text;
8 |
9 | namespace IronPython.Runtime {
10 | ///
11 | /// Marks a type so that IronPython will not expose the ICollection interface out as
12 | /// __len__.
13 | ///
14 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)]
15 | sealed class DontMapICollectionToLenAttribute : Attribute {
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/DontMapIDisposableToContextManagerAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Collections.Generic;
7 | using System.Text;
8 |
9 | namespace IronPython.Runtime {
10 | ///
11 | /// Marks a type so that IronPython will not expose the IDisposable interface out as
12 | /// __enter__ and __exit__ methods of a context manager.
13 | ///
14 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)]
15 | sealed class DontMapIDisposableToContextManagerAttribute : Attribute {
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/DontMapIEnumerableToContainsAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Collections.Generic;
7 | using System.Text;
8 |
9 | namespace IronPython.Runtime {
10 | ///
11 | /// Marks a type so that IronPython will not expose the IEnumerable interface out as
12 | /// __contains__
13 | ///
14 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)]
15 | sealed class DontMapIEnumerableToContainsAttribute : Attribute {
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/DontMapIEnumerableToIterAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Collections.Generic;
7 | using System.Text;
8 |
9 | namespace IronPython.Runtime {
10 | ///
11 | /// Marks a type so that IronPython will not expose the IEnumerable interface out as
12 | /// __iter__
13 | ///
14 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)]
15 | sealed class DontMapIEnumerableToIterAttribute : Attribute {
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/Exceptions/ApplicationException.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | #if !FEATURE_APPLICATIONEXCEPTION
6 | using System;
7 |
8 | namespace IronPython.Runtime.Exceptions {
9 | [Serializable]
10 | public class ApplicationException : Exception {
11 | public ApplicationException() : base() { }
12 | public ApplicationException(string msg) : base(msg) { }
13 | public ApplicationException(string message, Exception innerException)
14 | : base(message, innerException) {
15 | }
16 | }
17 | }
18 |
19 | #endif
20 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/Exceptions/IPythonException.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace IronPython.Runtime.Exceptions {
6 | public interface IPythonException {
7 | object ToPythonException();
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/Exceptions/SystemException.cs:
--------------------------------------------------------------------------------
1 | #if WIN8
2 |
3 | using System;
4 |
5 | namespace System {
6 | [Serializable]
7 | public class SystemException : Exception {
8 | public SystemException()
9 | : base("System exception") {
10 | }
11 |
12 | public SystemException(string message)
13 | : base(message) {
14 | }
15 |
16 | public SystemException(string message, Exception innerException)
17 | : base(message, innerException) {
18 | }
19 | }
20 | }
21 |
22 | #endif
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/Exceptions/TabException.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Dynamic;
7 | using Microsoft.Scripting;
8 |
9 | namespace IronPython.Runtime.Exceptions {
10 | ///
11 | /// .NET Exception thrown when a Python syntax error is related to incorrect tabs.
12 | ///
13 | [Serializable]
14 | sealed class TabException : IndentationException {
15 | public TabException(string message) : base(message) { }
16 |
17 | public TabException(string message, SourceUnit sourceUnit, SourceSpan span, int errorCode, Severity severity)
18 | : base(message, sourceUnit, span, errorCode, severity) { }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/IParameterSequence.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace IronPython.Runtime {
6 | ///
7 | /// Represents a sequence which may have been provided as a set of parameters to an indexer.
8 | ///
9 | /// TODO: This should be removed, and all uses of this should go to [SpecialName]object GetItem(..., params object[] keys)
10 | /// and [SpecialName]void SetItem(..., params object [] keys) or this[params object[]xyz] which is also legal.
11 | ///
12 | /// currently this exists for backwards compatibility w/ IronPython's "expandable tuples".
13 | ///
14 | public interface IParameterSequence {
15 | object[] Expand(object initial);
16 | object this[int index] {
17 | get;
18 | }
19 | int Count {
20 | get;
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/Index.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 | using Microsoft.Scripting.Utils.Dynamic;
5 |
6 | namespace IronPython.Runtime {
7 | ///
8 | /// Wrapper class used when a user defined type (new-style or old-style)
9 | /// defines __index__. We provide a conversion from all user defined
10 | /// types to the Index type so they can be used for determing and method bind
11 | /// time the most appropriate method to dispatch to.
12 | ///
13 | public class Index {
14 | private readonly object _value;
15 |
16 | public Index(object/*!*/ value) {
17 | ContractUtils.RequiresNotNull(value, "value");
18 |
19 | _value = value;
20 | }
21 |
22 | internal object/*!*/ Value {
23 | get {
24 | return _value;
25 | }
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/MissingParameter.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace IronPython.Runtime {
6 | public sealed class MissingParameter {
7 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")]
8 | public static readonly MissingParameter Value = new MissingParameter();
9 |
10 | private MissingParameter() { }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/NameType.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace IronPython.Runtime {
8 | [Flags]
9 | public enum NameType {
10 | None = 0x0000,
11 | Python = 0x0001,
12 |
13 | Method = 0x0002,
14 | Field = 0x0004,
15 | Property = 0x0008,
16 | Event = 0x0010,
17 | Type = 0x0020,
18 | BaseTypeMask = 0x003e,
19 |
20 | PythonMethod = Method | Python,
21 | PythonField = Field | Python,
22 | PythonProperty = Property | Python,
23 | PythonEvent = Event | Python,
24 | PythonType = Type | Python,
25 |
26 | ClassMember = 0x0040,
27 | ClassMethod = ClassMember | PythonMethod,
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/Operations/DBNullOps.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 | #if FEATURE_DBNULL
5 | using System;
6 |
7 | namespace IronPython.Runtime.Operations {
8 | public static class DBNullOps {
9 | public static bool __nonzero__(DBNull value) {
10 | return false;
11 | }
12 | }
13 | }
14 | #endif
15 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/Operations/TypeTrackerOps.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 |
6 | using System.Collections;
7 | using System.Runtime.CompilerServices;
8 | using IronPython.Runtime.Types;
9 | using Microsoft.Scripting.Actions;
10 | using Microsoft.Scripting.Runtime;
11 |
12 | namespace IronPython.Runtime.Operations {
13 | public static class TypeTrackerOps {
14 | [SpecialName, PropertyMethod]
15 | public static IDictionary Get__dict__(CodeContext context, TypeTracker self) {
16 | return new DictProxy(DynamicHelpers.GetPythonTypeFromType(self.Type));
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/Python3Warning.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Text;
9 | using Microsoft.Scripting.Utils.Dynamic;
10 |
11 | namespace IronPython.Runtime {
12 | [AttributeUsage(AttributeTargets.Method | AttributeTargets.Constructor)]
13 | sealed class Python3WarningAttribute : Attribute {
14 | private readonly string/*!*/ _message;
15 |
16 | public Python3WarningAttribute(string/*!*/ message) {
17 | ContractUtils.RequiresNotNull(message, "message");
18 |
19 | _message = message;
20 | }
21 |
22 | public string/*!*/ Message {
23 | get {
24 | return _message;
25 | }
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/PythonHiddenBaseClassAttribute.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace IronPython.Runtime {
7 | ///
8 | /// Marks a class as being hidden from the Python hierarchy. This is applied to the base class
9 | /// and then all derived types will not see the base class in their hierarchy and will not be
10 | /// able to access members declaredo on the base class.
11 | ///
12 | [AttributeUsage(AttributeTargets.Class)]
13 | public sealed class PythonHiddenBaseClassAttribute : Attribute {
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/SiteLocalStorage.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 |
6 | namespace IronPython.Runtime {
7 | public abstract class SiteLocalStorage {
8 | }
9 |
10 | ///
11 | /// Provides storage which is flowed into a callers site. The same storage object is
12 | /// flowed for multiple calls enabling the callee to cache data that can be re-used
13 | /// across multiple calls.
14 | ///
15 | /// Data is a public field so that this works properly with DynamicSite's as the reference
16 | /// type (and EnsureInitialize)
17 | ///
18 | public class SiteLocalStorage : SiteLocalStorage {
19 | public T Data;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/ThrowingErrorSink.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 |
6 | using System.Dynamic;
7 | using IronPython.Runtime.Operations;
8 | using Microsoft.Scripting;
9 |
10 | namespace IronPython.Runtime {
11 | internal class ThrowingErrorSink : ErrorSink {
12 | public static new readonly ThrowingErrorSink/*!*/ Default = new ThrowingErrorSink();
13 |
14 | private ThrowingErrorSink() {
15 | }
16 |
17 | public override void Add(SourceUnit sourceUnit, string message, SourceSpan span, int errorCode, Severity severity) {
18 | if (severity == Severity.Warning) {
19 | PythonOps.SyntaxWarning(message, sourceUnit, span, errorCode);
20 | } else {
21 | throw PythonOps.SyntaxError(message, sourceUnit, span, errorCode);
22 | }
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/Types/ResolvedMember.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 |
6 | using System.Diagnostics;
7 | using System.Dynamic;
8 | using Microsoft.Scripting.Actions;
9 |
10 | namespace IronPython.Runtime.Types {
11 | ///
12 | /// Couples a MemberGroup and the name which produces the member group together
13 | ///
14 | class ResolvedMember {
15 | public readonly string/*!*/ Name;
16 | public readonly MemberGroup/*!*/ Member;
17 | public static readonly ResolvedMember[]/*!*/ Empty = new ResolvedMember[0];
18 |
19 | public ResolvedMember(string/*!*/ name, MemberGroup/*!*/ member) {
20 | Debug.Assert(name != null);
21 | Debug.Assert(member != null);
22 |
23 | Name = name;
24 | Member = member;
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/Types/SlotFieldAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 |
6 | using System;
7 |
8 | namespace IronPython.Runtime.Types {
9 | ///
10 | /// Represents an ops-extension which adds a new slot. The slot can have arbitrary
11 | /// get/set behavior above and beyond normal .NET methods or properties. This is
12 | /// typically in regards to how it processes access from instances or subtypes.
13 | ///
14 | [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
15 | internal sealed class SlotFieldAttribute : Attribute {
16 | public SlotFieldAttribute() { }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/WrapperDescriptorAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Text;
9 |
10 | namespace IronPython.Runtime {
11 | ///
12 | /// Marks a method/field/property as being a wrapper descriptor. A wrapper desriptor
13 | /// is a member defined on PythonType but is available both for type and other
14 | /// instances of type. For example type.__bases__.
15 | ///
16 | [AttributeUsage(AttributeTargets.Method | AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = true, Inherited = false)]
17 | internal sealed class WrapperDescriptorAttribute : Attribute {
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/IronPython/Runtime/XamlObjectWriterSettings.cs:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Actions/Calls/Candidate.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Actions.Calls {
6 | public enum Candidate {
7 | Equivalent = 0,
8 | One = +1,
9 | Two = -1,
10 | Ambiguous = 2
11 | }
12 |
13 | internal static class CandidateExtension {
14 | public static bool Chosen(this Candidate candidate) {
15 | return candidate == Candidate.One || candidate == Candidate.Two;
16 | }
17 |
18 | public static Candidate TheOther(this Candidate candidate) {
19 | if (candidate == Candidate.One) {
20 | return Candidate.Two;
21 | }
22 | if (candidate == Candidate.Two) {
23 | return Candidate.One;
24 | }
25 | return candidate;
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Actions/Calls/OverloadResolverFactory.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Collections.Generic;
6 | using System.Dynamic;
7 | using Microsoft.Scripting.Runtime;
8 |
9 | namespace Microsoft.Scripting.Actions.Calls {
10 | public abstract class OverloadResolverFactory {
11 | public abstract DefaultOverloadResolver CreateOverloadResolver(IList args, CallSignature signature, CallTypes callType);
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Actions/ConstructorTracker.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Reflection;
7 |
8 | namespace Microsoft.Scripting.Actions {
9 | public class ConstructorTracker : MemberTracker {
10 | private readonly ConstructorInfo _ctor;
11 |
12 | public ConstructorTracker(ConstructorInfo ctor) {
13 | _ctor = ctor;
14 | }
15 |
16 | public override Type DeclaringType => _ctor.DeclaringType;
17 |
18 | public override TrackerTypes MemberType => TrackerTypes.Constructor;
19 |
20 | public override string Name => _ctor.Name;
21 |
22 | public bool IsPublic => _ctor.IsPublic;
23 |
24 | public override string ToString() {
25 | return _ctor.ToString();
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Actions/CustomTracker.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Actions {
6 | ///
7 | /// A custom member tracker which enables languages to plug in arbitrary
8 | /// members into the lookup process.
9 | ///
10 | public abstract class CustomTracker : MemberTracker {
11 | protected CustomTracker() {
12 | }
13 |
14 | public sealed override TrackerTypes MemberType => TrackerTypes.Custom;
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Actions/ErrorMetaObject.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Dynamic;
6 | using System.Linq.Expressions;
7 |
8 | namespace Microsoft.Scripting.Actions {
9 | ///
10 | /// A MetaObject which was produced as the result of a failed binding.
11 | ///
12 | public sealed class ErrorMetaObject : DynamicMetaObject {
13 | public ErrorMetaObject(Expression body, BindingRestrictions restrictions)
14 | : base(body, restrictions) {
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Actions/MemberRequestKind.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Actions {
6 | ///
7 | /// Specifies the action for which the default binder is requesting a member.
8 | ///
9 | public enum MemberRequestKind {
10 | None,
11 | Get,
12 | Set,
13 | Delete,
14 | Invoke,
15 | InvokeMember,
16 | Convert,
17 | Operation
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Actions/MemberTracker.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/Zolom/Source/Microsoft.Dynamic/Actions/MemberTracker.cs
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Actions/NoSideEffectsAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Actions {
8 | ///
9 | /// Marks a method as not having side effects. used by the combo binder
10 | /// to allow calls to methods.
11 | ///
12 | [AttributeUsage(AttributeTargets.Method | AttributeTargets.Constructor)]
13 | public sealed class NoSideEffectsAttribute : Attribute {
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Ast/EmptyStatements.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Linq.Expressions;
6 |
7 | using System;
8 | using System.Dynamic;
9 |
10 | namespace Microsoft.Scripting.Ast {
11 | public static partial class Utils {
12 | private static readonly DefaultExpression VoidInstance = Expression.Empty();
13 |
14 | public static DefaultExpression Empty() {
15 | return VoidInstance;
16 | }
17 |
18 | public static DefaultExpression Default(Type type) {
19 | if (type == typeof(void)) {
20 | return Empty();
21 | }
22 | return Expression.Default(type);
23 | }
24 | }
25 | }
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/ComInterop/ComDispIds.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | #if FEATURE_COM
6 |
7 | namespace Microsoft.Scripting.ComInterop {
8 | internal static class ComDispIds {
9 | internal const int DISPID_VALUE = 0;
10 | internal const int DISPID_PROPERTYPUT = -3;
11 | internal const int DISPID_NEWENUM = -4;
12 | }
13 | }
14 |
15 | #endif
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/ComInterop/ComEventDesc.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | #if FEATURE_COM
6 |
7 | using System;
8 |
9 | namespace Microsoft.Scripting.ComInterop {
10 | internal class ComEventDesc {
11 | internal Guid sourceIID;
12 | internal int dispid;
13 | };
14 | }
15 |
16 | #endif
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/ComInterop/ComType.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | #if FEATURE_COM
6 |
7 | namespace Microsoft.Scripting.ComInterop {
8 |
9 | public enum ComType {
10 | Class,
11 | Enum,
12 | Interface
13 | };
14 | }
15 |
16 | #endif
17 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/ComInterop/ComTypeLibMemberDesc.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | #if FEATURE_COM
6 |
7 | namespace Microsoft.Scripting.ComInterop {
8 |
9 | public class ComTypeLibMemberDesc {
10 | internal ComTypeLibMemberDesc(ComType kind) {
11 | Kind = kind;
12 | }
13 |
14 | public ComType Kind { get; }
15 | }
16 | }
17 |
18 | #endif
19 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/ComInterop/ConvertibleArgBuilder.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | #if FEATURE_COM
6 |
7 | using System.Linq.Expressions;
8 |
9 | using System;
10 | using System.Globalization;
11 | using Microsoft.Scripting.Utils.Dynamic;
12 |
13 | namespace Microsoft.Scripting.ComInterop {
14 |
15 | internal class ConvertibleArgBuilder : ArgBuilder {
16 |
17 | internal override Expression Marshal(Expression parameter) {
18 | return Helpers.Convert(parameter, typeof(IConvertible));
19 | }
20 |
21 | internal override Expression MarshalToRef(Expression parameter) {
22 | //we are not supporting convertible InOut
23 | throw Assert.Unreachable;
24 | }
25 | }
26 | }
27 |
28 | #endif
29 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/ComInterop/Helpers.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | #if FEATURE_COM
6 | using System.Linq.Expressions;
7 |
8 | using System;
9 |
10 | namespace Microsoft.Scripting.ComInterop {
11 |
12 | // Miscellaneous helpers that don't belong anywhere else
13 | internal static class Helpers {
14 |
15 | internal static Expression Convert(Expression expression, Type type) {
16 | if (expression.Type == type) {
17 | return expression;
18 | }
19 | return Expression.Convert(expression, type);
20 | }
21 | }
22 | }
23 | #endif
24 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/ComInterop/IPseudoComObject.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | #if FEATURE_COM
6 | using System.Linq.Expressions;
7 |
8 | using System;
9 | using System.Dynamic;
10 |
11 | namespace Microsoft.Scripting.ComInterop {
12 | interface IPseudoComObject {
13 | DynamicMetaObject GetMetaObject(Expression expression);
14 | }
15 | }
16 |
17 | #endif
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/ComInterop/NullArgBuilder.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | #if FEATURE_COM
6 | using System.Linq.Expressions;
7 |
8 | using System;
9 | using System.Diagnostics;
10 |
11 | namespace Microsoft.Scripting.ComInterop {
12 |
13 | ///
14 | /// ArgBuilder which always produces null.
15 | ///
16 | internal sealed class NullArgBuilder : ArgBuilder {
17 | internal NullArgBuilder() { }
18 |
19 | internal override Expression Marshal(Expression parameter) {
20 | return Expression.Constant(null);
21 | }
22 | }
23 | }
24 |
25 | #endif
26 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Debugging/CompilerServices/IDebugCompilerSupport.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using MSAst = System.Linq.Expressions;
6 |
7 | namespace Microsoft.Scripting.Debugging.CompilerServices {
8 | ///
9 | /// Implemented by compilers to allow the traceback engine to get additional information.
10 | ///
11 | public interface IDebugCompilerSupport {
12 | bool DoesExpressionNeedReduction(MSAst.Expression expression);
13 | MSAst.Expression QueueExpressionForReduction(MSAst.Expression expression);
14 | bool IsCallToDebuggableLambda(MSAst.Expression expression);
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Debugging/DebugMode.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Debugging {
6 | internal enum DebugMode {
7 | Disabled,
8 | ExceptionsOnly,
9 | TracePoints,
10 | FullyEnabled
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Debugging/ForceToGeneratorLoopException.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Debugging {
8 | [Serializable]
9 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design","CA1032:ImplementStandardExceptionConstructors")]
10 | public sealed class ForceToGeneratorLoopException : Exception {
11 | public ForceToGeneratorLoopException() : base() { }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Debugging/IDebugCallback.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Debugging {
6 | internal interface IDebugCallback {
7 | ///
8 | /// Callback that is fired by the traceback engine
9 | ///
10 | void OnDebugEvent(
11 | TraceEventKind kind,
12 | DebugThread thread,
13 | FunctionInfo functionInfo,
14 | int sequencePointIndex,
15 | int stackDepth,
16 | object payload);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Debugging/RuntimeVariablesSupport/IDebugRuntimeVariables.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Runtime.CompilerServices;
6 |
7 | namespace Microsoft.Scripting.Debugging {
8 | ///
9 | /// IDebugRuntimeVariables is used to wrap IRuntimeVariables and add properties for retrieving
10 | /// FunctionInfo and DebugMarker from debuggable labmdas.
11 | ///
12 | internal interface IDebugRuntimeVariables : IRuntimeVariables {
13 | FunctionInfo FunctionInfo { get; }
14 | int DebugMarker { get; }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Debugging/TracePipeline/ITraceCallback.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using Microsoft.Scripting.Runtime;
7 | using Microsoft.Scripting.Utils;
8 | using System.Collections.Generic;
9 |
10 | namespace Microsoft.Scripting.Debugging {
11 | public interface ITraceCallback {
12 | void OnTraceEvent(
13 | TraceEventKind kind,
14 | string name,
15 | string sourceFileName,
16 | SourceSpan sourceSpan,
17 | Func> scopeCallback,
18 | object payload,
19 | object customPayload
20 | );
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Debugging/TracePipeline/ITracePipeline.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Debugging {
6 | public interface ITracePipeline {
7 | void Close();
8 |
9 | bool TrySetNextStatement(string sourceFile, SourceSpan sourceSpan);
10 |
11 | ITraceCallback TraceCallback { get; set; }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Generation/IExpressionSerializable.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Linq.Expressions;
6 |
7 | namespace Microsoft.Scripting.Runtime {
8 | ///
9 | /// Enables an object to be serializable to an Expression tree. The expression tree can then
10 | /// be emitted into an assembly enabling the de-serialization of the object.
11 | ///
12 | public interface IExpressionSerializable {
13 | Expression CreateExpression();
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Generation/SymbolGuids.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Generation {
8 | internal static class SymbolGuids {
9 | internal static readonly Guid LanguageType_ILAssembly =
10 | new Guid(-1358664493, -12063, 0x11d2, 0x97, 0x7c, 0, 160, 0xc9, 180, 0xd5, 12);
11 |
12 | internal static readonly Guid DocumentType_Text =
13 | new Guid(0x5a869d0b, 0x6611, 0x11d3, 0xbd, 0x2a, 0, 0, 0xf8, 8, 0x49, 0xbd);
14 |
15 | internal static readonly Guid LanguageVendor_Microsoft =
16 | new Guid(-1723120188, -6423, 0x11d2, 0x90, 0x3f, 0, 0xc0, 0x4f, 0xa3, 2, 0xa1);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Hosting/Shell/ICommandDispatcher.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Hosting.Shell {
6 | ///
7 | /// Used to dispatch a single interactive command. It can be used to control things like which Thread
8 | /// the command is executed on, how long the command is allowed to execute, etc
9 | ///
10 | public interface ICommandDispatcher {
11 | object Execute(CompiledCode compiledCode, ScriptScope scope);
12 | }
13 | }
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Hosting/Shell/Style.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Hosting.Shell {
6 | public enum Style {
7 | Prompt, Out, Error, Warning
8 | }
9 | }
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Interpreter/ILightCallSiteBinder.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Interpreter {
6 | public interface ILightCallSiteBinder {
7 | bool AcceptsArgumentArray { get; }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Interpreter/Instructions/ControlFlowInstructions.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/Zolom/Source/Microsoft.Dynamic/Interpreter/Instructions/ControlFlowInstructions.cs
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Interpreter/RuntimeVariables.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Runtime.CompilerServices;
6 |
7 | namespace Microsoft.Scripting.Interpreter {
8 | internal sealed class RuntimeVariables : IRuntimeVariables {
9 | private readonly IStrongBox[] _boxes;
10 |
11 | private RuntimeVariables(IStrongBox[] boxes) {
12 | _boxes = boxes;
13 | }
14 |
15 | int IRuntimeVariables.Count => _boxes.Length;
16 |
17 | object IRuntimeVariables.this[int index] {
18 | get => _boxes[index].Value;
19 | set => _boxes[index].Value = value;
20 | }
21 |
22 | internal static IRuntimeVariables Create(IStrongBox[] boxes) {
23 | return new RuntimeVariables(boxes);
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/KeyboardInterruptException.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Runtime.Serialization;
7 |
8 | namespace Microsoft.Scripting {
9 | [Serializable]
10 | public class KeyboardInterruptException : Exception {
11 | public KeyboardInterruptException() : base() { }
12 | public KeyboardInterruptException(string msg) : base(msg) { }
13 | public KeyboardInterruptException(string message, Exception innerException)
14 | : base(message, innerException) {
15 | }
16 | #if FEATURE_SERIALIZATION
17 | protected KeyboardInterruptException(SerializationInfo info, StreamingContext context) : base(info, context) { }
18 | #endif
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Runtime/BinderType.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Runtime {
6 | public enum BinderType {
7 | ///
8 | /// The MethodBinder will perform normal method binding.
9 | ///
10 | Normal,
11 | ///
12 | /// The MethodBinder will return the languages definition of NotImplemented if the arguments are
13 | /// incompatible with the signature.
14 | ///
15 | BinaryOperator,
16 | ComparisonOperator,
17 | ///
18 | /// The MethodBinder will set properties/fields for unused keyword arguments on the instance
19 | /// that gets returned from the method.
20 | ///
21 | Constructor
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Runtime/CallTargets.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Runtime {
6 | ///
7 | /// The delegate representing the DLR Main function
8 | ///
9 | // TODO: remove in favor of Func
10 | public delegate object DlrMainCallTarget(Scope scope, LanguageContext context);
11 | }
12 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Runtime/CallTypes.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Runtime {
8 | [Flags]
9 | public enum CallTypes {
10 | None = 0,
11 | ImplicitInstance,
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Runtime/DocumentationAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Runtime {
8 | ///
9 | /// Provides a mechanism for providing documentation stored in an assembly as metadata.
10 | ///
11 | /// Applying this attribute will enable documentation to be provided to the user at run-time
12 | /// even if XML Documentation files are unavailable.
13 | ///
14 | [AttributeUsage(AttributeTargets.All)]
15 | public sealed class DocumentationAttribute : Attribute {
16 | public DocumentationAttribute(string documentation) {
17 | Documentation = documentation;
18 | }
19 |
20 | public string Documentation { get; }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Runtime/DynamicNull.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Runtime {
6 | ///
7 | /// Represents the type of a null value.
8 | ///
9 | public sealed class DynamicNull {
10 | ///
11 | /// Private constructor is never called since 'null' is the only valid instance.
12 | ///
13 | private DynamicNull() { }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Runtime/ExplicitConversionMethodAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Runtime {
8 | [AttributeUsage(AttributeTargets.Method, Inherited = false)]
9 | public sealed class ExplicitConversionMethodAttribute : Attribute {
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Runtime/Extensible.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Runtime {
6 | public class Extensible {
7 |
8 | public Extensible() { }
9 | public Extensible(T value) { Value = value; }
10 |
11 | public T Value { get; }
12 |
13 | public override bool Equals(object obj) => Value.Equals(obj);
14 |
15 | public override int GetHashCode() {
16 | return Value.GetHashCode();
17 | }
18 |
19 | public override string ToString() {
20 | return Value.ToString();
21 | }
22 |
23 | public static implicit operator T(Extensible extensible) {
24 | return extensible.Value;
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Runtime/IConvertibleMetaObject.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Runtime {
8 | ///
9 | /// Indicates that a DynamicMetaObject might be convertible to a CLR type.
10 | ///
11 | public interface IConvertibleMetaObject {
12 | bool CanConvertTo(Type type, bool isExplicit);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Runtime/ICustomScriptCodeData.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting {
6 | ///
7 | /// Gets custom data to be serialized when saving script codes to disk.
8 | ///
9 | public interface ICustomScriptCodeData {
10 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
11 | string GetCustomScriptCodeData();
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Runtime/IMembersList.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Collections.Generic;
6 |
7 | namespace Microsoft.Scripting.Runtime {
8 |
9 | ///
10 | /// Provides a list of all the members of an instance.
11 | ///
12 | public interface IMembersList {
13 | IList GetMemberNames();
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Runtime/IRestrictedMetaObject.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Dynamic;
7 |
8 | namespace Microsoft.Scripting.Runtime {
9 | ///
10 | /// Indicates that a MetaObject is already representing a restricted type. Useful
11 | /// when we're already restricted to a known type but this isn't captured in
12 | /// the type info (e.g. the type is not sealed).
13 | ///
14 | public interface IRestrictedMetaObject {
15 | DynamicMetaObject Restrict(Type type);
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Runtime/ImplicitConversionMethodAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Runtime {
8 | [AttributeUsage(AttributeTargets.Method, Inherited = false)]
9 | public sealed class ImplicitConversionMethodAttribute : Attribute {
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Runtime/LightThrowingAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Runtime {
8 | ///
9 | /// Marks a method which may return a light exception. Such
10 | /// methods need to have their return value checked and the exception
11 | /// will need to be thrown if the caller is not light exception aware.
12 | ///
13 | [AttributeUsage(AttributeTargets.Method)]
14 | public sealed class LightThrowingAttribute : Attribute {
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Runtime/ModuleChangeEventType.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Runtime {
6 | ///
7 | /// The way in which a module has changed : Set or Delete
8 | ///
9 | public enum ModuleChangeType {
10 | ///
11 | /// A new value has been set in the module (or a previous value has changed).
12 | ///
13 | Set,
14 | ///
15 | /// A value has been removed from the module.
16 | ///
17 | Delete
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Runtime/NullTextContentProvider.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Runtime {
6 | ///
7 | /// A NullTextContentProvider to be provided when we have a pre-compiled ScriptCode which doesn't
8 | /// have source code associated with it.
9 | ///
10 | public sealed class NullTextContentProvider : TextContentProvider {
11 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")]
12 | public static readonly NullTextContentProvider Null = new NullTextContentProvider();
13 |
14 | private NullTextContentProvider() {
15 | }
16 |
17 | public override SourceCodeReader GetReader() {
18 | return SourceCodeReader.Null;
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Runtime/OperationFailed.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Runtime {
6 | ///
7 | /// Singleton instance returned from an operator method when the operator method cannot provide a value.
8 | ///
9 | public sealed class OperationFailed {
10 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")]
11 | public static readonly OperationFailed Value = new OperationFailed();
12 |
13 | private OperationFailed() {
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Runtime/OperatorSlotAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Runtime {
8 | ///
9 | /// Represents an ops-extension method which is added as an operator.
10 | ///
11 | /// The name must be a well-formed name such as "Add" that matches the CLS
12 | /// naming conventions for adding overloads associated with op_* methods.
13 | ///
14 | [AttributeUsage(AttributeTargets.Field)]
15 | public sealed class OperatorSlotAttribute : Attribute {
16 | public OperatorSlotAttribute() { }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Runtime/PropertyMethodAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Runtime {
8 | ///
9 | /// Represents an ops-extension method which is used to implement a property.
10 | ///
11 | [AttributeUsage(AttributeTargets.Method, Inherited = false)]
12 | public sealed class PropertyMethodAttribute : Attribute {
13 | public PropertyMethodAttribute() { }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Runtime/SavableScriptCode.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/Zolom/Source/Microsoft.Dynamic/Runtime/SavableScriptCode.cs
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Runtime/SourceStringContentProvider.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.IO;
7 |
8 | using Microsoft.Scripting.Utils.Dynamic;
9 |
10 | namespace Microsoft.Scripting {
11 |
12 | [Serializable]
13 | internal sealed class SourceStringContentProvider : TextContentProvider {
14 | private readonly string _code;
15 |
16 | internal SourceStringContentProvider(string code) {
17 | ContractUtils.RequiresNotNull(code, nameof(code));
18 |
19 | _code = code;
20 | }
21 |
22 | public override SourceCodeReader GetReader() {
23 | return new SourceCodeReader(new StringReader(_code), null);
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Runtime/StaticExtensionMethodAttribute.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Runtime {
8 | ///
9 | /// Indicates an extension method should be added as a static method, not a instance method.
10 | ///
11 | [AttributeUsage(AttributeTargets.Method, Inherited = false)]
12 | public sealed class StaticExtensionMethodAttribute : Attribute {
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Runtime/Uninitialized.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Runtime {
6 | public sealed class Uninitialized {
7 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")]
8 | public static readonly Uninitialized Instance = new Uninitialized();
9 | private Uninitialized() { }
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Utils/ListEqualityComparer.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Collections.Generic;
6 | using Microsoft.Scripting.Utils.Dynamic;
7 |
8 | namespace Microsoft.Scripting.Utils {
9 | // Compares two ICollection's using element equality
10 | internal sealed class ListEqualityComparer : EqualityComparer> {
11 | internal static readonly ListEqualityComparer Instance = new ListEqualityComparer();
12 |
13 | private ListEqualityComparer() { }
14 |
15 | // EqualityComparer handles null and object identity for us
16 | public override bool Equals(ICollection x, ICollection y) => x.ListEquals(y);
17 |
18 | public override int GetHashCode(ICollection obj) {
19 | return obj.ListHashCode();
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/Utils/ThreadingUtils.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Threading;
6 |
7 | namespace Microsoft.Scripting.Utils {
8 | public static class ThreadingUtils {
9 | private static int id;
10 | private static System.Threading.ThreadLocal threadIds = new System.Threading.ThreadLocal(() => Interlocked.Increment(ref id));
11 |
12 | public static int GetCurrentThreadId() {
13 | return threadIds.Value;
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Dynamic/zlib.net/history.txt:
--------------------------------------------------------------------------------
1 | ZLIB.NET: History of changes
2 | =============================
3 |
4 | version 1.10 (03/10/2010)
5 |
6 | - Bug with the problem with inflate a stream with a dictionary is fixed. Thanks to Baptiste Pernet Mugnier.
7 | - Help file is added
8 |
9 | version 1.04 (03/28/2007)
10 |
11 | - Problem with decompressing some files is solved
12 |
13 |
14 | version 1.03 (03/05/2007)
15 |
16 | - Problem with decomressing some files is solved
17 |
18 |
19 | version 1.02 (01/29/2007)
20 |
21 | - Problem with decompressing large files using ZOutputStream is solved
22 |
23 |
24 | version 1.01 (08/17/2006)
25 |
26 | - Demos are updated
27 | - Some minor bugs are fixed
28 |
29 |
30 | version 1.0 (07/06/2006)
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Scripting/ArgumentTypeException.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Runtime.Serialization;
7 |
8 | namespace Microsoft.Scripting {
9 | [Serializable]
10 | public class ArgumentTypeException : Exception {
11 | public ArgumentTypeException()
12 | : base() {
13 | }
14 |
15 | public ArgumentTypeException(string message)
16 | : base(message) {
17 | }
18 |
19 | public ArgumentTypeException(string message, Exception innerException)
20 | : base(message, innerException) {
21 | }
22 |
23 | #if FEATURE_SERIALIZATION
24 | protected ArgumentTypeException(SerializationInfo info, StreamingContext context) : base(info, context) { }
25 | #endif
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Scripting/AssemblyLoadedEventArgs.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Collections.Generic;
7 | using System.Text;
8 | using System.Reflection;
9 |
10 | namespace Microsoft.Scripting {
11 | public class AssemblyLoadedEventArgs : EventArgs {
12 | public AssemblyLoadedEventArgs(Assembly assembly) {
13 | Assembly = assembly;
14 | }
15 |
16 | public Assembly Assembly { get; }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Scripting/CompilerOptions.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting {
8 |
9 | ///
10 | /// Class that represents compiler options.
11 | /// Note that this class is likely to change when hosting API becomes part of .Net
12 | ///
13 | [Serializable]
14 | public class CompilerOptions
15 | {
16 | public CompilerOptions() {
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Scripting/Hosting/MemberKind.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Hosting {
6 | ///
7 | /// Specifies the type of member.
8 | ///
9 | public enum MemberKind {
10 | None,
11 | Class,
12 | Delegate,
13 | Enum,
14 | Event,
15 | Field,
16 | Function,
17 | Module,
18 | Property,
19 | Constant,
20 | EnumMember,
21 | Instance,
22 | Method,
23 | Namespace
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Scripting/Hosting/ParameterFlags.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Hosting {
8 | ///
9 | /// Indications extra information about a parameter such as if it's a parameter array.
10 | ///
11 | [Flags]
12 | public enum ParameterFlags {
13 | None,
14 | ParamsArray = 0x01,
15 | ParamsDict = 0x02,
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Scripting/Hosting/ScriptHostProxy.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using Microsoft.Scripting.Runtime;
6 | using Microsoft.Scripting.Utils.Scripting;
7 |
8 | namespace Microsoft.Scripting.Hosting {
9 | ///
10 | /// Provides hosting to DLR. Forwards DLR requests to the ScriptHost.
11 | ///
12 | internal sealed class ScriptHostProxy : DynamicRuntimeHostingProvider {
13 | private readonly ScriptHost _host;
14 |
15 | public ScriptHostProxy(ScriptHost host) {
16 | Assert.NotNull(host);
17 | _host = host;
18 | }
19 |
20 | public override PlatformAdaptationLayer PlatformAdaptationLayer => _host.PlatformAdaptationLayer;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Scripting/InvalidImplementationException.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Runtime.Serialization;
7 |
8 | namespace Microsoft.Scripting {
9 | [Serializable]
10 | public class InvalidImplementationException : Exception {
11 | public InvalidImplementationException()
12 | : base() {
13 | }
14 |
15 | public InvalidImplementationException(string message)
16 | : base(message) {
17 | }
18 |
19 | public InvalidImplementationException(string message, Exception e)
20 | : base(message, e) {
21 | }
22 |
23 | #if FEATURE_SERIALIZATION
24 | protected InvalidImplementationException(SerializationInfo info, StreamingContext context) : base(info, context) { }
25 | #endif
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Scripting/Runtime/DocumentationProvider.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Collections.Generic;
6 |
7 | using Microsoft.Scripting.Hosting;
8 |
9 | namespace Microsoft.Scripting.Runtime {
10 | ///
11 | /// Provides language specific documentation for live objects.
12 | ///
13 | public abstract class DocumentationProvider {
14 | public abstract ICollection GetMembers(object value);
15 | public abstract ICollection GetOverloads(object value);
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Scripting/Runtime/DynamicRuntimeHostingProvider.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Runtime {
8 | ///
9 | /// DLR requires any Hosting API provider to implement this class and provide its instance upon Runtime initialization.
10 | /// DLR calls on it to perform basic host/system dependent operations.
11 | ///
12 | [Serializable]
13 | public abstract class DynamicRuntimeHostingProvider {
14 | ///
15 | /// Abstracts system operations that are used by DLR and could potentially be platform specific.
16 | ///
17 | public abstract PlatformAdaptationLayer PlatformAdaptationLayer { get; }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Scripting/Runtime/ScopeExtension.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using Microsoft.Scripting.Utils.Scripting;
6 |
7 | namespace Microsoft.Scripting.Runtime {
8 |
9 | // TODO: this class should be abstract
10 | public class ScopeExtension {
11 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2105:ArrayFieldsShouldNotBeReadOnly")]
12 | public static readonly ScopeExtension[] EmptyArray = new ScopeExtension[0];
13 |
14 | public Scope Scope { get; }
15 |
16 | public ScopeExtension(Scope scope) {
17 | ContractUtils.RequiresNotNull(scope, nameof(scope));
18 | Scope = scope;
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Scripting/Runtime/TokenTriggers.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting {
8 |
9 | ///
10 | /// See also Microsoft.VisualStudio.Package.TokenTriggers.
11 | ///
12 | [Flags]
13 | public enum TokenTriggers {
14 | None = 0,
15 | MemberSelect = 1,
16 | MatchBraces = 2,
17 | ParameterStart = 16,
18 | ParameterNext = 32,
19 | ParameterEnd = 64,
20 | Parameter = 128,
21 | MethodTip = 240,
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Scripting/Severity.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting {
6 | public enum Severity {
7 | Ignore,
8 | Warning,
9 | Error,
10 | FatalError,
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Scripting/Stubs.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Reflection;
6 |
7 | #if !FEATURE_SERIALIZATION
8 |
9 | namespace System {
10 | using System.Diagnostics;
11 |
12 | [Conditional("STUB")]
13 | public class SerializableAttribute : Attribute {
14 | }
15 |
16 | [Conditional("STUB")]
17 | public class NonSerializedAttribute : Attribute {
18 | }
19 |
20 | namespace Runtime.Serialization {
21 | public interface ISerializable {
22 | }
23 |
24 | public interface IDeserializationCallback {
25 | }
26 | }
27 |
28 | public class SerializationException : Exception {
29 | }
30 | }
31 |
32 | #endif
33 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Scripting/Utils/ConsoleStreamType.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace Microsoft.Scripting.Utils {
6 | public enum ConsoleStreamType {
7 | Input,
8 | Output,
9 | ErrorOutput,
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Scripting/Utils/ExceptionUtils.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace Microsoft.Scripting.Utils.Scripting {
8 | internal static class ExceptionUtils {
9 | public static ArgumentNullException MakeArgumentItemNullException(int index, string arrayName) {
10 | return new ArgumentNullException($"{arrayName}[{index}]");
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Scripting/Utils/ExpressionUtils.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Linq.Expressions;
6 |
7 | using System;
8 |
9 | namespace Microsoft.Scripting.Utils {
10 | internal sealed class ExpressionUtils {
11 | internal static Expression Convert(Expression expression, Type type) {
12 | return (expression.Type != type) ? Expression.Convert(expression, type) : expression;
13 | }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Scripting/Utils/NativeMethods.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | #if FEATURE_NATIVE
6 |
7 | using System;
8 | using System.Runtime.InteropServices;
9 |
10 | namespace Microsoft.Scripting.Utils {
11 | internal static class NativeMethods {
12 | [DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError=true)]
13 | [return: MarshalAs(UnmanagedType.Bool)]
14 | internal static extern bool SetEnvironmentVariable(string name, string value);
15 | }
16 | }
17 |
18 | #endif
19 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Scripting/Utils/ReflectionUtils.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Linq;
7 | using System.Reflection;
8 | using System.Collections.Generic;
9 | using System.Reflection.Emit;
10 |
11 | namespace Microsoft.Scripting.Utils.Scripting {
12 | internal static class ReflectionUtils {
13 | public static MethodInfo GetMethodInfo(this Delegate d) {
14 | return d.Method;
15 | }
16 |
17 | public static IEnumerable GetDeclaredMethods(this Type type, string name) {
18 | return type.GetMember(name).OfType();
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Source/Microsoft.Scripting/Utils/StringUtils.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the Apache 2.0 License.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Collections.Generic;
7 | using System.Globalization;
8 | using System.Text;
9 |
10 | namespace Microsoft.Scripting.Utils.Scripting {
11 | internal static class StringUtils {
12 |
13 | public static Encoding DefaultEncoding {
14 | get {
15 | #if FEATURE_ENCODING
16 | return Encoding.Default;
17 | #else
18 | return Encoding.UTF8;
19 | #endif
20 | }
21 | }
22 |
23 | public static string[] Split(string str, char[] separators, int maxComponents, StringSplitOptions options) {
24 | ContractUtils.RequiresNotNull(str, nameof(str));
25 | return str.Split(separators, maxComponents, options);
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/Zolom/Zolom/Util/References/Mono.Posix.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/Zolom/Util/References/Mono.Posix.dll
--------------------------------------------------------------------------------
/Zolom/Zolom/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/Zolom/Zolom/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Zolom/packages/Costura.Fody.2.0.0/.signature.p7s:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/packages/Costura.Fody.2.0.0/.signature.p7s
--------------------------------------------------------------------------------
/Zolom/packages/Costura.Fody.2.0.0/Costura.Fody.2.0.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/packages/Costura.Fody.2.0.0/Costura.Fody.2.0.0.nupkg
--------------------------------------------------------------------------------
/Zolom/packages/Costura.Fody.2.0.0/lib/net452/Costura.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/packages/Costura.Fody.2.0.0/lib/net452/Costura.dll
--------------------------------------------------------------------------------
/Zolom/packages/Costura.Fody.2.0.0/lib/net452/Costura.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Costura
5 |
6 |
7 |
8 |
9 | Contains methods for interacting with the Costura system.
10 |
11 |
12 |
13 |
14 | Call this to Initialize the Costura system.
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Zolom/packages/Costura.Fody.2.0.0/netclassictask/Costura.Tasks.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/packages/Costura.Fody.2.0.0/netclassictask/Costura.Tasks.dll
--------------------------------------------------------------------------------
/Zolom/packages/Costura.Fody.2.0.0/netclassictask/Costura.Tasks.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/packages/Costura.Fody.2.0.0/netclassictask/Costura.Tasks.pdb
--------------------------------------------------------------------------------
/Zolom/packages/Costura.Fody.2.0.0/netclassicweaver/Costura.Fody.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/packages/Costura.Fody.2.0.0/netclassicweaver/Costura.Fody.dll
--------------------------------------------------------------------------------
/Zolom/packages/Costura.Fody.2.0.0/netclassicweaver/Costura.Fody.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/packages/Costura.Fody.2.0.0/netclassicweaver/Costura.Fody.pdb
--------------------------------------------------------------------------------
/Zolom/packages/Costura.Fody.2.0.0/netstandardtask/Costura.Tasks.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/packages/Costura.Fody.2.0.0/netstandardtask/Costura.Tasks.dll
--------------------------------------------------------------------------------
/Zolom/packages/Costura.Fody.2.0.0/netstandardtask/Costura.Tasks.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/packages/Costura.Fody.2.0.0/netstandardtask/Costura.Tasks.pdb
--------------------------------------------------------------------------------
/Zolom/packages/Costura.Fody.2.0.0/netstandardweaver/Costura.Fody.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/packages/Costura.Fody.2.0.0/netstandardweaver/Costura.Fody.dll
--------------------------------------------------------------------------------
/Zolom/packages/Costura.Fody.2.0.0/netstandardweaver/Costura.Fody.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/packages/Costura.Fody.2.0.0/netstandardweaver/Costura.Fody.pdb
--------------------------------------------------------------------------------
/Zolom/packages/Fody.2.0.0/.signature.p7s:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/packages/Fody.2.0.0/.signature.p7s
--------------------------------------------------------------------------------
/Zolom/packages/Fody.2.0.0/Content/FodyWeavers.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/Zolom/packages/Fody.2.0.0/Fody.2.0.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/packages/Fody.2.0.0/Fody.2.0.0.nupkg
--------------------------------------------------------------------------------
/Zolom/packages/Fody.2.0.0/Fody.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/packages/Fody.2.0.0/Fody.dll
--------------------------------------------------------------------------------
/Zolom/packages/Fody.2.0.0/Fody.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/packages/Fody.2.0.0/Fody.pdb
--------------------------------------------------------------------------------
/Zolom/packages/Fody.2.0.0/FodyCommon.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/packages/Fody.2.0.0/FodyCommon.dll
--------------------------------------------------------------------------------
/Zolom/packages/Fody.2.0.0/FodyCommon.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/packages/Fody.2.0.0/FodyCommon.pdb
--------------------------------------------------------------------------------
/Zolom/packages/Fody.2.0.0/FodyIsolated.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/packages/Fody.2.0.0/FodyIsolated.dll
--------------------------------------------------------------------------------
/Zolom/packages/Fody.2.0.0/FodyIsolated.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/packages/Fody.2.0.0/FodyIsolated.pdb
--------------------------------------------------------------------------------
/Zolom/packages/Fody.2.0.0/Mono.Cecil.Mdb.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/packages/Fody.2.0.0/Mono.Cecil.Mdb.dll
--------------------------------------------------------------------------------
/Zolom/packages/Fody.2.0.0/Mono.Cecil.Pdb.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/packages/Fody.2.0.0/Mono.Cecil.Pdb.dll
--------------------------------------------------------------------------------
/Zolom/packages/Fody.2.0.0/Mono.Cecil.Rocks.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/packages/Fody.2.0.0/Mono.Cecil.Rocks.dll
--------------------------------------------------------------------------------
/Zolom/packages/Fody.2.0.0/Mono.Cecil.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nshalabi/IronKit/1d670505d83d1f74fbbfb1da15555fc9ccc39fb6/Zolom/packages/Fody.2.0.0/Mono.Cecil.dll
--------------------------------------------------------------------------------
/Zolom/packages/Fody.2.0.0/Tools/install.ps1:
--------------------------------------------------------------------------------
1 | param($installPath, $toolsPath, $package, $project)
2 | $item = $project.ProjectItems | where-object {$_.Name -eq "FodyWeavers.xml"}
3 | $item.Properties.Item("BuildAction").Value = [int]0
--------------------------------------------------------------------------------