INNER CODE UNIT · C#

MethodIdentity

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

    private static string MethodIdentity(BindingMethod method) =>
        method.NativeName + "(" + string.Join(",", method.ParameterTypes) + ")" +
        (method.IsConst ? " const" : string.Empty) + "|" + method.LuaName;

    private static bool IsUsableConstructor(CXCursor cursor) =>
        !IsDeprecated(cursor) &&
        cursor.CXXAccessSpecifier == CX_CXXAccessSpecifier.CX_CXXPublic &&
        clang.CXXMethod_isDeleted(cursor) == 0 &&
        clang.CXXConstructor_isCopyConstructor(cursor) == 0 &&
        clang.CXXConstructor_isMoveConstructor(cursor) == 0 &&
        clang.Cursor_isVariadic(cursor) == 0;

    private static bool IsUsableMethod(CXCursor cursor) =>
        !IsDeprecated(cursor) &&
        cursor.CXXAccessSpecifier == CX_CXXAccessSpecifier.CX_CXXPublic &&
        clang.CXXMethod_isDeleted(cursor) == 0 &&
        clang.Cursor_isVariadic(cursor) == 0 &&
        !Regex.IsMatch(GetCursorText(cursor), @"^\s*\[\[\s*internal\s*\]\]", RegexOptions.CultureInvariant);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…