67 references to Aliases
Microsoft.CodeAnalysis (14)
Compilation\DeterministicKeyBuilder.cs (1)
373foreach (var alias in properties.Aliases)
MetadataReference\MetadataImageReference.cs (2)
61if (!Properties.Aliases.IsEmpty) 64sb.Append(string.Join(", ", Properties.Aliases));
MetadataReference\MetadataReferenceProperties.cs (6)
129/// Namespaces in references whose <see cref="Aliases"/> contain <see cref="GlobalAlias"/> are available in global declaration space. 154/// True to apply <see cref="Aliases"/> recursively on the target assembly and on all its transitive dependencies. 155/// False to apply <see cref="Aliases"/> only on the target assembly. 166return Aliases.SequenceEqual(other.Aliases) 174return Hash.Combine(Hash.CombineValues(Aliases), Hash.Combine(_embedInteropTypes, Hash.Combine(HasRecursiveAliases, ((int)_kind).GetHashCode())));
ReferenceManager\CommonReferenceManager.Resolution.cs (2)
457recursiveAliasesOpt = reference.Properties.Aliases; 461aliasesOpt = reference.Properties.Aliases;
ReferenceManager\MergedAliases.cs (3)
42RecursiveAliasesOpt.AddRange(reference.Properties.Aliases); 53AliasesOpt.AddRange(reference.Properties.Aliases); 62newAliases: reference.Properties.Aliases);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
1287Assert.Equal("a", parsedArgs.MetadataReferences.Single().Properties.Aliases.Single()); 2703Assert.Equal(expectedAliases, result.Properties.Aliases);
Microsoft.CodeAnalysis.CSharp.Features (2)
AddImport\CSharpAddImportFeatureService.cs (2)
564var aliases = metadataReference.Properties.Aliases; 570aliases = metadataReference.Properties.Aliases.Where(a => a != MetadataReferenceProperties.GlobalAlias).ToImmutableArray();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Compilation\CompilationAPITests.cs (2)
368Assert.True(ref1.Properties.Aliases.IsEmpty); 1904Assert.Equal("alias", comp.References.Last().Properties.Aliases.Single());
Compilation\ReferenceManagerTests.cs (3)
906Assert.True(dr1.Properties.Aliases.IsEmpty); 907Assert.True(dr2.Properties.Aliases.IsEmpty); 908Assert.True(dr3.Properties.Aliases.IsEmpty);
Microsoft.CodeAnalysis.Features (1)
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionService.cs (1)
112if (peReferenceKey is null || !HasGlobalAlias(peReference.Properties.Aliases))
Microsoft.CodeAnalysis.Rebuild (2)
CompilationOptionsReader.cs (2)
334(metadataReferenceInfo.ExternAlias is null && metadataReference.Properties.Aliases.IsEmpty) || 335(metadataReferenceInfo.ExternAlias == metadataReference.Properties.Aliases.SingleOrDefault())
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
CompilationRebuildArtifactResolver.cs (1)
26x.Properties.Aliases.SingleOrDefault() == metadataReferenceInfo.ExternAlias);
Microsoft.CodeAnalysis.Test.Utilities (1)
PDB\TestMetadataReferenceInfo.cs (1)
47metadataReference.Properties.Aliases,
Microsoft.CodeAnalysis.UnitTests (25)
MetadataReferences\MetadataReferencePropertiesTests.cs (3)
21Assert.True(m.Aliases.IsEmpty); 26AssertEx.Equal(new[] { "\\/[.'\":_)??\t\n*#$@^%*&)", "goo" }, m.Aliases); 31Assert.True(m.Aliases.IsEmpty);
MetadataReferences\MetadataReferenceTests.cs (22)
107Assert.True(r.Properties.Aliases.IsEmpty); 138Assert.True(r.Properties.Aliases.IsEmpty); 154Assert.True(r.Properties.Aliases.IsEmpty); 170Assert.True(r.Properties.Aliases.IsEmpty); 193Assert.True(r.Properties.Aliases.IsEmpty); 213Assert.True(r.Properties.Aliases.IsEmpty); 230AssertEx.Equal(ImmutableArray.Create("a", "b"), r.Properties.Aliases); 263Assert.True(r.Properties.Aliases.IsEmpty); 302AssertEx.Equal(new[] { "a" }, r.Properties.Aliases); 314AssertEx.Equal(new[] { "b", "c" }, r3.Properties.Aliases); 322AssertEx.Equal(r.Properties.Aliases, r4.Properties.Aliases); 327Assert.True(r5.Properties.Aliases.IsEmpty); 332AssertEx.Equal(new[] { "x" }, r6.Properties.Aliases); 343Assert.True(r.Properties.Aliases.IsEmpty); 349AssertEx.Equal(new[] { "a", "b" }, r1.Properties.Aliases); 355Assert.True(r2.Properties.Aliases.IsEmpty); 361AssertEx.Equal(new[] { "x" }, r3.Properties.Aliases); 374Assert.True(r.Properties.Aliases.IsEmpty); 380AssertEx.Equal(new[] { "a", "b" }, r1.Properties.Aliases); 386Assert.True(r2.Properties.Aliases.IsEmpty); 392AssertEx.Equal(new[] { "x" }, r3.Properties.Aliases);
Microsoft.CodeAnalysis.Workspaces (7)
Serialization\SerializedPortableExecutableReference.cs (1)
63Aliases={this.Properties.Aliases.Join(",")}
Serialization\SerializerService_Reference.cs (1)
308writer.WriteArray(properties.Aliases, static (w, a) => w.WriteString(a));
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (3)
566var projectReference = new ProjectReference(projectIdToReference, peReference.Properties.Aliases, peReference.Properties.EmbedInteropTypes); 708aliases: properties.Aliases, 743convertedProject.ProjectReference.Aliases.SequenceEqual(properties.Aliases))
Workspace\Solution\SolutionCompilationState.SkeletonReferenceSet.cs (1)
44aliases: properties.Aliases,
Workspace\Workspace.cs (1)
1437var newProjRef = new ProjectReference(matchingProjectId, pemeta.Properties.Aliases, pemeta.Properties.EmbedInteropTypes);
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
MSBuild\MSBuildWorkspace.cs (3)
587_applyChangesProjectFile.AddMetadataReferenceAsync(identity.GetDisplayName(), metadataReference.Properties.Aliases, hintPath: null, CancellationToken.None).Wait(); 593_applyChangesProjectFile.AddMetadataReferenceAsync(fileName, metadataReference.Properties.Aliases, hintPath: null, CancellationToken.None).Wait(); 599_applyChangesProjectFile.AddMetadataReferenceAsync(fileName, metadataReference.Properties.Aliases, relativePath, CancellationToken.None).Wait();
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (4)
VisualStudioMSBuildWorkspaceTests.cs (4)
191!mr.Properties.Aliases.IsDefault && 192mr.Properties.Aliases.Contains(aliasName)); 1418Assert.DoesNotContain(metaRefs, r => r.Properties.Aliases.Contains("CSharpProject")); 1447Assert.DoesNotContain(vbProject.MetadataReferences, r => r.Properties.Aliases.Contains("CSharpProject"));