INNER CODE UNIT · C#

baseRecord

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

            var baseRecord = tree.Records.FirstOrDefault(x =>
                IsDefinition(x) && string.Equals(GetQualifiedName(x), baseName, StringComparison.Ordinal));
            if (baseRecord.IsNull)
                continue;

            var baseNativeName = baseRecord.Spelling.CString;
            var baseMethods = GetChildren(tree, baseRecord)
                .Where(x => x.Kind == CXCursorKind.CXCursor_CXXMethod)
                .Where(x => importedNames.Contains(x.Spelling.CString))
                .Where(IsUsableMethod)
                .Where(x => IsSupportedSignature(x, tree))
                .Where(x => !x.Spelling.CString.StartsWith("operator", StringComparison.Ordinal))
                .Where(x => !IsSkipped(baseNativeName, x.Spelling.CString, request))
                .Select(x => ToBindingMethod(x, tree, baseNativeName, baseName, request));
            directMethods.AddRange(baseMethods);
        }

        var methods = directMethods

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…