1 write to Properties
Microsoft.CodeAnalysis (1)
MetadataReference\MetadataReference.cs (1)
29this.Properties = properties;
71 references to Properties
Microsoft.CodeAnalysis (36)
CommandLine\CommonCompiler.ExistingReferencesResolver.cs (1)
53if (peReference == null || peReference.Properties.Kind != MetadataImageKind.Assembly)
Compilation\DeterministicKeyBuilder.cs (1)
396writeMetadataReferenceProperties(writer, reference.Properties);
MetadataReference\CompilationReference.cs (6)
64return WithProperties(Properties.WithAliases(aliases)); 74return WithProperties(Properties.WithEmbedInteropTypes(value)); 84if (properties == this.Properties) 130return object.Equals(this.Compilation, other.Compilation) && object.Equals(this.Properties, other.Properties); 140return Hash.Combine(this.Compilation.GetHashCode(), this.Properties.GetHashCode());
MetadataReference\MetadataImageReference.cs (5)
53return _display ?? FilePath ?? (Properties.Kind == MetadataImageKind.Assembly ? CodeAnalysisResources.InMemoryAssembly : CodeAnalysisResources.InMemoryModule); 60sb.Append(Properties.Kind == MetadataImageKind.Module ? "Module" : "Assembly"); 61if (!Properties.Aliases.IsEmpty) 64sb.Append(string.Join(", ", Properties.Aliases)); 68if (Properties.EmbedInteropTypes)
MetadataReference\MetadataReference.cs (3)
62return WithProperties(Properties.WithEmbedInteropTypes(value)); 72return WithProperties(Properties.WithAliases(aliases)); 82if (properties == this.Properties)
MetadataReference\PortableExecutableReference.cs (3)
91return WithProperties(Properties.WithAliases(aliases)); 101return WithProperties(Properties.WithEmbedInteropTypes(value)); 111if (properties == this.Properties)
PEWriter\MetadataWriter.PortablePdb.cs (3)
989byte kindAndEmbedInteropTypes = (byte)(portableReference.Properties.EmbedInteropTypes 993kindAndEmbedInteropTypes |= portableReference.Properties.Kind switch 997_ => throw ExceptionUtilities.UnexpectedValue(portableReference.Properties.Kind)
ReferenceManager\CommonReferenceManager.Binding.cs (1)
587peReference.Properties.EmbedInteropTypes);
ReferenceManager\CommonReferenceManager.Resolution.cs (9)
286switch (compilationReference.Properties.Kind) 313throw ExceptionUtilities.UnexpectedValue(compilationReference.Properties.Kind); 327switch (peReference.Properties.Kind) 358peReference.Properties.EmbedInteropTypes); 391throw ExceptionUtilities.UnexpectedValue(peReference.Properties.Kind); 455else if (reference.Properties.HasRecursiveAliases) 458recursiveAliasesOpt = reference.Properties.Aliases; 462aliasesOpt = reference.Properties.Aliases; 506newDiagnostic = PortableExecutableReference.ExceptionToDiagnostic(e, messageProvider, location, peReference.Display ?? "", peReference.Properties.Kind);
ReferenceManager\MergedAliases.cs (4)
37if (reference.Properties.HasRecursiveAliases) 42RecursiveAliasesOpt.AddRange(reference.Properties.Aliases); 53AliasesOpt.AddRange(reference.Properties.Aliases); 62newAliases: reference.Properties.Aliases);
Microsoft.CodeAnalysis.CSharp (6)
Compilation\CSharpCompilation.cs (2)
1278if (reference.Properties.Kind == MetadataImageKind.Assembly) 1284Debug.Assert(reference.Properties.Kind == MetadataImageKind.Module);
Symbols\Compilation_UsedAssemblies.cs (1)
36if (reference.Properties.Kind == MetadataImageKind.Assembly)
Symbols\ReferenceManager.cs (3)
92var result = new AssemblyDataForCompilation(csReference.Compilation, csReference.Properties.EmbedInteropTypes); 104if (primaryReference.Properties.EmbedInteropTypes != duplicateReference.Properties.EmbedInteropTypes)
Microsoft.CodeAnalysis.CSharp.Features (3)
AddImport\CSharpAddImportFeatureService.cs (2)
583var aliases = metadataReference.Properties.Aliases; 589aliases = [.. metadataReference.Properties.Aliases.Where(a => a != MetadataReferenceProperties.GlobalAlias)];
Completion\CompletionProviders\ExternAliasCompletionProvider.cs (1)
68var aliases = compilation.ExternalReferences.SelectMany(r => r.Properties.Aliases).ToSet();
Microsoft.CodeAnalysis.Features (1)
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionService.cs (1)
126if (!HasGlobalAlias(peReference.Properties.Aliases))
Microsoft.CodeAnalysis.Rebuild (3)
CompilationOptionsReader.cs (3)
333if (metadataReference.Properties.EmbedInteropTypes != metadataReferenceInfo.EmbedInteropTypes) 339(metadataReferenceInfo.ExternAlias is null && metadataReference.Properties.Aliases.IsEmpty) || 340(metadataReferenceInfo.ExternAlias == metadataReference.Properties.Aliases.SingleOrDefault())
Microsoft.CodeAnalysis.Scripting (1)
Script.cs (1)
282var resolved = resolver.ResolveReference(unresolved.Reference, null, unresolved.Properties);
Microsoft.CodeAnalysis.VisualBasic (5)
CommandLine\VisualBasicCommandLineArguments.vb (1)
81Dim refProps = reference.Properties
Compilation\VisualBasicCompilation.vb (2)
1323If reference.Properties.Kind = MetadataImageKind.Assembly Then 1326Debug.Assert(reference.Properties.Kind = MetadataImageKind.Module)
Symbols\ReferenceManager.vb (1)
116Dim result As New AssemblyDataForCompilation(vbReference.Compilation, vbReference.Properties.EmbedInteropTypes)
Symbols\UsedAssemblies.vb (1)
29If reference.Properties.Kind = MetadataImageKind.Assembly Then
Microsoft.CodeAnalysis.Workspaces (12)
Log\WorkspaceStructureLogger.cs (1)
242var aliasesAttribute = new XAttribute("aliases", string.Join(",", reference.Properties.Aliases));
Serialization\SerializedPortableExecutableReference.cs (3)
62Kind={this.Properties.Kind} 63Aliases={this.Properties.Aliases.Join(",")} 64EmbedInteropTypes={this.Properties.EmbedInteropTypes}
Serialization\SerializerService_Reference.cs (1)
202WriteTo(reference.Properties, writer);
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
676.Single(m => m.FilePath == path && m.Properties == properties);
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (3)
590var projectReference = new ProjectReference(projectIdToReference, peReference.Properties.Aliases, peReference.Properties.EmbedInteropTypes); 847createNewReference: static (solutionServices, reference) => CreateMetadataReference_NoLock(reference.FilePath!, reference.Properties, solutionServices),
Workspace\Solution\SolutionCompilationState.RootedSymbolSet.cs (1)
19=> new(reference.Properties, (reference as PortableExecutableReference)?.FilePath);
Workspace\Workspace.cs (2)
1475var newProjRef = new ProjectReference(matchingProjectId, pemeta.Properties.Aliases, pemeta.Properties.EmbedInteropTypes);
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
MSBuild\MSBuildWorkspace.cs (3)
596_applyChangesProjectFile.AddMetadataReferenceAsync(identity.GetDisplayName(), [.. metadataReference.Properties.Aliases], hintPath: null, CancellationToken.None).Wait(); 602_applyChangesProjectFile.AddMetadataReferenceAsync(fileName, [.. metadataReference.Properties.Aliases], hintPath: null, CancellationToken.None).Wait(); 608_applyChangesProjectFile.AddMetadataReferenceAsync(fileName, [.. metadataReference.Properties.Aliases], relativePath, CancellationToken.None).Wait();
VBCSCompiler (1)
src\roslyn\src\Compilers\Server\VBCSCompiler\MetadataCache.cs (1)
131return s_mdCache.GetMetadata(FilePath, Properties);