1 write to ExternalReferences
Microsoft.CodeAnalysis (1)
120 references to ExternalReferences
Microsoft.CodeAnalysis (7)
Microsoft.CodeAnalysis.CSharp (7)
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (65)
Compilation\CompilationAPITests.cs (40)
365Assert.Equal(1, comp.ExternalReferences.Length);
366var ref1 = comp.ExternalReferences[0];
496Assert.Equal(0, comp.ExternalReferences.Length);
503Assert.Equal(1, comp.ExternalReferences.Length);
504Assert.Equal(MetadataImageKind.Assembly, comp.ExternalReferences[0].Properties.Kind);
505Assert.Equal(ref1, comp.ExternalReferences[0]);
509Assert.Equal(1, comp.ExternalReferences.Length);
510Assert.Equal(MetadataImageKind.Assembly, comp.ExternalReferences[0].Properties.Kind);
511Assert.Equal(ref2, comp.ExternalReferences[0]);
515Assert.Equal(0, comp.ExternalReferences.Length);
521Assert.Equal(1, compCollection.ExternalReferences.Length);
523Assert.Equal(0, compCollection.ExternalReferences.Length);
529Assert.Equal(0, compCollection.ExternalReferences.Length);
531Assert.Equal(0, comp.ExternalReferences.Length);
540Assert.Equal(0, compCollection.ExternalReferences.Length);
542Assert.Equal(0, compCollection.ExternalReferences.Length);
551Assert.Equal(0, compCollection.ExternalReferences.Length);
553Assert.Equal(0, compCollection.ExternalReferences.Length);
961Assert.Equal(0, comp.ExternalReferences.Length);
972Assert.Equal(1, comp1.ExternalReferences.Length);
1174Assert.Equal(1, comp.ExternalReferences.Length);
1194Assert.Equal(2, comp.ExternalReferences.Length);
1203Assert.Equal(3, comp.ExternalReferences.Length);
1208Assert.Equal(3, comp.ExternalReferences.Length);
1213Assert.Equal(3, comp.ExternalReferences.Length);
1284Assert.Equal(3, comp.ExternalReferences.Length);
1286Assert.True(comp.ExternalReferences[2] is CSharpCompilationReference, "Expected compilation reference");
1287Assert.Equal(compRef1, comp.ExternalReferences[2]);
1292Assert.Equal(3, comp.ExternalReferences.Length);
1293Assert.Equal(MetadataImageKind.Module, comp.ExternalReferences[2].Properties.Kind);
1294Assert.Equal(modRef1, comp.ExternalReferences[2]);
1303Assert.Equal(0, comp.ExternalReferences.Length);
1417Assert.Equal(1, comp.ExternalReferences.Length);
1418Assert.Equal(MetadataImageKind.Assembly, comp.ExternalReferences[0].Properties.Kind);
1419Assert.Equal(ref1, comp.ExternalReferences[0]);
1425Assert.Equal(1, comp.ExternalReferences.Length);
1426Assert.Equal(MetadataImageKind.Assembly, comp.ExternalReferences[0].Properties.Kind);
1427Assert.Equal(ref2, comp.ExternalReferences[0]);
1441Assert.Equal(1, comp.ExternalReferences.Length);
1444Assert.Equal(1, comp.ExternalReferences.Length);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (7)
Microsoft.CodeAnalysis.VisualBasic (7)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (3)
Microsoft.CodeAnalysis.Workspaces (3)
Microsoft.CodeAnalysis.Workspaces.UnitTests (13)
Microsoft.Maui.Controls.SourceGen (4)