Delen via


AnalyzerReference Class

Definition

Represents an analyzer assembly reference that contains diagnostic analyzers.

public ref class AnalyzerReference abstract
public abstract class AnalyzerReference
type AnalyzerReference = class
Public MustInherit Class AnalyzerReference
Inheritance
AnalyzerReference
Derived

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.

Constructors

AnalyzerReference()

Properties

Display

Path or name used in error messages to identity the reference.

FullPath

Full path describing the location of the analyzer reference, or null if the reference has no location.

Id

A unique identifier for this analyzer reference.

Methods

GetAnalyzers(String)

Gets all the diagnostic analyzers defined in this assembly reference for the given language.

GetAnalyzersForAllLanguages()

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.

GetGenerators()
Obsolete.

Gets all the source generators defined in this assembly reference.

GetGenerators(String)

Gets all the generators defined in this assembly reference for the given language.

GetGeneratorsForAllLanguages()

Gets all the source generators defined in this assembly reference.

Applies to