Partager via


AnalyzerFileReference Class

Definition

Represents analyzers stored in an analyzer assembly file.

public ref class AnalyzerFileReference sealed : Microsoft::CodeAnalysis::Diagnostics::AnalyzerReference, IEquatable<Microsoft::CodeAnalysis::Diagnostics::AnalyzerReference ^>
public sealed class AnalyzerFileReference : Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference, IEquatable<Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference>
type AnalyzerFileReference = class
    inherit AnalyzerReference
    interface IEquatable<AnalyzerReference>
Public NotInheritable Class AnalyzerFileReference
Inherits AnalyzerReference
Implements IEquatable(Of AnalyzerReference)
Inheritance
AnalyzerFileReference
Implements

Remarks

Analyzer are read from the file, owned by the reference, and doesn't change since the reference is accessed until the reference object is garbage collected.

If you need to manage the lifetime of the analyzer reference (and the file stream) explicitly use AnalyzerImageReference.

Constructors

AnalyzerFileReference(String, IAnalyzerAssemblyLoader)

Creates an AnalyzerFileReference with the given fullPath and assemblyLoader.

Properties

AssemblyLoader
Display
FullPath
Id

Methods

Equals(AnalyzerFileReference)
Equals(AnalyzerReference)
Equals(Object)
GetAnalyzers(String)
GetAnalyzersForAllLanguages()
GetAssembly()
GetGenerators()
GetGenerators()
Obsolete.

Gets all the source generators defined in this assembly reference.

(Inherited from AnalyzerReference)
GetGenerators(String)
GetGenerators(String)

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

(Inherited from AnalyzerReference)
GetGeneratorsForAllLanguages()
GetGeneratorsForAllLanguages()

Gets all the source generators defined in this assembly reference.

(Inherited from AnalyzerReference)
GetHashCode()

Events

AnalyzerLoadFailed

Applies to