21 references to WithAliases
Microsoft.CodeAnalysis (4)
MetadataReference\CompilationReference.cs (1)
64
return WithProperties(Properties.
WithAliases
(aliases));
MetadataReference\MetadataReference.cs (1)
72
return WithProperties(Properties.
WithAliases
(aliases));
MetadataReference\MetadataReferenceProperties.cs (1)
89
return
WithAliases
(aliases.AsImmutableOrEmpty());
MetadataReference\PortableExecutableReference.cs (1)
91
return WithProperties(Properties.
WithAliases
(aliases));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (8)
Compilation\ReferenceManagerTests.cs (8)
2271
WithProperties(MetadataReferenceProperties.Assembly.
WithAliases
(ImmutableArray.Create("Z")).WithRecursiveAliases(true)),
2296
WithProperties(MetadataReferenceProperties.Assembly.
WithAliases
(ImmutableArray.Create("Z")).WithRecursiveAliases(true)),
2397
aRef.WithProperties(MetadataReferenceProperties.Assembly.
WithAliases
(ImmutableArray.Create("Y")).WithRecursiveAliases(true)),
2432
aRef.WithProperties(MetadataReferenceProperties.Assembly.
WithAliases
(ImmutableArray.Create("Y")).WithRecursiveAliases(true)),
2469
aRef.WithProperties(MetadataReferenceProperties.Assembly.
WithAliases
(ImmutableArray.Create("Y")).WithRecursiveAliases(true)),
2470
aRef.WithProperties(MetadataReferenceProperties.Assembly.
WithAliases
(ImmutableArray.Create("Y")).WithRecursiveAliases(true)),
2509
aRef.WithProperties(MetadataReferenceProperties.Assembly.
WithAliases
(ImmutableArray.Create("Y", "Y")).WithRecursiveAliases(true)),
2510
dRef.WithProperties(MetadataReferenceProperties.Assembly.
WithAliases
(ImmutableArray.Create("Z")).WithRecursiveAliases(true)),
Microsoft.CodeAnalysis.Scripting (2)
Hosting\Resolvers\RuntimeMetadataReferenceResolver.cs (1)
30
MetadataReferenceProperties.Assembly.
WithAliases
(ImmutableArray.Create("<implicit>"));
Script.cs (1)
240
MetadataReferenceProperties.Assembly.
WithAliases
(ImmutableArray.Create("<host>")).WithRecursiveAliases(true);
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
TestRuntimeMetadataReferenceResolver.cs (1)
17
private static readonly MetadataReferenceProperties s_resolvedMissingAssemblyReferenceProperties = MetadataReferenceProperties.Assembly.
WithAliases
(ImmutableArray.Create("<implicit>"));
Microsoft.CodeAnalysis.UnitTests (4)
MetadataReferences\MetadataReferencePropertiesTests.cs (4)
48
Assert.Throws<ArgumentException>(() => MetadataReferenceProperties.Module.
WithAliases
(ImmutableArray.Create("blah")));
59
Assert.Equal(a.
WithAliases
(default(ImmutableArray<string>)), new MetadataReferenceProperties(MetadataImageKind.Assembly, ImmutableArray<string>.Empty, embedInteropTypes: true));
60
Assert.Equal(a.
WithAliases
(ImmutableArray<string>.Empty), new MetadataReferenceProperties(MetadataImageKind.Assembly, default(ImmutableArray<string>), embedInteropTypes: true));
67
Assert.Equal(m.
WithAliases
(default(ImmutableArray<string>)), new MetadataReferenceProperties(MetadataImageKind.Module, default(ImmutableArray<string>), embedInteropTypes: false));
Microsoft.VisualStudio.LanguageServices.UnitTests (2)
ProjectSystemShim\VisualStudioProjectTests\MetadataToProjectReferenceConversionTests.vb (2)
263
referencingProject.AddMetadataReference(ReferencePath, MetadataReferenceProperties.Assembly.
WithAliases
(ImmutableArray.Create("temporary")))
272
referencingProject.RemoveMetadataReference(ReferencePath, MetadataReferenceProperties.Assembly.
WithAliases
(ImmutableArray.Create("temporary")))