INNER CODE UNIT · C#

retained

axmolengine/axmol · tools/bindings-generator/src/BindingGenerator.cs:897

                var retained = current.Methods.Where(method =>
                {
                    if (!redundant[MethodIdentity(method)])
                        return true;
                    // A derived Lua overload group may contain a new overload
                    // alongside a C++ override. Keep the whole group in that
                    // case: shadowing the base group would otherwise make the
                    // inherited overload unreachable.
                    return methodGroups[method.LuaName].Any(other =>
                        !string.Equals(MethodIdentity(other), MethodIdentity(method), StringComparison.Ordinal) &&
                        !redundant[MethodIdentity(other)]);
                }).ToArray();
                if (retained.Length == current.Methods.Count)
                    continue;

                resolved[current.QualifiedName] = new BindingClass
                {
                    NativeName = current.NativeName,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…