CodeQL library for C#
codeql/csharp-all 3.1.2-dev (changelog, source)
Search

Class Diagnostic

A diagnostic emitted by a compilation, such as a compilation warning or an error.

Import path

import semmle.code.csharp.commons.Diagnostics

Direct supertypes

Known direct subtypes

Fields

Predicates

getCompilation

Gets the compilation that generated this diagnostic.

getElement

Gets the element associated with this diagnostic, if any.

getFullMessage

Gets the full error message of this diagnostic.

getLocation

Gets the location of this diagnostic.

getMessage

Gets the short error message of this diagnostic.

getSeverity

Gets the severity of this diagnostic. 0 = Hidden 1 = Info 2 = Warning 3 = Error

getSeverityText

Gets a string representation of the severity of this diagnostic.

getTag

Gets the identifier of this diagnostic, for example “CS8019”.

toString

Gets a textual representation of this diagnostic.

Charpred