1 write to PrimaryDependency
Microsoft.CodeAnalysis (1)
Binding\UseSiteInfo.cs (1)
65PrimaryDependency = primaryDependency;
14 references to PrimaryDependency
Microsoft.CodeAnalysis (14)
Binding\BindingDiagnosticBag.cs (1)
194AddDependency(useSiteInfo.PrimaryDependency);
Binding\UseSiteInfo.cs (13)
69public bool IsEmpty => DiagnosticInfo is null && PrimaryDependency is null && SecondaryDependencies?.IsEmpty != false; 84return new UseSiteInfo<TAssemblySymbol>(diagnosticInfo, PrimaryDependency, SecondaryDependencies); 93primaryDependency ??= PrimaryDependency; 95if (!object.Equals(primaryDependency, PrimaryDependency) && PrimaryDependency is object) 97secondaryDependencies = secondaryDependencies.Add(PrimaryDependency); 340if (info.PrimaryDependency != _assemblyBeingBuilt) 342HashSetExtensions.InitializeAndAdd(ref _dependencies, info.PrimaryDependency); 486Debug.Assert(primaryDependency is object || (useSiteInfo.PrimaryDependency is null && secondaryDependencies.IsEmpty)); 487Debug.Assert(primaryDependency == useSiteInfo.PrimaryDependency || useSiteInfo.DiagnosticInfo?.Severity == DiagnosticSeverity.Error); 488if (useSiteInfo.PrimaryDependency is object) 490return secondaryDependencies.Remove(useSiteInfo.PrimaryDependency); 558return new UseSiteInfo<TAssemblySymbol>(diagnosticInfo, value.PrimaryDependency, dependencies);