7 instantiations of AnalyzerFileReference
CodeStyleConfigFileGenerator (1)
Program.cs (1)
55var analyzerFileReference = new AnalyzerFileReference(assembly, AnalyzerAssemblyLoader.Instance);
dotnet-format (1)
Analyzers\CodeStyleInformationProvider.cs (1)
34.Select(path => new AnalyzerFileReference(path, analyzerAssemblyLoader));
GenerateDocumentationAndConfigFiles (1)
Program.cs (1)
281var analyzerFileReference = new AnalyzerFileReference(path, AnalyzerAssemblyLoader.Instance);
Microsoft.CodeAnalysis (1)
CommandLine\CommandLineArguments.cs (1)
586return new AnalyzerFileReference(resolvedPath, analyzerLoader);
Microsoft.CodeAnalysis.Workspaces (3)
Serialization\SerializerService_Reference.cs (1)
188return new AnalyzerFileReference(filePath, _analyzerLoaderProvider.SharedShadowCopyLoader);
Workspace\IsolatedAnalyzerReferenceSet.Core.cs (1)
166? new IsolatedAnalyzerFileReference(this, new AnalyzerFileReference(fullPath, _shadowCopyLoader))
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
797initialReferenceList.Add(new AnalyzerFileReference(analyzer, sharedShadowCopyLoader));
44 references to AnalyzerFileReference
CodeStyleConfigFileGenerator (1)
Program.cs (1)
55var analyzerFileReference = new AnalyzerFileReference(assembly, AnalyzerAssemblyLoader.Instance);
dotnet-format (1)
Analyzers\AnalyzerReferenceInformationProvider.cs (1)
58if (analyzerReference is AnalyzerFileReference analyzerFileReference)
GenerateDocumentationAndConfigFiles (3)
CodeFixerExtensions.cs (2)
21/// Get all the <see cref="CodeFixProvider"/>s that are implemented in the given <see cref="AnalyzerFileReference"/> 24public static ImmutableArray<CodeFixProvider> GetFixers(this AnalyzerFileReference analyzerFileReference)
Program.cs (1)
281var analyzerFileReference = new AnalyzerFileReference(path, AnalyzerAssemblyLoader.Instance);
Microsoft.CodeAnalysis (16)
CommandLine\CommandLineArguments.cs (9)
471/// <returns>Yields resolved <see cref="AnalyzerFileReference"/> or <see cref="UnresolvedAnalyzerReference"/>.</returns> 496var analyzerReference = o as AnalyzerFileReference; 514diagnostic = new DiagnosticInfo(messageProvider, messageProvider.WRN_AnalyzerReferencesNewerCompiler, analyzerReference.FullPath, e.ReferencedCompilerVersion!.ToString(), typeof(AnalyzerFileReference).Assembly.GetName().Version!.ToString()); 530var resolvedReferencesSet = PooledHashSet<AnalyzerFileReference>.GetInstance(); 531var resolvedReferencesList = ArrayBuilder<AnalyzerFileReference>.GetInstance(); 534var resolvedReference = ResolveAnalyzerReference(reference, analyzerLoader); 558foreach (var resolvedReference in resolvedReferencesList) 576private AnalyzerFileReference? ResolveAnalyzerReference(CommandLineAnalyzerReference reference, IAnalyzerAssemblyLoader analyzerLoader)
DiagnosticAnalyzer\AnalyzerFileReference.cs (7)
71=> Equals(obj as AnalyzerFileReference); 73public bool Equals(AnalyzerFileReference? other) 98if (other is AnalyzerFileReference fileReference) 110=> $"{nameof(AnalyzerFileReference)}({nameof(FullPath)} = {FullPath})"; 372private readonly AnalyzerFileReference _reference; 381internal Extensions(AnalyzerFileReference reference, Type attributeType, AttributeLanguagesFunc languagesFunc, bool allowNetFramework, Func<object?, TExtension?>? coerceFunction = null) 564var runningCompilerAssemblyName = typeof(AnalyzerFileReference).Assembly.GetName();
Microsoft.CodeAnalysis.Features (4)
Common\AbstractProjectExtensionProvider.cs (3)
148var analyzerFileReference = GetAnalyzerFileReference(this.Reference); 189static AnalyzerFileReference? GetAnalyzerFileReference(AnalyzerReference reference) 191if (reference is AnalyzerFileReference analyzerFileReference)
Diagnostics\Service\DiagnosticAnalyzerService_RemoteOrLocalDispatcher.cs (1)
47analyzerReference is AnalyzerFileReference analyzerFileReference)
Microsoft.CodeAnalysis.Workspaces (17)
Serialization\SerializerService_Reference.cs (6)
33/// pretend that a <see cref="AnalyzerImageReference"/> is a <see cref="AnalyzerFileReference"/> during tests. 75case AnalyzerFileReference fileReference: 130case AnalyzerFileReference fileReference: 131writer.WriteString(nameof(AnalyzerFileReference)); 170case nameof(AnalyzerFileReference): 183protected virtual AnalyzerFileReference GetOrCreateAnalyzerFileReference(string filePath)
SourceGeneration\IRemoteSourceGenerationService.cs (2)
57/// cref="AnalyzerFileReference.FullPath"/> equal to <paramref name="analyzerReferenceFullPath"/>. 63/// Returns whether or not the the <see cref="AnalyzerReference"/> with <see cref="AnalyzerFileReference.FullPath"/>
Workspace\IsolatedAnalyzerFileReference.cs (3)
17/// Wrapper around a real <see cref="AnalyzerFileReference"/>. An "isolated" analyzer reference is an analyzer 34AnalyzerFileReference underlyingAnalyzerReference) 56public readonly AnalyzerFileReference UnderlyingAnalyzerFileReference = underlyingAnalyzerReference;
Workspace\IsolatedAnalyzerReferenceSet.Core.cs (4)
55/// To determine if we have a conflict, we keep track of the mvid of each <see cref="AnalyzerFileReference"/> when 71/// Mapping from <see cref="AnalyzerFileReference.FullPath"/> to the mvid for that reference with this isolated 165var finalReference = analyzerReference is AnalyzerFileReference { FullPath: var fullPath } 301if (analyzerReference is AnalyzerFileReference analyzerFileReference)
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
777using var _ = ArrayBuilder<AnalyzerFileReference>.GetInstance(out var initialReferenceList);
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
902/// cref="PortableExecutableReference"/> or <see cref="AnalyzerFileReference"/>.
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\MSBuildWorkspace.cs (2)
689if (analyzerReference is AnalyzerFileReference fileRef) 701if (analyzerReference is AnalyzerFileReference fileRef)