2 types derived from SourceFieldSymbolWithSyntaxReference
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Source\SourceEnumConstantSymbol.cs (1)
20internal abstract class SourceEnumConstantSymbol : SourceFieldSymbolWithSyntaxReference
Symbols\Source\SourceMemberFieldSymbol.cs (1)
20internal abstract class SourceMemberFieldSymbol : SourceFieldSymbolWithSyntaxReference
67 references to SourceFieldSymbolWithSyntaxReference
Microsoft.CodeAnalysis.CSharp (67)
Binder\ConstantFieldsInProgress.cs (3)
21private readonly HashSet<SourceFieldSymbolWithSyntaxReference> _dependencies; 27HashSet<SourceFieldSymbolWithSyntaxReference> dependencies) 38internal void AddDependency(SourceFieldSymbolWithSyntaxReference field)
Symbols\ConstantValueUtils.cs (1)
32HashSet<SourceFieldSymbolWithSyntaxReference> dependencies,
Symbols\Source\ConstantEvaluationHelpers.cs (50)
23public readonly SourceFieldSymbolWithSyntaxReference Field; 26public FieldInfo(SourceFieldSymbolWithSyntaxReference field, bool startsCycle) 53this SourceFieldSymbolWithSyntaxReference field, 59var graph = PooledDictionary<SourceFieldSymbolWithSyntaxReference, Node<SourceFieldSymbolWithSyntaxReference>>.GetInstance(); 67var fields = ArrayBuilder<SourceFieldSymbolWithSyntaxReference>.GetInstance(); 75var map = new HashSet<SourceFieldSymbolWithSyntaxReference>(order.Select(o => o.Field).Distinct()); 101Dictionary<SourceFieldSymbolWithSyntaxReference, Node<SourceFieldSymbolWithSyntaxReference>> graph, 102SourceFieldSymbolWithSyntaxReference field, 105var pending = ArrayBuilder<SourceFieldSymbolWithSyntaxReference>.GetInstance(); 112Node<SourceFieldSymbolWithSyntaxReference> node; 123node = new Node<SourceFieldSymbolWithSyntaxReference>(); 124node.DependedOnBy = ImmutableHashSet<SourceFieldSymbolWithSyntaxReference>.Empty; 137foreach (var dependency in dependencies) 143node = new Node<SourceFieldSymbolWithSyntaxReference>(); 144node.DependedOnBy = ImmutableHashSet<SourceFieldSymbolWithSyntaxReference>.Empty; 156Dictionary<SourceFieldSymbolWithSyntaxReference, Node<SourceFieldSymbolWithSyntaxReference>> graph, 161PooledHashSet<SourceFieldSymbolWithSyntaxReference> lastUpdated = null; 162ArrayBuilder<SourceFieldSymbolWithSyntaxReference> fieldsInvolvedInCycles = null; 167var search = ((IEnumerable<SourceFieldSymbolWithSyntaxReference>)lastUpdated) ?? graph.Keys; 168var set = ArrayBuilder<SourceFieldSymbolWithSyntaxReference>.GetInstance(); 171Node<SourceFieldSymbolWithSyntaxReference> node; 185var updated = PooledHashSet<SourceFieldSymbolWithSyntaxReference>.GetInstance(); 194foreach (var dependedOnBy in node.DependedOnBy) 221var field = GetStartOfFirstCycle(graph, ref fieldsInvolvedInCycles); 228foreach (var dependency in node.Dependencies) 236var updated = PooledHashSet<SourceFieldSymbolWithSyntaxReference>.GetInstance(); 240foreach (var dependedOnBy in node.DependedOnBy) 265private static SourceFieldSymbolWithSyntaxReference GetStartOfFirstCycle( 266Dictionary<SourceFieldSymbolWithSyntaxReference, Node<SourceFieldSymbolWithSyntaxReference>> graph, 267ref ArrayBuilder<SourceFieldSymbolWithSyntaxReference> fieldsInvolvedInCycles) 273fieldsInvolvedInCycles = ArrayBuilder<SourceFieldSymbolWithSyntaxReference>.GetInstance(graph.Count); 282SourceFieldSymbolWithSyntaxReference field = fieldsInvolvedInCycles.Pop(); 292Dictionary<SourceFieldSymbolWithSyntaxReference, Node<SourceFieldSymbolWithSyntaxReference>> graph, 293SourceFieldSymbolWithSyntaxReference field) 295var set = PooledHashSet<SourceFieldSymbolWithSyntaxReference>.GetInstance(); 296var stack = ArrayBuilder<SourceFieldSymbolWithSyntaxReference>.GetInstance(); 298SourceFieldSymbolWithSyntaxReference stopAt = field; 313foreach (var dependency in node.Dependencies) 328private static void CheckGraph(Dictionary<SourceFieldSymbolWithSyntaxReference, Node<SourceFieldSymbolWithSyntaxReference>> graph) 336var field = pair.Key; 342foreach (var dependency in node.Dependencies) 344Node<SourceFieldSymbolWithSyntaxReference> n; 350foreach (var dependedOnBy in node.DependedOnBy) 352Node<SourceFieldSymbolWithSyntaxReference> n;
Symbols\Source\GlobalExpressionVariable.cs (1)
64HashSet<SourceFieldSymbolWithSyntaxReference> dependencies,
Symbols\Source\SourceEnumConstantSymbol.cs (3)
154protected override ConstantValue MakeConstantValue(HashSet<SourceFieldSymbolWithSyntaxReference> dependencies, bool earlyDecodingWellKnownAttributes, BindingDiagnosticBag diagnostics) 172protected override ConstantValue MakeConstantValue(HashSet<SourceFieldSymbolWithSyntaxReference> dependencies, bool earlyDecodingWellKnownAttributes, BindingDiagnosticBag diagnostics) 201protected override ConstantValue MakeConstantValue(HashSet<SourceFieldSymbolWithSyntaxReference> dependencies, bool earlyDecodingWellKnownAttributes, BindingDiagnosticBag diagnostics)
Symbols\Source\SourceFieldSymbol.cs (8)
280internal ImmutableHashSet<SourceFieldSymbolWithSyntaxReference> GetConstantValueDependencies(bool earlyDecodingWellKnownAttributes) 288return ImmutableHashSet<SourceFieldSymbolWithSyntaxReference>.Empty; 291ImmutableHashSet<SourceFieldSymbolWithSyntaxReference> dependencies; 292var builder = PooledHashSet<SourceFieldSymbolWithSyntaxReference>.GetInstance(); 310dependencies = ImmutableHashSet<SourceFieldSymbolWithSyntaxReference>.Empty; 314dependencies = ImmutableHashSet<SourceFieldSymbolWithSyntaxReference>.Empty.Union(builder); 329var builder = PooledHashSet<SourceFieldSymbolWithSyntaxReference>.GetInstance(); 381protected abstract ConstantValue MakeConstantValue(HashSet<SourceFieldSymbolWithSyntaxReference> dependencies, bool earlyDecodingWellKnownAttributes, BindingDiagnosticBag diagnostics);
Symbols\Source\SourceMemberFieldSymbol.cs (1)
623protected sealed override ConstantValue MakeConstantValue(HashSet<SourceFieldSymbolWithSyntaxReference> dependencies, bool earlyDecodingWellKnownAttributes, BindingDiagnosticBag diagnostics)