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