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 (51)
AnalyzerAssemblyLoaderTests.cs (51)
279Assert.ThrowsAny<Exception>(() => loader.LoadFromPath(path)); 290Assembly alpha = loader.LoadFromPath(testFixture.Alpha); 309Assembly alpha = loader.LoadFromPath(testFixture.Alpha); 314Assembly beta = loader.LoadFromPath(testFixture.Beta); 331/// <see cref="AnalyzerAssemblyLoader.LoadFromPath(string)"/> call has occurred. If the file 345Assert.Throws<ArgumentException>(() => loader.LoadFromPath(analyzerPath)); 357Assert.Throws<ArgumentException>(() => loader.LoadFromPath(testFixture.Beta)); 371Assembly beta = loader.LoadFromPath(testFixture.Beta); 550Assembly gamma = loader.LoadFromPath(testFixture.Gamma); 581Assembly gamma = loader.LoadFromPath(gammaFile); 696Assembly gamma = loader.LoadFromPath(gammaFile); 735Assembly gamma = loader.LoadFromPath(gammaFile); 796Assembly gamma = loader.LoadFromPath(testFixture.Gamma); 800Assembly epsilon = loader.LoadFromPath(testFixture.Epsilon); 852Assembly epsilon = loader.LoadFromPath(testFixture.Epsilon); 911Assembly epsilon = loader.LoadFromPath(testFixture.Epsilon); 942Assembly delta2 = loader.LoadFromPath(testFixture.Delta2); 943Assembly delta2B = loader.LoadFromPath(testFixture.Delta2B); 991Assembly epsilon = loader.LoadFromPath(epsilonPath); 1048Assembly epsilon = loader.LoadFromPath(epsilonFile); 1082Assembly gamma = loader1.LoadFromPath(testFixture.Gamma); 1086Assembly epsilon = loader2.LoadFromPath(testFixture.Epsilon); 1142Assembly gamma = loader.LoadFromPath(testFixture.Gamma); 1146Assembly epsilon = loader.LoadFromPath(testFixture.Epsilon); 1239var assembly = loader.LoadFromPath(assemblyFilePath); 1273var assembly = loader.LoadFromPath(assemblyFilePath); 1321var gamma = loader.LoadFromPath(testFixture.GammaReferencingPublicSigned); 1325var epsilon = loader.LoadFromPath(testFixture.EpsilonReferencingPublicSigned); 1351var delta1Assembly = loader.LoadFromPath(testFixture.DeltaPublicSigned1); 1355var delta2Assembly = loader.LoadFromPath(testFixture.DeltaPublicSigned2); 1380Assembly analyzerAssembly = loader.LoadFromPath(testFixture.AnalyzerReferencesSystemCollectionsImmutable1); 1407Assembly analyzerAssembly = loader.LoadFromPath(testFixture.AnalyzerReferencesSystemCollectionsImmutable2); 1429var copiedAssembly = loader.LoadFromPath(destFile); 1444Assembly analyzerAssembly = loader.LoadFromPath(testFixture.AnalyzerWithNativeDependency); 1462_ = loader.LoadFromPath(deltaCopy); 1487Assembly? delta = loader.LoadFromPath(deltaCopy); 1527Assembly gamma = loader.LoadFromPath(gammaFile); 1554var expected = loader.LoadFromPath(path); 1559var actual = loader.LoadFromPath(path); 1578var expected = loader.LoadFromPath(path); 1588var actual = loader.LoadFromPath(path); 1614var assembly = loader.LoadFromPath(analyzerPath); 1637var assembly = loader.LoadFromPath(analyzerPath); 1674Assembly analyzerAssembly = loader.LoadFromPath(testFixture.AnalyzerReferencesSystemCollectionsImmutable1); 1693Assembly delta = loader.LoadFromPath(testFixture.Delta1); 1710Assembly alpha = loader.LoadFromPath(testFixture.Alpha); 1714Assembly delta = loader.LoadFromPath(testFixture.Delta1); 1731Assembly delta = loader.LoadFromPath(testFixture.Delta1); 1754Assembly loaded = loader.LoadFromPath(assembly.Location); 1774Assembly loaded = loader.LoadFromPath(testFixture.Delta1); 1796Assert.Throws<InvalidOperationException>(() => loader.LoadFromPath(testFixture.Delta1));
VBCSCompiler.UnitTests (1)
AnalyzerConsistencyCheckerTests.cs (1)
213Assert.True(assemblyLoader.LoadFromPath(dllFile.Path).GlobalAssemblyCache);