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)
277
Assert.ThrowsAny<Exception>(() => loader.
LoadFromPath
(path));
288
Assembly alpha = loader.
LoadFromPath
(testFixture.Alpha);
307
Assembly alpha = loader.
LoadFromPath
(testFixture.Alpha);
312
Assembly beta = loader.
LoadFromPath
(testFixture.Beta);
329
/// <see cref="AnalyzerAssemblyLoader.
LoadFromPath
(string)"/> call has occurred. If the file
343
Assert.Throws<ArgumentException>(() => loader.
LoadFromPath
(analyzerPath));
355
Assert.Throws<ArgumentException>(() => loader.
LoadFromPath
(testFixture.Beta));
369
Assembly beta = loader.
LoadFromPath
(testFixture.Beta);
548
Assembly gamma = loader.
LoadFromPath
(testFixture.Gamma);
579
Assembly gamma = loader.
LoadFromPath
(gammaFile);
694
Assembly gamma = loader.
LoadFromPath
(gammaFile);
733
Assembly gamma = loader.
LoadFromPath
(gammaFile);
794
Assembly gamma = loader.
LoadFromPath
(testFixture.Gamma);
798
Assembly epsilon = loader.
LoadFromPath
(testFixture.Epsilon);
850
Assembly epsilon = loader.
LoadFromPath
(testFixture.Epsilon);
909
Assembly epsilon = loader.
LoadFromPath
(testFixture.Epsilon);
940
Assembly delta2 = loader.
LoadFromPath
(testFixture.Delta2);
941
Assembly delta2B = loader.
LoadFromPath
(testFixture.Delta2B);
989
Assembly epsilon = loader.
LoadFromPath
(epsilonPath);
1046
Assembly epsilon = loader.
LoadFromPath
(epsilonFile);
1080
Assembly gamma = loader1.
LoadFromPath
(testFixture.Gamma);
1084
Assembly epsilon = loader2.
LoadFromPath
(testFixture.Epsilon);
1140
Assembly gamma = loader.
LoadFromPath
(testFixture.Gamma);
1144
Assembly epsilon = loader.
LoadFromPath
(testFixture.Epsilon);
1237
var assembly = loader.
LoadFromPath
(assemblyFilePath);
1271
var assembly = loader.
LoadFromPath
(assemblyFilePath);
1319
var gamma = loader.
LoadFromPath
(testFixture.GammaReferencingPublicSigned);
1323
var epsilon = loader.
LoadFromPath
(testFixture.EpsilonReferencingPublicSigned);
1349
var delta1Assembly = loader.
LoadFromPath
(testFixture.DeltaPublicSigned1);
1353
var delta2Assembly = loader.
LoadFromPath
(testFixture.DeltaPublicSigned2);
1378
Assembly analyzerAssembly = loader.
LoadFromPath
(testFixture.AnalyzerReferencesSystemCollectionsImmutable1);
1405
Assembly analyzerAssembly = loader.
LoadFromPath
(testFixture.AnalyzerReferencesSystemCollectionsImmutable2);
1427
var copiedAssembly = loader.
LoadFromPath
(destFile);
1442
Assembly analyzerAssembly = loader.
LoadFromPath
(testFixture.AnalyzerWithNativeDependency);
1460
_ = loader.
LoadFromPath
(deltaCopy);
1485
Assembly? delta = loader.
LoadFromPath
(deltaCopy);
1525
Assembly gamma = loader.
LoadFromPath
(gammaFile);
1552
var expected = loader.
LoadFromPath
(path);
1557
var actual = loader.
LoadFromPath
(path);
1576
var expected = loader.
LoadFromPath
(path);
1586
var actual = loader.
LoadFromPath
(path);
1612
var assembly = loader.
LoadFromPath
(analyzerPath);
1635
var assembly = loader.
LoadFromPath
(analyzerPath);
1672
Assembly analyzerAssembly = loader.
LoadFromPath
(testFixture.AnalyzerReferencesSystemCollectionsImmutable1);
1694
Assembly gamma = loader.
LoadFromPath
(testFixture.Gamma);
1716
Assembly delta = loader.
LoadFromPath
(testFixture.Delta1);
1733
Assembly alpha = loader.
LoadFromPath
(testFixture.Alpha);
1737
Assembly delta = loader.
LoadFromPath
(testFixture.Delta1);
1754
Assembly delta = loader.
LoadFromPath
(testFixture.Delta1);
1777
Assembly loaded = loader.
LoadFromPath
(assembly.Location);
1797
Assembly loaded = loader.
LoadFromPath
(testFixture.Delta1);
1819
Assert.Throws<InvalidOperationException>(() => loader.
LoadFromPath
(testFixture.Delta1));