method-source-code" id="diagnostic-source">
            <pre>VALUE
c_CodeCompleteResults_get_diagnostic(VALUE self, VALUE index)
{
    CodeCompleteResults_t *c;
    Data_Get_Struct(self, CodeCompleteResults_t, c);

    VALUE diagnostic;
    Diagnostic_t *d;
    R_GET_CLASS_DATA(&quot;Clangc&quot;, Diagnostic, diagnostic, d);

    d-&gt;data = clang_codeCompleteGetDiagnostic(c-&gt;data, NUM2UINT(index));
    d-&gt;parent = c-&gt;parent;

    return diagnostic;
}</pre>
          </div>
          
        </di