Exemple #1
0
        /// <summary>
        /// The HandleIndexDeclaration
        /// </summary>
        /// <param name="client_data">The client_data<see cref="IntPtr"/></param>
        /// <param name="declInfo">The declInfo<see cref="IntPtr"/></param>
        private unsafe void HandleIndexDeclaration(IntPtr client_data, IntPtr declInfo)
        {
            GCHandle       paramGCHandle  = GCHandle.FromIntPtr(client_data);
            object         param          = paramGCHandle.Target;
            CXIdxDeclInfo *pIndexDeclInfo = (CXIdxDeclInfo *)declInfo;
            IndexDeclInfo  indexDeclInfo  = new IndexDeclInfo(*pIndexDeclInfo);

            this._indexActionEventHandler?.OnIndexDeclaration(indexDeclInfo, param);
        }
 public static extern CXIdxCXXClassDeclInfo *clang_index_getCXXClassDeclInfo(
     CXIdxDeclInfo *arg1);
 public static extern CXIdxObjCPropertyDeclInfo *clang_index_getObjCPropertyDeclInfo(
     CXIdxDeclInfo *arg1);
 public static extern CXIdxObjCProtocolRefListInfo *clang_index_getObjCProtocolRefListInfo(
     CXIdxDeclInfo *arg1);
 public static extern CXIdxObjCCategoryDeclInfo *clang_index_getObjCCategoryDeclInfo(
     CXIdxDeclInfo *arg1);
 public static extern CXIdxObjCInterfaceDeclInfo *clang_index_getObjCInterfaceDeclInfo(
     CXIdxDeclInfo *arg1);
 public static extern CXIdxObjCContainerDeclInfo *clang_index_getObjCContainerDeclInfo(
     CXIdxDeclInfo *arg1);