1 write to ExternalReferences
Microsoft.CodeAnalysis (1)
121 references to ExternalReferences
Microsoft.CodeAnalysis (7)
Microsoft.CodeAnalysis.CSharp (7)
Microsoft.CodeAnalysis.CSharp.Features (1)
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (65)
Compilation\CompilationAPITests.cs (40)
364Assert.Equal(1, comp.ExternalReferences.Length);
365var ref1 = comp.ExternalReferences[0];
495Assert.Equal(0, comp.ExternalReferences.Length);
502Assert.Equal(1, comp.ExternalReferences.Length);
503Assert.Equal(MetadataImageKind.Assembly, comp.ExternalReferences[0].Properties.Kind);
504Assert.Equal(ref1, comp.ExternalReferences[0]);
508Assert.Equal(1, comp.ExternalReferences.Length);
509Assert.Equal(MetadataImageKind.Assembly, comp.ExternalReferences[0].Properties.Kind);
510Assert.Equal(ref2, comp.ExternalReferences[0]);
514Assert.Equal(0, comp.ExternalReferences.Length);
520Assert.Equal(1, compCollection.ExternalReferences.Length);
522Assert.Equal(0, compCollection.ExternalReferences.Length);
528Assert.Equal(0, compCollection.ExternalReferences.Length);
530Assert.Equal(0, comp.ExternalReferences.Length);
539Assert.Equal(0, compCollection.ExternalReferences.Length);
541Assert.Equal(0, compCollection.ExternalReferences.Length);
550Assert.Equal(0, compCollection.ExternalReferences.Length);
552Assert.Equal(0, compCollection.ExternalReferences.Length);
960Assert.Equal(0, comp.ExternalReferences.Length);
971Assert.Equal(1, comp1.ExternalReferences.Length);
1173Assert.Equal(1, comp.ExternalReferences.Length);
1193Assert.Equal(2, comp.ExternalReferences.Length);
1202Assert.Equal(3, comp.ExternalReferences.Length);
1207Assert.Equal(3, comp.ExternalReferences.Length);
1212Assert.Equal(3, comp.ExternalReferences.Length);
1283Assert.Equal(3, comp.ExternalReferences.Length);
1285Assert.True(comp.ExternalReferences[2] is CSharpCompilationReference, "Expected compilation reference");
1286Assert.Equal(compRef1, comp.ExternalReferences[2]);
1291Assert.Equal(3, comp.ExternalReferences.Length);
1292Assert.Equal(MetadataImageKind.Module, comp.ExternalReferences[2].Properties.Kind);
1293Assert.Equal(modRef1, comp.ExternalReferences[2]);
1302Assert.Equal(0, comp.ExternalReferences.Length);
1416Assert.Equal(1, comp.ExternalReferences.Length);
1417Assert.Equal(MetadataImageKind.Assembly, comp.ExternalReferences[0].Properties.Kind);
1418Assert.Equal(ref1, comp.ExternalReferences[0]);
1424Assert.Equal(1, comp.ExternalReferences.Length);
1425Assert.Equal(MetadataImageKind.Assembly, comp.ExternalReferences[0].Properties.Kind);
1426Assert.Equal(ref2, comp.ExternalReferences[0]);
1440Assert.Equal(1, comp.ExternalReferences.Length);
1443Assert.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)