INNER CODE UNIT · C#
IsDefinition
axmolengine/axmol · tools/bindings-generator/src/BindingGenerator.cs:607
private static bool IsDefinition(CXCursor cursor) =>
!cursor.IsNull && clang.isCursorDefinition(cursor) != 0;
private static bool IsSelected(CXCursor cursor, GenerationRequest request)
{
if (cursor.IsNull || cursor.IsAnonymous || string.IsNullOrWhiteSpace(cursor.Spelling.CString))
return false;
// Keep the generated Lua surface aligned with the legacy tolua
// bindings: declarations marked deprecated are not script APIs. Do
// this at the AST selection boundary so the rule applies equally to
// direct and nested classes, regardless of the module configuration.
if (IsDeprecated(cursor))
return false;
if (cursor.CXXAccessSpecifier is CX_CXXAccessSpecifier.CX_CXXProtected or
CX_CXXAccessSpecifier.CX_CXXPrivate)
return false;