Click or drag to resize

AnalyzerReference Class



Represents an analyzer assembly reference that contains diagnostic analyzers.
Inheritance Hierarchy

Namespace:  Microsoft.CodeAnalysis.Diagnostics
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public abstract class AnalyzerReference

The AnalyzerReference type exposes the following members.

Constructors
  NameDescription
Protected methodAnalyzerReference
Initializes a new instance of the AnalyzerReference class
Top
Properties
  NameDescription
Public propertyDisplay
Path or name used in error messages to identity the reference.
Public propertyFullPath
Full path describing the location of the analyzer reference, or null if the reference has no location.
Public propertyId
A unique identifier for this analyzer reference.
Top
Methods
  NameDescription
Public methodGetAnalyzers
Gets all the diagnostic analyzers defined in this assembly reference for the given language.
Public methodGetAnalyzersForAllLanguages
Gets all the diagnostic analyzers defined in this assembly reference, irrespective of the language supported by the analyzer. Use this method only if you need all the analyzers defined in the assembly, without a language context. In most instances, either the analyzer reference is associated with a project or is being queried for analyzers in a particular language context. If so, use GetAnalyzers(String) method.
Top
Remarks
Represents a logical location of the analyzer reference, not the content of the reference. The content might change in time. A snapshot is taken when the compiler queries the reference for its analyzers.
See Also