Implemented interface member:
method
LoadFromPath
Microsoft.CodeAnalysis.IAnalyzerAssemblyLoader.LoadFromPath(System.String)
53 references to LoadFromPath
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
39/// This type generally assumes that files on disk aren't changing, since it ensure that two calls to <see cref="LoadFromPath(string)"/>
Microsoft.CodeAnalysis.UnitTests (52)
AnalyzerAssemblyLoaderTests.cs (52)
277Assert.ThrowsAny<Exception>(() => loader.LoadFromPath(path)); 288Assembly alpha = loader.LoadFromPath(testFixture.Alpha); 307Assembly alpha = loader.LoadFromPath(testFixture.Alpha); 312Assembly beta = loader.LoadFromPath(testFixture.Beta); 329/// <see cref="AnalyzerAssemblyLoader.LoadFromPath(string)"/> call has occurred. If the file 343Assert.Throws<ArgumentException>(() => loader.LoadFromPath(analyzerPath)); 355Assert.Throws<ArgumentException>(() => loader.LoadFromPath(testFixture.Beta)); 369Assembly beta = loader.LoadFromPath(testFixture.Beta); 548Assembly gamma = loader.LoadFromPath(testFixture.Gamma); 579Assembly gamma = loader.LoadFromPath(gammaFile); 694Assembly gamma = loader.LoadFromPath(gammaFile); 733Assembly gamma = loader.LoadFromPath(gammaFile); 794Assembly gamma = loader.LoadFromPath(testFixture.Gamma); 798Assembly epsilon = loader.LoadFromPath(testFixture.Epsilon); 850Assembly epsilon = loader.LoadFromPath(testFixture.Epsilon); 909Assembly epsilon = loader.LoadFromPath(testFixture.Epsilon); 940Assembly delta2 = loader.LoadFromPath(testFixture.Delta2); 941Assembly delta2B = loader.LoadFromPath(testFixture.Delta2B); 989Assembly epsilon = loader.LoadFromPath(epsilonPath); 1046Assembly epsilon = loader.LoadFromPath(epsilonFile); 1080Assembly gamma = loader1.LoadFromPath(testFixture.Gamma); 1084Assembly epsilon = loader2.LoadFromPath(testFixture.Epsilon); 1140Assembly gamma = loader.LoadFromPath(testFixture.Gamma); 1144Assembly epsilon = loader.LoadFromPath(testFixture.Epsilon); 1237var assembly = loader.LoadFromPath(assemblyFilePath); 1271var assembly = loader.LoadFromPath(assemblyFilePath); 1319var gamma = loader.LoadFromPath(testFixture.GammaReferencingPublicSigned); 1323var epsilon = loader.LoadFromPath(testFixture.EpsilonReferencingPublicSigned); 1349var delta1Assembly = loader.LoadFromPath(testFixture.DeltaPublicSigned1); 1353var delta2Assembly = loader.LoadFromPath(testFixture.DeltaPublicSigned2); 1378Assembly analyzerAssembly = loader.LoadFromPath(testFixture.AnalyzerReferencesSystemCollectionsImmutable1); 1405Assembly analyzerAssembly = loader.LoadFromPath(testFixture.AnalyzerReferencesSystemCollectionsImmutable2); 1427var copiedAssembly = loader.LoadFromPath(destFile); 1442Assembly analyzerAssembly = loader.LoadFromPath(testFixture.AnalyzerWithNativeDependency); 1460_ = loader.LoadFromPath(deltaCopy); 1485Assembly? delta = loader.LoadFromPath(deltaCopy); 1525Assembly gamma = loader.LoadFromPath(gammaFile); 1552var expected = loader.LoadFromPath(path); 1557var actual = loader.LoadFromPath(path); 1576var expected = loader.LoadFromPath(path); 1586var actual = loader.LoadFromPath(path); 1612var assembly = loader.LoadFromPath(analyzerPath); 1635var assembly = loader.LoadFromPath(analyzerPath); 1672Assembly analyzerAssembly = loader.LoadFromPath(testFixture.AnalyzerReferencesSystemCollectionsImmutable1); 1694Assembly gamma = loader.LoadFromPath(testFixture.Gamma); 1716Assembly delta = loader.LoadFromPath(testFixture.Delta1); 1733Assembly alpha = loader.LoadFromPath(testFixture.Alpha); 1737Assembly delta = loader.LoadFromPath(testFixture.Delta1); 1754Assembly delta = loader.LoadFromPath(testFixture.Delta1); 1777Assembly loaded = loader.LoadFromPath(assembly.Location); 1797Assembly loaded = loader.LoadFromPath(testFixture.Delta1); 1819Assert.Throws<InvalidOperationException>(() => loader.LoadFromPath(testFixture.Delta1));