{"action":"created","comment":{"url":"https://api.github.com/repos/kaleidicassociates/autowrap/pulls/comments/233067420","pull_request_review_id":174391737,"id":233067420,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMzA2NzQyMA==","diff_hunk":"@@ -0,0 +1,1061 @@\n+module autowrap.csharp.csharp;\n+\n+import autowrap.csharp.boilerplate;\n+import autowrap.csharp.common;\n+import autowrap.reflection;\n+\n+import std.ascii;\n+import std.datetime;\n+import std.traits;\n+import std.string;\n+import std.uuid;\n+\n+import std.stdio;\n+\n+private __gshared string[string] returnTypes;\n+private __gshared csharpNamespace[string] namespaces;\n+private __gshared csharpRange rangeDef;\n+\n+enum string voidTypeString = \"void\";\n+enum string stringTypeString = \"string\";\n+enum string wstringTypeString = \"wstring\";\n+enum string dstringTypeString = \"dstring\";\n+enum string boolTypeString = \"bool\";\n+enum string dateTimeTypeString = \"DateTime\";\n+enum string sysTimeTypeString = \"SysTime\";\n+enum string uuidTypeString = \"UUID\";\n+enum string charTypeString = \"char\";\n+enum string wcharTypeString = \"wchar\";\n+enum string dcharTypeString = \"dchar\";\n+enum string ubyteTypeString = \"ubyte\";\n+enum string byteTypeString = \"byte\";\n+enum string ushortTypeString = \"ushort\";\n+enum string shortTypeString = \"short\";\n+enum string uintTypeString = \"uint\";\n+enum string intTypeString = \"int\";\n+enum string ulongTypeString = \"ulong\";\n+enum string longTypeString = \"long\";\n+enum string floatTypeString = \"float\";\n+enum string doubleTypeString = \"double\";\n+enum string sliceTypeString = \"slice\";\n+\n+private class csharpNamespace {\n+    public string namespace;\n+    public string functions;\n+    public csharpAggregate[string] aggregates;\n+\n+    public this(string ns) {\n+        namespace = ns;\n+        functions = string.init;\n+    }\n+\n+    public override string toString() {\n+        char[] ret;\n+        ret.reserve(1_048_576);\n+        foreach(csns; namespaces.byValue()) {\n+            ret ~= \"namespace \" ~ csns.namespace ~ \" {\" ~newline;\n+            ret ~= \"    using System;\" ~ newline;\n+            ret ~= \"    using System.Collections.Generic;\" ~ newline;\n+            ret ~= \"    using System.Linq;\" ~ newline;\n+            ret ~= \"    using System.Reflection;\" ~ newline;\n+            ret ~= \"    using System.Runtime.InteropServices;\" ~ newline;\n+            ret ~= \"    using Autowrap;\" ~ newline ~ newline;\n+            ret ~= \"    public static class Functions {\" ~ newline;\n+            ret ~= csns.functions;\n+            ret ~= \"    }\" ~ newline ~ newline;\n+            foreach(agg; aggregates.byValue()) {\n+                ret ~= agg.toString();\n+            }\n+            ret ~= \"}\" ~ newline;\n+        }\n+        return cast(immutable)ret;\n+    }\n+}\n+\n+private class csharpAggregate {\n+    public string name;\n+    public bool isStruct;\n+    public string constructors;\n+    public string functions;\n+    public string methods;\n+    public string properties;\n+\n+    public this (string name, bool isStruct) {\n+        this.name = name;\n+        this.isStruct = isStruct;\n+        this.constructors = string.init;\n+        this.functions = string.init;\n+        this.methods = string.init;\n+        this.properties = string.init;\n+    }\n+\n+    public override string toString() {\n+        char[] ret;\n+        ret.reserve(32_768);\n+        if (isStruct) {\n+            ret ~= \"    [StructLayout(LayoutKind.Sequential)]\" ~ newline;\n+            ret ~= \"    public struct \" ~ camelToPascalCase(this.name) ~ \" {\" ~ newline;\n+        } else {\n+            ret ~= \"    public class \" ~ camelToPascalCase(this.name) ~ \" : DLangObject {\" ~ newline;\n+        }\n+        if (functions != string.init) ret ~= functions ~ newline;\n+        if (constructors != string.init) ret ~= constructors ~ newline;\n+        if (methods != string.init) ret ~= methods ~ newline;\n+        if (properties != string.init) ret ~= properties;\n+        ret ~= \"    }\" ~ newline ~ newline;\n+        return cast(immutable)ret;\n+    }\n+}\n+\n+public struct csharpRange {\n+    public string constructors = string.init;\n+    public string enumerators = string.init;\n+    public string functions = string.init;\n+    public string getters = string.init;\n+    public string setters = string.init; \n+    public string appendValues = string.init;\n+    public string appendArrays = string.init;\n+    public string sliceEnd = string.init;\n+    public string sliceRange = string.init;\n+\n+    public string toString() {\n+        char[] ret;\n+        ret.reserve(32_768);\n+        ret ~= \"    internal class RangeFunctions {\" ~ newline;\n+        ret ~= functions;\n+        ret ~= \"    }\" ~ newline ~ newline;\n+        ret ~= \"    public class Range<T> : IEnumerable<T> {\" ~ newline;\n+        ret ~= \"        private slice _slice;\" ~ newline;\n+        ret ~= \"        private DStringType _type;\" ~ newline;\n+        ret ~= \"        private IList<string> _strings;\" ~ newline ~ newline;\n+\n+        ret ~= \"        internal slice ToSlice(DStringType type = DStringType.None) {\" ~ newline;\n+        ret ~= \"            if (type == DStringType.None && _strings != null) {\" ~ newline;\n+        ret ~= \"                throw new TypeAccessException(\\\"Cannot pass a range of strings to a non-string range.\\\");\" ~ newline;\n+        ret ~= \"            }\" ~ newline;\n+\n+        ret ~= \"            if (_strings == null) {\" ~ newline;\n+        ret ~= \"                return _slice;\" ~ newline;\n+        ret ~= \"            } else {\" ~ newline;\n+        ret ~= \"                _type = type;\" ~ newline;\n+        ret ~= \"                if (_type == DStringType._string) {\" ~ newline;\n+        ret ~= \"                    _slice = RangeFunctions.dlang_slice_String_Create(new IntPtr(_strings.Count()));\" ~ newline;\n+        ret ~= \"                    foreach(var s in _strings) {\" ~ newline;\n+        ret ~= \"                        _slice = RangeFunctions.dlang_slice_String_AppendValue(_slice, SharedFunctions.CreateString(s));\" ~ newline;\n+        ret ~= \"                    }\" ~ newline;\n+        ret ~= \"                } else if (_type == DStringType._wstring) {\" ~ newline;\n+        ret ~= \"                    _slice = RangeFunctions.dlang_slice_Wstring_Create(new IntPtr(_strings.Count()));\" ~ newline;\n+        ret ~= \"                    foreach(var s in _strings) {\" ~ newline;\n+        ret ~= \"                        _slice = RangeFunctions.dlang_slice_Wstring_AppendValue(_slice, SharedFunctions.CreateWString(s));\" ~ newline;\n+        ret ~= \"                    }\" ~ newline;\n+        ret ~= \"                } else if (_type == DStringType._dstring) {\" ~ newline;\n+        ret ~= \"                    _slice = RangeFunctions.dlang_slice_Dstring_Create(new IntPtr(_strings.Count()));\" ~ newline;\n+        ret ~= \"                    foreach(var s in _strings) {\" ~ newline;\n+        ret ~= \"                        _slice = RangeFunctions.dlang_slice_Dstring_AppendValue(_slice, SharedFunctions.CreateDString(s));\" ~ newline;\n+        ret ~= \"                    }\" ~ newline;\n+        ret ~= \"                }\" ~ newline;\n+        ret ~= \"                _strings = null;\" ~ newline;\n+        ret ~= \"                return _slice;\" ~ newline;\n+        ret ~= \"            }\" ~ newline;\n+        ret ~= \"        }\" ~ newline;\n+        ret ~= \"        public long Length => _strings?.Count ?? _slice.length.ToInt64();\" ~ newline;\n+\n+        ret ~= \"        internal Range(slice range, DStringType type = DStringType.None) {\" ~ newline;\n+        ret ~= \"            this._slice = range;\" ~ newline;\n+        ret ~= \"            this._type = type;\" ~ newline;\n+        ret ~= \"        }\" ~ newline ~ newline;\n+\n+        ret ~= \"        public Range(IEnumerable<string> strings) {\" ~ newline;\n+        ret ~= \"            this._strings = new List<string>(strings);\" ~ newline;\n+        ret ~= \"        }\" ~ newline ~ newline;\n+\n+        ret ~= \"        public Range(long capacity = 0) {\" ~ newline;\n+        ret ~= constructors;\n+        ret ~= \"            else throw new TypeAccessException($\\\"Range does not support type: {typeof(T).ToString()}\\\");\" ~ newline;\n+        ret ~= \"        }\" ~ newline ~ newline;\n+        ret ~= \"        ~Range() {\" ~ newline;\n+        ret ~= \"            SharedFunctions.ReleaseMemory(_slice.ptr);\" ~ newline;\n+        ret ~= \"        }\" ~ newline ~ newline;\n+        ret ~= \"        public T this[long i] {\" ~ newline;\n+        ret ~= \"            get {\" ~ newline;\n+        ret ~= getters;\n+        ret ~= \"                else throw new TypeAccessException($\\\"Range does not support type: {typeof(T).ToString()}\\\");\" ~ newline;\n+        ret ~= \"            }\" ~ newline;\n+        ret ~= \"            set {\" ~ newline;\n+        ret ~= setters;\n+        ret ~= \"            }\" ~ newline;\n+        ret ~= \"        }\" ~ newline;\n+        ret ~= \"        public Range<T> Slice(long begin) {\" ~ newline;\n+        ret ~= sliceEnd;\n+        ret ~= \"            else throw new TypeAccessException($\\\"Range does not support type: {typeof(T).ToString()}\\\");\" ~ newline;\n+        ret ~= \"        }\" ~ newline ~ newline;\n+        ret ~= \"        public Range<T> Slice(long begin, long end) {\" ~ newline;\n+        ret ~= \"            if (end > _slice.length.ToInt64()) {\" ~ newline;\n+        ret ~= \"                throw new IndexOutOfRangeException(\\\"Value for parameter 'end' is greater than that length of the slice.\\\");\" ~ newline;\n+        ret ~= \"            }\" ~ newline;\n+        ret ~= sliceRange;\n+        ret ~= \"            else throw new TypeAccessException($\\\"Range does not support type: {typeof(T).ToString()}\\\");\" ~ newline;\n+        ret ~= \"        }\" ~ newline ~ newline;\n+        ret ~= \"        public static Range<T> operator +(Range<T> range, T value) {\" ~ newline;\n+        ret ~= appendValues;\n+        ret ~= \"            else throw new TypeAccessException($\\\"Range does not support type: {typeof(T).ToString()}\\\");\" ~ newline;\n+        ret ~= \"        }\" ~ newline ~ newline;\n+        ret ~= \"        public static Range<T> operator +(Range<T> range, Range<T> source) {\" ~ newline;\n+        ret ~= appendArrays;\n+        ret ~= \"            else throw new TypeAccessException($\\\"Range does not support type: {typeof(T).ToString()}\\\");\" ~ newline;\n+        ret ~= \"        }\" ~ newline ~ newline;\n+        ret ~= \"        public IEnumerator<T> GetEnumerator() {\" ~ newline;\n+        ret ~= \"            for(long i = 0; i < _slice.length.ToInt64(); i++) {\" ~ newline;\n+        ret ~= enumerators;\n+        ret ~= \"            }\" ~ newline;\n+        ret ~= \"        }\" ~ newline ~ newline;\n+        ret ~= \"        public static implicit operator T[](Range<T> slice) {\" ~ newline;\n+        ret ~= \"            return slice.ToArray();\" ~ newline;\n+        ret ~= \"        }\" ~ newline;\n+        ret ~= \"        public static implicit operator Range<T>(T[] array) {\" ~ newline;\n+        ret ~= \"            var vs = new Range<T>(array.Length);\" ~ newline;\n+        ret ~= \"            foreach(var t in array) {\" ~ newline;\n+        ret ~= \"                vs += t;\" ~ newline;\n+        ret ~= \"            }\" ~ newline;\n+        ret ~= \"            return vs;\" ~ newline;\n+        ret ~= \"        }\" ~ newline;\n+        ret ~= \"        public static implicit operator List<T>(Range<T> slice) {\" ~ newline;\n+        ret ~= \"            return new List<T>(slice.ToArray());\" ~ newline;\n+        ret ~= \"        }\" ~ newline;\n+        ret ~= \"        public static implicit operator Range<T>(List<T> array) {\" ~ newline;\n+        ret ~= \"            var vs = new Range<T>(array.Count);\" ~ newline;\n+        ret ~= \"            foreach(var t in array) {\" ~ newline;\n+        ret ~= \"                vs += t;\" ~ newline;\n+        ret ~= \"            }\" ~ newline;\n+        ret ~= \"            return vs;\" ~ newline;\n+        ret ~= \"        }\" ~ newline ~ newline;\n+        ret ~= \"        System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => this.GetEnumerator();\" ~ newline ~ newline;\n+        ret ~= \"    }\" ~ newline;\n+        return cast(immutable)ret;\n+    }\n+}\n+\n+public string writeCSharpFile(Modules...)(string libraryName, string rootNamespace) if(allSatisfy!(isModule, Modules)) {\n+    import autowrap.reflection: AllFunctions;\n+    generateSliceBoilerplate(libraryName);\n+\n+    foreach(agg; AllAggregates!Modules) {\n+        alias modName = moduleName!agg;\n+        const string aggName = __traits(identifier, agg);\n+        alias fqn = fullyQualifiedName!agg;\n+        csharpAggregate csagg = getAggregate(getCSharpName(modName), getCSharpName(aggName), !is(agg == class));\n+\n+        //Generate range creation method\n+        generateRangeDef!agg(libraryName);\n+\n+        static if(hasMember!(agg, \"__ctor\")) {\n+            alias constructors = AliasSeq!(__traits(getOverloads, agg, \"__ctor\"));\n+        } else {\n+            alias constructors = AliasSeq!();\n+        }\n+\n+        //Generate constructor methods\n+        foreach(c; constructors) {\n+            alias paramNames = ParameterIdentifierTuple!c;\n+            alias paramTypes = Parameters!c;\n+            enum isNothrow = functionAttributes!c & FunctionAttribute.nothrow_;\n+            const string interfaceName = getDLangInterfaceName(fqn, \"__ctor\");\n+            const string methodName = getCSharpMethodInterfaceName(aggName, \"__ctor\");\n+            string ctor = \"        [DllImport(\\\"%s\\\", EntryPoint = \\\"%s\\\", CallingConvention = CallingConvention.Cdecl)]\".format(libraryName, interfaceName) ~ newline;\n+            if (is(agg == class)) {\n+                ctor ~= \"        private static extern %s dlang_%s(\".format(getDLangReturnType(aggName, isNothrow, true), methodName);\n+            } else if (is(agg == struct)) {\n+                ctor ~= \"        private static extern %s dlang_%s(\".format(methodName);\n+            }\n+            static foreach(pc; 0..paramNames.length) {\n+                if (is(paramTypes[pc] == class)) {\n+                    ctor ~= \"IntPtr \" ~ paramNames[pc] ~ \", \";\n+                } else {\n+                    if (is(paramTypes[pc] == bool)) ctor ~= \"[MarshalAs(UnmanagedType.Bool)]\";\n+                    ctor ~= getDLangInterfaceType(fullyQualifiedName!(paramTypes[pc])) ~ \" \" ~ paramNames[pc] ~ \", \";\n+                }\n+            }\n+            if (paramNames.length > 0) {\n+                ctor = ctor[0..$-2];\n+            }\n+            ctor ~= \");\" ~ newline;\n+            ctor ~= \"        public \" ~ getCSharpName(aggName) ~ \"(\";\n+            static foreach(pc; 0..paramNames.length) {\n+                ctor ~= getCSharpInterfaceType(fullyQualifiedName!(paramTypes[pc])) ~ \" \" ~ paramNames[pc] ~ \", \";\n+            }\n+            if (paramNames.length > 0) {\n+                ctor = ctor[0..$-2];\n+            }\n+            if (is(agg == class)) {\n+                ctor ~= \") : base(dlang_%s(\".format(methodName);\n+                static foreach(pc; 0..paramNames.length) {\n+                    static if (is(paramTypes[pc] == string)) {\n+                        ctor ~= \"SharedFunctions.CreateString(\" ~ paramNames[pc] ~ \"), \";\n+                    } else static if (is(paramTypes[pc] == wstring)) {\n+                        ctor ~= \"SharedFunctions.CreateWString(\" ~ paramNames[pc] ~ \"), \";\n+                    } else static if (is(paramTypes[pc] == dstring)) {\n+                        ctor ~= \"SharedFunctions.CreateDString(\" ~ paramNames[pc] ~ \"), \";\n+                    } else {\n+                        ctor ~= paramNames[pc] ~ \", \";\n+                    }\n+                }\n+                if (paramNames.length > 0) {\n+                    ctor = ctor[0..$-2];\n+                }\n+                ctor ~= \")) { \";\n+            } else if (is(agg == struct)) {\n+            }\n+            ctor ~= \"}\" ~ newline;\n+            csagg.constructors ~= ctor;\n+        }\n+        if (is(agg == class)) {\n+            csagg.constructors ~= \"        internal %s(IntPtr ptr) : base(ptr) { }\".format(getCSharpName(aggName)) ~ newline;\n+        }\n+\n+        foreach(m; __traits(allMembers, agg)) {\n+            if (m == \"__ctor\" || m == \"toHash\" || m == \"opEquals\" || m == \"opCmp\" || m == \"factory\") {\n+                continue;\n+            }\n+            const string methodName = camelToPascalCase(cast(string)m);\n+            const string methodInterfaceName = getCSharpMethodInterfaceName(aggName, cast(string)m);\n+\n+            static if (is(typeof(__traits(getMember, agg, m)))) {\n+            foreach(mo; __traits(getOverloads, agg, m)) {\n+                static if(isFunction!mo) {\n+                    string exp = string.init;\n+                    enum bool isNothrow = cast(bool)(functionAttributes!mo & FunctionAttribute.nothrow_);\n+                    enum bool isProperty = cast(bool)(functionAttributes!mo & FunctionAttribute.property);\n+                    alias returnType = ReturnType!mo;\n+                    alias returnTypeStr = fullyQualifiedName!returnType;\n+                    alias paramTypes = Parameters!mo;\n+                    alias paramNames = ParameterIdentifierTuple!mo;\n+\n+                    const string interfaceName = getDLangInterfaceName(fqn, m);\n+\n+                    exp ~= \"        [DllImport(\\\"%s\\\", EntryPoint = \\\"%s\\\", CallingConvention = CallingConvention.Cdecl)]\".format(libraryName, interfaceName) ~ newline;\n+                    exp ~= \"        private static extern \";\n+                    if (!is(returnType == void)) {\n+                        static if (is(returnType == class)) {\n+                            exp ~= getDLangReturnType(returnTypeStr, isNothrow, true);\n+                        } else {\n+                            exp ~= getDLangReturnType(returnTypeStr, isNothrow, false);\n+                        }\n+                    } else {\n+                        exp ~= \"return_void_error\";\n+                    }\n+                    exp ~= \" dlang_\" ~ methodInterfaceName ~ \"(\";\n+                    if (is(agg == struct)) {\n+                        exp ~= \"ref \" ~ getDLangInterfaceType(fqn) ~ \" __obj__, \";\n+                    } else if (is(agg == class) || is(agg == interface)) {\n+                        exp ~= \"IntPtr __obj__, \";\n+                    }\n+                    static foreach(pc; 0..paramNames.length) {\n+                        if (is(paramTypes[pc] == class)) {\n+                            exp ~= \"IntPtr \" ~ paramNames[pc] ~ \", \";\n+                        } else {\n+                            exp ~= getDLangInterfaceType(fullyQualifiedName!(paramTypes[pc])) ~ \" \" ~ paramNames[pc] ~ \", \";\n+                        }\n+                    }\n+                    exp = exp[0..$-2];\n+                    exp ~= \");\" ~ newline;\n+                    if (!isProperty) {\n+                        if (methodName == \"ToString\") {\n+                            exp ~= \"        public override %s %s(\".format(getCSharpInterfaceType(returnTypeStr), methodName);\n+                        } else {\n+                            exp ~= \"        public %s %s(\".format(getCSharpInterfaceType(returnTypeStr), methodName);\n+                        }\n+                        static foreach(pc; 0..paramNames.length) {\n+                            if (is(paramTypes[pc] == string) || is(paramTypes[pc] == wstring) || is(paramTypes[pc] == dstring)) {\n+                                exp ~= getCSharpInterfaceType(fullyQualifiedName!(paramTypes[pc])) ~ \" \" ~ paramNames[pc] ~ \", \";\n+                            } else if (isArray!(paramTypes[pc])) {\n+                                exp ~= \"Range<\" ~ getCSharpInterfaceType(fullyQualifiedName!(paramTypes[pc])) ~ \"> \" ~ paramNames[pc] ~ \", \";\n+                            } else {\n+                                exp ~= getCSharpInterfaceType(fullyQualifiedName!(paramTypes[pc])) ~ \" \" ~ paramNames[pc] ~ \", \";\n+                            }\n+                        }\n+                        if (paramNames.length > 0) {\n+                            exp = exp[0..$-2];\n+                        }\n+                        exp ~= \") {\" ~ newline;\n+                        if (is(agg == class)) {\n+                            if (isNothrow && is(returnType == void)) {\n+                                exp ~= \"            dlang_%s(DLangPointer, \".format(methodInterfaceName);\n+                            } else {\n+                                exp ~= \"            var dlang_ret = dlang_%s(DLangPointer, \".format(methodInterfaceName);\n+                            }\n+                        } else {\n+                            if (isNothrow && is(returnType == void)) {\n+                                exp ~= \"            dlang_%s(ref this, \".format(methodInterfaceName);\n+                            } else {\n+                                exp ~= \"            var dlang_ret = dlang_%s(ref this, \".format(methodInterfaceName);\n+                            }\n+                        }\n+                        static foreach(pc; 0..paramNames.length) {\n+                            static if (is(paramTypes[pc] == string)) {\n+                                exp ~= \"SharedFunctions.CreateString(\" ~ paramNames[pc] ~ \"), \";\n+                            } else static if (is(paramTypes[pc] == wstring)) {\n+                                exp ~= \"SharedFunctions.CreateWString(\" ~ paramNames[pc] ~ \"), \";\n+                            } else static if (is(paramTypes[pc] == dstring)) {\n+                                exp ~= \"SharedFunctions.CreateDString(\" ~ paramNames[pc] ~ \"), \";\n+                            } else {\n+                                exp ~= paramNames[pc] ~ \", \";\n+                            }\n+                        }\n+                        exp = exp[0..$-2];\n+                        exp ~= \");\" ~ newline;\n+                        if (!is(returnType == void)) {\n+                            if (is(returnType == string)) {\n+                                exp ~= \"            return SharedFunctions.SliceToString(dlang_ret, DStringType._string);\" ~ newline;\n+                            } else if (is(returnType == wstring)) {\n+                                exp ~= \"            return SharedFunctions.SliceToString(dlang_ret, DStringType._wstring);\" ~ newline;\n+                            } else if (is(returnType == dstring)) {\n+                                exp ~= \"            return SharedFunctions.SliceToString(dlang_ret, DStringType._dstring);\" ~ newline;\n+                            } else {\n+                                exp ~= \"            return dlang_ret;\" ~ newline;\n+                            }\n+                        }\n+                        exp ~= \"        }\" ~ newline;\n+                    }\n+                    csagg.methods ~= exp;\n+                }\n+            }\n+\n+            bool isProperty = false;\n+            bool propertyGet = false;\n+            bool propertySet = false;\n+            foreach(mo; __traits(getOverloads, agg, m)) {\n+            static if (cast(bool)(functionAttributes!mo & FunctionAttribute.property)) {\n+                isProperty = true;\n+                alias returnType = ReturnType!mo;\n+                alias paramTypes = Parameters!mo;\n+                if (paramTypes.length == 0) {\n+                    propertyGet = true;\n+                } else {\n+                    propertySet = true;\n+                }\n+            }\n+            }\n+\n+            const olc = __traits(getOverloads, agg, m).length;\n+            static if(olc > 0) {\n+            if (isProperty) {\n+                string prop = string.init;\n+                alias propertyType = ReturnType!(__traits(getOverloads, agg, m)[0]);\n+                if (isArray!(propertyType)) {\n+                    prop = \"        public Range<\" ~ getCSharpInterfaceType(fullyQualifiedName!propertyType) ~ \"> \" ~ methodName ~ \" { \";\n+                } else {\n+                    prop = \"        public \" ~ getCSharpInterfaceType(fullyQualifiedName!propertyType) ~ \" \" ~ methodName ~ \" { \";\n+                }\n+                if (propertyGet) {\n+                    if (isArray!(propertyType)) {\n+                        prop ~= \"get => new Range<%3$s>(dlang_%1$s(%2$s)); \".format(methodInterfaceName, is(agg == class) ? \"DLangPointer\" : \"ref this\", getCSharpInterfaceType(fullyQualifiedName!propertyType));\n+                    } else if (is(propertyType == class)) {\n+                        prop ~= \"get => new %3$s(dlang_%1$s(%2$s)); \".format(methodInterfaceName, is(agg == class) ? \"DLangPointer\" : \"ref this\", getCSharpInterfaceType(fullyQualifiedName!propertyType));\n+                    } else {\n+                        prop ~= \"get => dlang_%1$s(%2$s); \".format(methodInterfaceName, is(agg == class) ? \"DLangPointer\" : \"ref this\");\n+                    }\n+                }\n+                if (propertySet) {\n+                    if (isArray!(propertyType)) {\n+                        prop ~= \"set => dlang_%1$s(%2$s, value.ToSlice()); \".format(methodInterfaceName, is(agg == class) ? \"DLangPointer\" : \"ref this\");\n+                    } else if (is(propertyType == class)) {\n+                        prop ~= \"set => dlang_%1$s(%2$s, value.DLangPointer); \".format(methodInterfaceName, is(agg == class) ? \"DLangPointer\" : \"ref this\");\n+                    } else {\n+                        prop ~= \"set => dlang_%1$s(%2$s, value); \".format(methodInterfaceName, is(agg == class) ? \"DLangPointer\" : \"ref this\");\n+                    }\n+                }\n+                prop ~= \"}\" ~ newline;\n+                csagg.properties ~= prop;\n+            }\n+            }\n+            }\n+        }\n+\n+        alias fieldTypes = Fields!agg;\n+        alias fieldNames = FieldNameTuple!agg;\n+        if (is(agg == class) || is(agg == interface)) {\n+            static foreach(fc; 0..fieldTypes.length) {\n+                static if (is(typeof(__traits(getMember, agg, fieldNames[fc])))) {\n+                    csagg.properties ~= \"        [DllImport(\\\"%s\\\", EntryPoint = \\\"%s\\\", CallingConvention = CallingConvention.Cdecl)]\".format(libraryName, getDLangInterfaceName(fqn, fieldNames[fc] ~ \"_get\")) ~ newline;\n+                    csagg.properties ~= \"        private static extern %s dlang_%s_get(IntPtr ptr);\".format(getDLangInterfaceType(fullyQualifiedName!(fieldTypes[fc])), fieldNames[fc]) ~ newline;\n+                    csagg.properties ~= \"        [DllImport(\\\"%s\\\", EntryPoint = \\\"%s\\\", CallingConvention = CallingConvention.Cdecl)]\".format(libraryName, getDLangInterfaceName(fqn, fieldNames[fc] ~ \"_set\")) ~ newline;\n+                    csagg.properties ~= \"        private static extern void dlang_%s_set(IntPtr ptr, %s value);\".format(fieldNames[fc], getDLangInterfaceType(fullyQualifiedName!(fieldTypes[fc]))) ~ newline;\n+                    if (is(fieldTypes[fc] == string)) {\n+                        csagg.properties ~= \"        public %2$s %3$s { get => SharedFunctions.SliceToString(dlang_%1$s_get(DLangPointer), DStringType._string); set => dlang_%1$s_set(DLangPointer, SharedFunctions.CreateString(value)); }\".format(fieldNames[fc], getCSharpInterfaceType(fullyQualifiedName!(fieldTypes[fc])), getCSharpName(fieldNames[fc])) ~ newline;\n+                    } else if (is(fieldTypes[fc] == wstring)) {\n+                        csagg.properties ~= \"        public %2$s %3$s { get => SharedFunctions.SliceToString(dlang_%1$s_get(DLangPointer), DStringType._wstring); set => dlang_%1$s_set(DLangPointer, SharedFunctions.CreateWString(value)); }\".format(fieldNames[fc], getCSharpInterfaceType(fullyQualifiedName!(fieldTypes[fc])), getCSharpName(fieldNames[fc])) ~ newline;\n+                    } else if (is(fieldTypes[fc] == dstring)) {\n+                        csagg.properties ~= \"        public %2$s %3$s { get => SharedFunctions.SliceToString(dlang_%1$s_get(DLangPointer), DStringType._dstring); set => dlang_%1$s_set(DLangPointer, SharedFunctions.CreateDString(value)); }\".format(fieldNames[fc], getCSharpInterfaceType(fullyQualifiedName!(fieldTypes[fc])), getCSharpName(fieldNames[fc])) ~ newline;\n+                    } else if (isArray!(fieldTypes[fc])) {\n+                        csagg.properties ~= \"        public Range<%2$s> %3$s { get => new Range<%2$s>(dlang_%1$s_get(DLangPointer)); set => dlang_%1$s_set(DLangPointer, value.ToSlice()); }\".format(fieldNames[fc], getCSharpInterfaceType(fullyQualifiedName!(fieldTypes[fc])), getCSharpName(fieldNames[fc])) ~ newline;\n+                    } else {\n+                        csagg.properties ~= \"        public %2$s %3$s { get => dlang_%1$s_get(DLangPointer); set => dlang_%1$s_set(DLangPointer, value); }\".format(fieldNames[fc], getCSharpInterfaceType(fullyQualifiedName!(fieldTypes[fc])), getCSharpName(fieldNames[fc])) ~ newline;\n+                    }\n+                }\n+            }\n+        } else if(is(agg == struct)) {\n+            static foreach(fc; 0..fieldTypes.length) {\n+                static if (is(typeof(__traits(getMember, agg, fieldNames[fc])))) {\n+                    if (is(fieldTypes[fc] == string) || is(fieldTypes[fc] == wstring) || is(fieldTypes[fc] == dstring)) {\n+                        csagg.properties ~= \"        private slice _\" ~ getCSharpName(fieldNames[fc]) ~ \";\" ~ newline;\n+                        if (is(fieldTypes[fc] == string)) {\n+                            csagg.properties ~= \"        public string %1$s { get => SharedFunctions.SliceToString(_%1$s, DStringType._%2$s); set => _%1$s = SharedFunctions.CreateString(value); }\".format(getCSharpName(fieldNames[fc]), fullyQualifiedName!(fieldTypes[fc])) ~ newline;\n+                        } else if (is(fieldTypes[fc] == wstring)) {\n+                            csagg.properties ~= \"        public string %1$s { get => SharedFunctions.SliceToString(_%1$s, DStringType._%2$s); set => _%1$s = SharedFunctions.CreateWstring(value); }\".format(getCSharpName(fieldNames[fc]), fullyQualifiedName!(fieldTypes[fc])) ~ newline;\n+                        } else if (is(fieldTypes[fc] == dstring)) {\n+                            csagg.properties ~= \"        public string %1$s { get => SharedFunctions.SliceToString(_%1$s, DStringType._%2$s); set => _%1$s = SharedFunctions.CreateDstring(value); }\".format(getCSharpName(fieldNames[fc]), fullyQualifiedName!(fieldTypes[fc])) ~ newline;\n+                        }\n+                    } else {\n+                        csagg.properties ~= \"        public \" ~ getDLangInterfaceType(fullyQualifiedName!(fieldTypes[fc])) ~ \" \" ~ getCSharpName(fieldNames[fc]) ~ \";\" ~ newline;\n+                    }\n+                }\n+            }\n+        }\n+    }\n+\n+    foreach(func; AllFunctions!Modules) {\n+        alias modName = func.moduleName;\n+        alias funcName = func.name;\n+        csharpNamespace ns = getNamespace(getCSharpName(modName));\n+\n+        alias returnType = ReturnType!(__traits(getMember, func.module_, func.name));\n+        alias returnTypeStr = fullyQualifiedName!(ReturnType!(__traits(getMember, func.module_, func.name)));\n+        alias paramTypes = Parameters!(__traits(getMember, func.module_, func.name));\n+        alias paramNames = ParameterIdentifierTuple!(__traits(getMember, func.module_, func.name));\n+        enum bool isNothrow = (functionAttributes!(__traits(getMember, func.module_, func.name)) & FunctionAttribute.nothrow_) == FunctionAttribute.nothrow_;\n+        const string interfaceName = getDLangInterfaceName(modName, null, funcName);\n+        const string methodName = getCSharpMethodInterfaceName(null, funcName);\n+        static if (is(returnType == class)) {\n+            string retType = getDLangReturnType(returnTypeStr, isNothrow, true);\n+        } else {\n+            string retType = getDLangReturnType(returnTypeStr, isNothrow, false);\n+        }\n+        string funcStr = \"        [DllImport(\\\"%s\\\", EntryPoint = \\\"%s\\\", CallingConvention = CallingConvention.Cdecl)]\".format(libraryName, interfaceName) ~ newline;\n+        if (returnTypeStr == boolTypeString && isNothrow) {\n+            funcStr ~= \"        [return: MarshalAs(UnmanagedType.Bool)]\";\n+        }\n+        funcStr ~= \"        private static extern %s dlang_%s(\".format(retType, methodName);\n+        static foreach(pc; 0..paramNames.length) {\n+            if (is(paramTypes[pc] == bool)) funcStr ~= \"[MarshalAs(UnmanagedType.Bool)]\";\n+            funcStr ~= getDLangInterfaceType(fullyQualifiedName!(paramTypes[pc])) ~ \" \" ~ paramNames[pc] ~ \", \";\n+        }\n+        if (paramNames.length > 0) {\n+            funcStr = funcStr[0..$-2];\n+        }\n+        funcStr ~= \");\" ~ newline;\n+        if (is(returnType == string) || is(returnType == wstring) || is(returnType == dstring)) {\n+            funcStr ~= \"        public static string %s(\".format(methodName);\n+        } else if (isArray!(returnType)) {\n+            funcStr ~= \"        public static Range<%s> %s(\".format(getCSharpInterfaceType(returnTypeStr), methodName);\n+        } else {\n+            funcStr ~= \"        public static %s %s(\".format(getCSharpInterfaceType(returnTypeStr), methodName);\n+        }\n+        static foreach(pc; 0..paramNames.length) {\n+            if (is(paramTypes[pc] == string) || is(paramTypes[pc] == wstring) || is(paramTypes[pc] == dstring)) {\n+                funcStr ~= getCSharpInterfaceType(fullyQualifiedName!(paramTypes[pc])) ~ \" \" ~ paramNames[pc] ~ \", \";\n+            } else if (isArray!(paramTypes[pc])) {\n+                funcStr ~= \"Range<\" ~ getCSharpInterfaceType(fullyQualifiedName!(paramTypes[pc])) ~ \"> \" ~ paramNames[pc] ~ \", \";\n+            } else {\n+                funcStr ~= getCSharpInterfaceType(fullyQualifiedName!(paramTypes[pc])) ~ \" \" ~ paramNames[pc] ~ \", \";\n+            }\n+        }\n+        if (paramNames.length > 0) {\n+            funcStr = funcStr[0..$-2];\n+        }\n+        funcStr ~= \") {\" ~ newline;\n+        if (isNothrow && is(returnType == void)) {\n+            funcStr ~= \"            dlang_%s(\".format(methodName);\n+        } else { \n+            funcStr ~= \"            var dlang_ret = dlang_%s(\".format(methodName);\n+        }\n+        static foreach(pc; 0..paramNames.length) {\n+            if (is(paramTypes[pc] == string)) {\n+                funcStr ~= \"SharedFunctions.CreateString(\" ~ paramNames[pc] ~ \"), \";\n+            } else if (is(paramTypes[pc] == wstring)) {\n+                funcStr ~= \"SharedFunctions.CreateWString(\" ~ paramNames[pc] ~ \"), \";\n+            } else if (is(paramTypes[pc] == dstring)) {\n+                funcStr ~= \"SharedFunctions.CreateDString(\" ~ paramNames[pc] ~ \"), \";\n+            } else if (isArray!(paramTypes[pc])) {\n+                funcStr ~= paramNames[pc] ~ \".ToSlice(), \";\n+            } else {\n+                funcStr ~= paramNames[pc] ~ \", \";\n+            }\n+        }\n+        if (paramNames.length > 0) {\n+            funcStr = funcStr[0..$-2];\n+        }\n+        funcStr ~= \");\" ~ newline;\n+        if (is(returnType == void)) {\n+            funcStr ~= \"            dlang_ret.EnsureValid();\" ~ newline;\n+        } else {\n+            if (is(returnType == string)) {\n+                funcStr ~= \"            return SharedFunctions.SliceToString(dlang_ret, DStringType._string);\" ~ newline;\n+            } else if (is(returnType == wstring)) {\n+                funcStr ~= \"            return SharedFunctions.SliceToString(dlang_ret, DStringType._wstring);\" ~ newline;\n+            } else if (is(returnType == dstring)) {\n+                funcStr ~= \"            return SharedFunctions.SliceToString(dlang_ret, DStringType._dstring);\" ~ newline;\n+            } else if (isArray!(returnType)) {\n+                funcStr ~= \"            return new Range<%s>(dlang_ret);\".format(getCSharpInterfaceType(returnTypeStr)) ~ newline;\n+            } else {\n+                funcStr ~= \"            return dlang_ret;\" ~ newline;\n+            }\n+        }\n+        funcStr ~= \"        }\" ~ newline;\n+        ns.functions ~= funcStr;\n+    }\n+\n+    char[] ret;\n+    ret.reserve(33_554_432);","path":"csharp/source/autowrap/csharp/csharp.d","position":608,"original_position":608,"commit_id":"6af2b50e6be07e540c6f9a68c9a08b3179fa9439","original_commit_id":"6af2b50e6be07e540c6f9a68c9a08b3179fa9439","user":{"login":"atilaneves","id":4956425,"node_id":"MDQ6VXNlcjQ5NTY0MjU=","avatar_url":"https://avatars3.githubusercontent.com/u/4956425?v=4","gravatar_id":"","url":"https://api.github.com/users/atilaneves","html_url":"https://github.com/atilaneves","followers_url":"https://api.github.com/users/atilaneves/followers","following_url":"https://api.github.com/users/atilaneves/following{/other_user}","gists_url":"https://api.github.com/users/atilaneves/gists{/gist_id}","starred_url":"https://api.github.com/users/atilaneves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atilaneves/subscriptions","organizations_url":"https://api.github.com/users/atilaneves/orgs","repos_url":"https://api.github.com/users/atilaneves/repos","events_url":"https://api.github.com/users/atilaneves/events{/privacy}","received_events_url":"https://api.github.com/users/atilaneves/received_events","type":"User","site_admin":false},"body":"Magic number.","created_at":"2018-11-13T14:49:40Z","updated_at":"2018-11-13T14:58:01Z","html_url":"https://github.com/kaleidicassociates/autowrap/pull/20#discussion_r233067420","pull_request_url":"https://api.github.com/repos/kaleidicassociates/autowrap/pulls/20","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/kaleidicassociates/autowrap/pulls/comments/233067420"},"html":{"href":"https://github.com/kaleidicassociates/autowrap/pull/20#discussion_r233067420"},"pull_request":{"href":"https://api.github.com/repos/kaleidicassociates/autowrap/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/kaleidicassociates/autowrap/pulls/20","id":230462747,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwNDYyNzQ3","html_url":"https://github.com/kaleidicassociates/autowrap/pull/20","diff_url":"https://github.com/kaleidicassociates/autowrap/pull/20.diff","patch_url":"https://github.com/kaleidicassociates/autowrap/pull/20.patch","issue_url":"https://api.github.com/repos/kaleidicassociates/autowrap/issues/20","number":20,"state":"open","locked":false,"title":"Add Initial C# Support","user":{"login":"LightBender","id":1262302,"node_id":"MDQ6VXNlcjEyNjIzMDI=","avatar_url":"https://avatars0.githubusercontent.com/u/1262302?v=4","gravatar_id":"","url":"https://api.github.com/users/LightBender","html_url":"https://github.com/LightBender","followers_url":"https://api.github.com/users/LightBender/followers","following_url":"https://api.github.com/users/LightBender/following{/other_user}","gists_url":"https://api.github.com/users/LightBender/gists{/gist_id}","starred_url":"https://api.github.com/users/LightBender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LightBender/subscriptions","organizations_url":"https://api.github.com/users/LightBender/orgs","repos_url":"https://api.github.com/users/LightBender/repos","events_url":"https://api.github.com/users/LightBender/events{/privacy}","received_events_url":"https://api.github.com/users/LightBender/received_events","type":"User","site_admin":false},"body":"This PR adds support for C# wrapper code-generation of the following:\r\nFunctions\r\nStructs\r\nClasses\r\nInitial Range Support","created_at":"2018-11-13T12:47:50Z","updated_at":"2018-11-13T14:58:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0e51a17f51145869d298ae49210f9a8a4d9d153f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kaleidicassociates/autowrap/pulls/20/commits","review_comments_url":"https://api.github.com/repos/kaleidicassociates/autowrap/pulls/20/comments","review_comment_url":"https://api.github.com/repos/kaleidicassociates/autowrap/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kaleidicassociates/autowrap/issues/20/comments","statuses_url":"https://api.github.com/repos/kaleidicassociates/autowrap/statuses/6af2b50e6be07e540c6f9a68c9a08b3179fa9439","head":{"label":"LightBender:csharp","ref":"csharp","sha":"6af2b50e6be07e540c6f9a68c9a08b3179fa9439","user":{"login":"LightBender","id":1262302,"node_id":"MDQ6VXNlcjEyNjIzMDI=","avatar_url":"https://avatars0.githubusercontent.com/u/1262302?v=4","gravatar_id":"","url":"https://api.github.com/users/LightBender","html_url":"https://github.com/LightBender","followers_url":"https://api.github.com/users/LightBender/followers","following_url":"https://api.github.com/users/LightBender/following{/other_user}","gists_url":"https://api.github.com/users/LightBender/gists{/gist_id}","starred_url":"https://api.github.com/users/LightBender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LightBender/subscriptions","organizations_url":"https://api.github.com/users/LightBender/orgs","repos_url":"https://api.github.com/users/LightBender/repos","events_url":"https://api.github.com/users/LightBender/events{/privacy}","received_events_url":"https://api.github.com/users/LightBender/received_events","type":"User","site_admin":false},"repo":{"id":145404499,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU0MDQ0OTk=","name":"autowrap","full_name":"LightBender/autowrap","private":false,"owner":{"login":"LightBender","id":1262302,"node_id":"MDQ6VXNlcjEyNjIzMDI=","avatar_url":"https://avatars0.githubusercontent.com/u/1262302?v=4","gravatar_id":"","url":"https://api.github.com/users/LightBender","html_url":"https://github.com/LightBender","followers_url":"https://api.github.com/users/LightBender/followers","following_url":"https://api.github.com/users/LightBender/following{/other_user}","gists_url":"https://api.github.com/users/LightBender/gists{/gist_id}","starred_url":"https://api.github.com/users/LightBender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LightBender/subscriptions","organizations_url":"https://api.github.com/users/LightBender/orgs","repos_url":"https://api.github.com/users/LightBender/repos","events_url":"https://api.github.com/users/LightBender/events{/privacy}","received_events_url":"https://api.github.com/users/LightBender/received_events","type":"User","site_admin":false},"html_url":"https://github.com/LightBender/autowrap","description":"Wrap existing D code for use in other environments such as Python and Excel","fork":true,"url":"https://api.github.com/repos/LightBender/autowrap","forks_url":"https://api.github.com/repos/LightBender/autowrap/forks","keys_url":"https://api.github.com/repos/LightBender/autowrap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LightBender/autowrap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LightBender/autowrap/teams","hooks_url":"https://api.github.com/repos/LightBender/autowrap/hooks","issue_events_url":"https://api.github.com/repos/LightBender/autowrap/issues/events{/number}","events_url":"https://api.github.com/repos/LightBender/autowrap/events","assignees_url":"https://api.github.com/repos/LightBender/autowrap/assignees{/user}","branches_url":"https://api.github.com/repos/LightBender/autowrap/branches{/branch}","tags_url":"https://api.github.com/repos/LightBender/autowrap/tags","blobs_url":"https://api.github.com/repos/LightBender/autowrap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LightBender/autowrap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LightBender/autowrap/git/refs{/sha}","trees_url":"https://api.github.com/repos/LightBender/autowrap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LightBender/autowrap/statuses/{sha}","languages_url":"https://api.github.com/repos/LightBender/autowrap/languages","stargazers_url":"https://api.github.com/repos/LightBender/autowrap/stargazers","contributors_url":"https://api.github.com/repos/LightBender/autowrap/contributors","subscribers_url":"https://api.github.com/repos/LightBender/autowrap/subscribers","subscription_url":"https://api.github.com/repos/LightBender/autowrap/subscription","commits_url":"https://api.github.com/repos/LightBender/autowrap/commits{/sha}","git_commits_url":"https://api.github.com/repos/LightBender/autowrap/git/commits{/sha}","comments_url":"https://api.github.com/repos/LightBender/autowrap/comments{/number}","issue_comment_url":"https://api.github.com/repos/LightBender/autowrap/issues/comments{/number}","contents_url":"https://api.github.com/repos/LightBender/autowrap/contents/{+path}","compare_url":"https://api.github.com/repos/LightBender/autowrap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LightBender/autowrap/merges","archive_url":"https://api.github.com/repos/LightBender/autowrap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LightBender/autowrap/downloads","issues_url":"https://api.github.com/repos/LightBender/autowrap/issues{/number}","pulls_url":"https://api.github.com/repos/LightBender/autowrap/pulls{/number}","milestones_url":"https://api.github.com/repos/LightBender/autowrap/milestones{/number}","notifications_url":"https://api.github.com/repos/LightBender/autowrap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LightBender/autowrap/labels{/name}","releases_url":"https://api.github.com/repos/LightBender/autowrap/releases{/id}","deployments_url":"https://api.github.com/repos/LightBender/autowrap/deployments","created_at":"2018-08-20T10:45:37Z","updated_at":"2018-08-23T20:49:22Z","pushed_at":"2018-11-13T12:36:39Z","git_url":"git://github.com/LightBender/autowrap.git","ssh_url":"git@github.com:LightBender/autowrap.git","clone_url":"https://github.com/LightBender/autowrap.git","svn_url":"https://github.com/LightBender/autowrap","homepage":null,"size":828,"stargazers_count":0,"watchers_count":0,"language":"D","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kaleidicassociates:master","ref":"master","sha":"25c308624f1d1403a7938909fe7dae850526b493","user":{"login":"kaleidicassociates","id":15332810,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MzMyODEw","avatar_url":"https://avatars0.githubusercontent.com/u/15332810?v=4","gravatar_id":"","url":"https://api.github.com/users/kaleidicassociates","html_url":"https://github.com/kaleidicassociates","followers_url":"https://api.github.com/users/kaleidicassociates/followers","following_url":"https://api.github.com/users/kaleidicassociates/following{/other_user}","gists_url":"https://api.github.com/users/kaleidicassociates/gists{/gist_id}","starred_url":"https://api.github.com/users/kaleidicassociates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaleidicassociates/subscriptions","organizations_url":"https://api.github.com/users/kaleidicassociates/orgs","repos_url":"https://api.github.com/users/kaleidicassociates/repos","events_url":"https://api.github.com/users/kaleidicassociates/events{/privacy}","received_events_url":"https://api.github.com/users/kaleidicassociates/received_events","type":"Organization","site_admin":false},"repo":{"id":130044944,"node_id":"MDEwOlJlcG9zaXRvcnkxMzAwNDQ5NDQ=","name":"autowrap","full_name":"kaleidicassociates/autowrap","private":false,"owner":{"login":"kaleidicassociates","id":15332810,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MzMyODEw","avatar_url":"https://avatars0.githubusercontent.com/u/15332810?v=4","gravatar_id":"","url":"https://api.github.com/users/kaleidicassociates","html_url":"https://github.com/kaleidicassociates","followers_url":"https://api.github.com/users/kaleidicassociates/followers","following_url":"https://api.github.com/users/kaleidicassociates/following{/other_user}","gists_url":"https://api.github.com/users/kaleidicassociates/gists{/gist_id}","starred_url":"https://api.github.com/users/kaleidicassociates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaleidicassociates/subscriptions","organizations_url":"https://api.github.com/users/kaleidicassociates/orgs","repos_url":"https://api.github.com/users/kaleidicassociates/repos","events_url":"https://api.github.com/users/kaleidicassociates/events{/privacy}","received_events_url":"https://api.github.com/users/kaleidicassociates/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/kaleidicassociates/autowrap","description":"Wrap existing D code for use in other environments such as Python and Excel","fork":false,"url":"https://api.github.com/repos/kaleidicassociates/autowrap","forks_url":"https://api.github.com/repos/kaleidicassociates/autowrap/forks","keys_url":"https://api.github.com/repos/kaleidicassociates/autowrap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaleidicassociates/autowrap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaleidicassociates/autowrap/teams","hooks_url":"https://api.github.com/repos/kaleidicassociates/autowrap/hooks","issue_events_url":"https://api.github.com/repos/kaleidicassociates/autowrap/issues/events{/number}","events_url":"https://api.github.com/repos/kaleidicassociates/autowrap/events","assignees_url":"https://api.github.com/repos/kaleidicassociates/autowrap/assignees{/user}","branches_url":"https://api.github.com/repos/kaleidicassociates/autowrap/branches{/branch}","tags_url":"https://api.github.com/repos/kaleidicassociates/autowrap/tags","blobs_url":"https://api.github.com/repos/kaleidicassociates/autowrap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaleidicassociates/autowrap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaleidicassociates/autowrap/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaleidicassociates/autowrap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaleidicassociates/autowrap/statuses/{sha}","languages_url":"https://api.github.com/repos/kaleidicassociates/autowrap/languages","stargazers_url":"https://api.github.com/repos/kaleidicassociates/autowrap/stargazers","contributors_url":"https://api.github.com/repos/kaleidicassociates/autowrap/contributors","subscribers_url":"https://api.github.com/repos/kaleidicassociates/autowrap/subscribers","subscription_url":"https://api.github.com/repos/kaleidicassociates/autowrap/subscription","commits_url":"https://api.github.com/repos/kaleidicassociates/autowrap/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaleidicassociates/autowrap/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaleidicassociates/autowrap/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaleidicassociates/autowrap/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaleidicassociates/autowrap/contents/{+path}","compare_url":"https://api.github.com/repos/kaleidicassociates/autowrap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaleidicassociates/autowrap/merges","archive_url":"https://api.github.com/repos/kaleidicassociates/autowrap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaleidicassociates/autowrap/downloads","issues_url":"https://api.github.com/repos/kaleidicassociates/autowrap/issues{/number}","pulls_url":"https://api.github.com/repos/kaleidicassociates/autowrap/pulls{/number}","milestones_url":"https://api.github.com/repos/kaleidicassociates/autowrap/milestones{/number}","notifications_url":"https://api.github.com/repos/kaleidicassociates/autowrap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaleidicassociates/autowrap/labels{/name}","releases_url":"https://api.github.com/repos/kaleidicassociates/autowrap/releases{/id}","deployments_url":"https://api.github.com/repos/kaleidicassociates/autowrap/deployments","created_at":"2018-04-18T10:21:11Z","updated_at":"2018-11-01T11:13:43Z","pushed_at":"2018-11-13T12:47:51Z","git_url":"git://github.com/kaleidicassociates/autowrap.git","ssh_url":"git@github.com:kaleidicassociates/autowrap.git","clone_url":"https://github.com/kaleidicassociates/autowrap.git","svn_url":"https://github.com/kaleidicassociates/autowrap","homepage":null,"size":544,"stargazers_count":13,"watchers_count":13,"language":"D","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":4,"open_issues":4,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kaleidicassociates/autowrap/pulls/20"},"html":{"href":"https://github.com/kaleidicassociates/autowrap/pull/20"},"issue":{"href":"https://api.github.com/repos/kaleidicassociates/autowrap/issues/20"},"comments":{"href":"https://api.github.com/repos/kaleidicassociates/autowrap/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/kaleidicassociates/autowrap/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/kaleidicassociates/autowrap/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kaleidicassociates/autowrap/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/kaleidicassociates/autowrap/statuses/6af2b50e6be07e540c6f9a68c9a08b3179fa9439"}},"author_association":"NONE"}}
{"actor":{"display_login":"atilaneves"}}