Esempio n. 1
0
 /// <summary>
 /// The GetPlatformAvailibility
 /// </summary>
 /// <returns>The <see cref="PlatformAvailibilityList"/></returns>
 public unsafe ClangList <PlatformAvailibility> GetPlatformAvailibility()
 {
     if (this.platformAvailibility == null)
     {
         int      always_deprecated;
         CXString deprecated_message;
         int      always_unavailable;
         CXString unavailable_message;
         CXPlatformAvailability *pAvailability;
         int availability_size = clang.clang_getCursorPlatformAvailability(this.m_value,
                                                                           out always_deprecated,
                                                                           out deprecated_message,
                                                                           out always_unavailable,
                                                                           out unavailable_message,
                                                                           out pAvailability,
                                                                           0);
         int length = clang.clang_getCursorPlatformAvailability(this.m_value,
                                                                out always_deprecated,
                                                                out deprecated_message,
                                                                out always_unavailable,
                                                                out unavailable_message,
                                                                out pAvailability,
                                                                availability_size);
         this.platformAvailibility = new PlatformAvailibilityList(pAvailability, length);
     }
     return(this.platformAvailibility);
 }
Esempio n. 2
0
 /// <summary>
 /// The GetPlatformAvailibility
 /// </summary>
 /// <param name="alwaysDeprecated">The alwaysDeprecated<see cref="bool"/></param>
 /// <param name="deprecatedMessage">The deprecatedMessage<see cref="string"/></param>
 /// <param name="alwaysUnavailable">The alwaysUnavailable<see cref="bool"/></param>
 /// <param name="unavailableMessage">The unavailableMessage<see cref="string"/></param>
 /// <returns>The <see cref="PlatformAvailibilityList[]"/></returns>
 public unsafe ClangList <PlatformAvailibility> GetPlatformAvailibility(out bool alwaysDeprecated,
                                                                        out string deprecatedMessage, out bool alwaysUnavailable, out string unavailableMessage)
 {
     alwaysDeprecated   = false;
     deprecatedMessage  = null;
     alwaysUnavailable  = false;
     unavailableMessage = null;
     if (this.platformAvailibility == null)
     {
         int      always_deprecated;
         CXString deprecated_message;
         int      always_unavailable;
         CXString unavailable_message;
         CXPlatformAvailability *pAvailability;
         int availability_size = clang.clang_getCursorPlatformAvailability(this.m_value,
                                                                           out always_deprecated,
                                                                           out deprecated_message,
                                                                           out always_unavailable,
                                                                           out unavailable_message,
                                                                           out pAvailability,
                                                                           0);
         int length = clang.clang_getCursorPlatformAvailability(this.m_value,
                                                                out always_deprecated,
                                                                out deprecated_message,
                                                                out always_unavailable,
                                                                out unavailable_message,
                                                                out pAvailability,
                                                                availability_size);
         alwaysDeprecated          = always_deprecated > 0;
         deprecatedMessage         = deprecated_message.ToStringAndDispose();
         alwaysUnavailable         = always_unavailable > 0;
         unavailableMessage        = unavailable_message.ToStringAndDispose();
         this.platformAvailibility = new PlatformAvailibilityList(pAvailability, length);
     }
     return(this.platformAvailibility);
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref=""/> class.
 /// </summary>
 /// <param name="clangList">The clangObjectList<see cref="ClangList{TItem}"/></param>
 internal Enumerable(ClangList <TItem> clangList)
 {
     this.clangObjectList = clangList;
     this.index           = -1;
 }