2 types derived from SourceFieldSymbol
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\Source\SourceEnumConstantSymbol.vb (1)
15
Inherits
SourceFieldSymbol
Symbols\Source\SourceMemberFieldSymbol.vb (1)
18
Inherits
SourceFieldSymbol
1 instantiation of SourceFieldSymbol
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Source\SourceMemberFieldSymbol.vb (1)
30
MyBase.
New
(container, syntaxRef, name, memberFlags)
46 references to SourceFieldSymbol
Microsoft.CodeAnalysis.VisualBasic (46)
Symbols\ConstantValueUtils.vb (5)
25
Public Function EvaluateFieldConstant(field As
SourceFieldSymbol
, equalsValueOrAsNewNodeRef As SyntaxReference, dependencies As ConstantFieldsInProgress.Dependencies, diagnostics As BindingDiagnosticBag) As EvaluatedConstant
59
Debug.Assert(TypeOf fieldOrEnumSymbol Is SourceEnumConstantSymbol OrElse TypeOf fieldOrEnumSymbol Is
SourceFieldSymbol
)
65
Dim fieldConstant = DirectCast(fieldOrEnumSymbol,
SourceFieldSymbol
)
72
Public ReadOnly Field As
SourceFieldSymbol
75
Public Sub New(field As
SourceFieldSymbol
, startsCycle As Boolean)
Symbols\Source\SourceFieldSymbol.vb (40)
239
Dim builder = PooledHashSet(Of
SourceFieldSymbol
).GetInstance()
268
Dim graph = PooledDictionary(Of
SourceFieldSymbol
, DependencyInfo).GetInstance()
276
Dim fields = ArrayBuilder(Of
SourceFieldSymbol
).GetInstance()
284
Dim map = New HashSet(Of
SourceFieldSymbol
)(order.Select(Function(o) o.Field).Distinct())
296
Public Dependencies As ImmutableHashSet(Of
SourceFieldSymbol
)
301
Public DependedOnBy As ImmutableHashSet(Of
SourceFieldSymbol
)
308
Private Sub CreateGraph(graph As Dictionary(Of
SourceFieldSymbol
, DependencyInfo))
310
Dim pending = ArrayBuilder(Of
SourceFieldSymbol
).GetInstance()
314
Dim field As
SourceFieldSymbol
= pending.Pop()
324
node.DependedOnBy = ImmutableHashSet(Of
SourceFieldSymbol
).Empty
327
Dim dependencies As ImmutableHashSet(Of
SourceFieldSymbol
) = field.GetConstantValueDependencies()
337
For Each dependency As
SourceFieldSymbol
In dependencies
342
node.DependedOnBy = ImmutableHashSet(Of
SourceFieldSymbol
).Empty
359
Private Function GetConstantValueDependencies() As ImmutableHashSet(Of
SourceFieldSymbol
)
365
Return ImmutableHashSet(Of
SourceFieldSymbol
).Empty
368
Dim builder = PooledHashSet(Of
SourceFieldSymbol
).GetInstance()
374
Dim result As ImmutableHashSet(Of
SourceFieldSymbol
)
384
result = ImmutableHashSet(Of
SourceFieldSymbol
).Empty
386
result = ImmutableHashSet(Of
SourceFieldSymbol
).Empty.Union(builder)
395
Private Shared Sub CheckGraph(graph As Dictionary(Of
SourceFieldSymbol
, DependencyInfo))
401
Dim field As
SourceFieldSymbol
= pair.Key
407
For Each dependency As
SourceFieldSymbol
In node.Dependencies
414
For Each dependedOnBy As
SourceFieldSymbol
In node.DependedOnBy
430
Private Shared Sub OrderGraph(graph As Dictionary(Of
SourceFieldSymbol
, DependencyInfo), order As ArrayBuilder(Of FieldInfo))
433
Dim lastUpdated As PooledHashSet(Of
SourceFieldSymbol
) = Nothing
434
Dim fieldsInvolvedInCycles As ArrayBuilder(Of
SourceFieldSymbol
) = Nothing
438
Dim search = If(DirectCast(lastUpdated, IEnumerable(Of
SourceFieldSymbol
)), graph.Keys)
439
Dim [set] = ArrayBuilder(Of
SourceFieldSymbol
).GetInstance()
450
Dim updated = PooledHashSet(Of
SourceFieldSymbol
).GetInstance()
495
Dim updated = PooledHashSet(Of
SourceFieldSymbol
).GetInstance()
524
graph As Dictionary(Of
SourceFieldSymbol
, DependencyInfo),
525
ByRef fieldsInvolvedInCycles As ArrayBuilder(Of
SourceFieldSymbol
)
526
) As
SourceFieldSymbol
530
fieldsInvolvedInCycles = ArrayBuilder(Of
SourceFieldSymbol
).GetInstance(graph.Count)
538
Dim field As
SourceFieldSymbol
= fieldsInvolvedInCycles.Pop()
546
Private Shared Function IsPartOfCycle(graph As Dictionary(Of
SourceFieldSymbol
, DependencyInfo), field As
SourceFieldSymbol
) As Boolean
547
Dim [set] = PooledHashSet(Of
SourceFieldSymbol
).GetInstance()
548
Dim stack = ArrayBuilder(Of
SourceFieldSymbol
).GetInstance()
550
Dim stopAt As
SourceFieldSymbol
= field
Symbols\Source\SourceMemberFieldSymbol.vb (1)
575
Dim fieldSymbol As
SourceFieldSymbol