2 types derived from SourceFieldSymbol
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\Source\SourceEnumConstantSymbol.vb (1)
14
Inherits
SourceFieldSymbol
Symbols\Source\SourceMemberFieldSymbol.vb (1)
17
Inherits
SourceFieldSymbol
1 instantiation of SourceFieldSymbol
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Source\SourceMemberFieldSymbol.vb (1)
29
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)
225
Dim builder = PooledHashSet(Of
SourceFieldSymbol
).GetInstance()
254
Dim graph = PooledDictionary(Of
SourceFieldSymbol
, DependencyInfo).GetInstance()
262
Dim fields = ArrayBuilder(Of
SourceFieldSymbol
).GetInstance()
270
Dim map = New HashSet(Of
SourceFieldSymbol
)(order.Select(Function(o) o.Field).Distinct())
282
Public Dependencies As ImmutableHashSet(Of
SourceFieldSymbol
)
287
Public DependedOnBy As ImmutableHashSet(Of
SourceFieldSymbol
)
294
Private Sub CreateGraph(graph As Dictionary(Of
SourceFieldSymbol
, DependencyInfo))
296
Dim pending = ArrayBuilder(Of
SourceFieldSymbol
).GetInstance()
300
Dim field As
SourceFieldSymbol
= pending.Pop()
310
node.DependedOnBy = ImmutableHashSet(Of
SourceFieldSymbol
).Empty
313
Dim dependencies As ImmutableHashSet(Of
SourceFieldSymbol
) = field.GetConstantValueDependencies()
323
For Each dependency As
SourceFieldSymbol
In dependencies
328
node.DependedOnBy = ImmutableHashSet(Of
SourceFieldSymbol
).Empty
345
Private Function GetConstantValueDependencies() As ImmutableHashSet(Of
SourceFieldSymbol
)
351
Return ImmutableHashSet(Of
SourceFieldSymbol
).Empty
354
Dim builder = PooledHashSet(Of
SourceFieldSymbol
).GetInstance()
360
Dim result As ImmutableHashSet(Of
SourceFieldSymbol
)
370
result = ImmutableHashSet(Of
SourceFieldSymbol
).Empty
372
result = ImmutableHashSet(Of
SourceFieldSymbol
).Empty.Union(builder)
381
Private Shared Sub CheckGraph(graph As Dictionary(Of
SourceFieldSymbol
, DependencyInfo))
387
Dim field As
SourceFieldSymbol
= pair.Key
393
For Each dependency As
SourceFieldSymbol
In node.Dependencies
400
For Each dependedOnBy As
SourceFieldSymbol
In node.DependedOnBy
416
Private Shared Sub OrderGraph(graph As Dictionary(Of
SourceFieldSymbol
, DependencyInfo), order As ArrayBuilder(Of FieldInfo))
419
Dim lastUpdated As PooledHashSet(Of
SourceFieldSymbol
) = Nothing
420
Dim fieldsInvolvedInCycles As ArrayBuilder(Of
SourceFieldSymbol
) = Nothing
424
Dim search = If(DirectCast(lastUpdated, IEnumerable(Of
SourceFieldSymbol
)), graph.Keys)
425
Dim [set] = ArrayBuilder(Of
SourceFieldSymbol
).GetInstance()
436
Dim updated = PooledHashSet(Of
SourceFieldSymbol
).GetInstance()
481
Dim updated = PooledHashSet(Of
SourceFieldSymbol
).GetInstance()
510
graph As Dictionary(Of
SourceFieldSymbol
, DependencyInfo),
511
ByRef fieldsInvolvedInCycles As ArrayBuilder(Of
SourceFieldSymbol
)
512
) As
SourceFieldSymbol
516
fieldsInvolvedInCycles = ArrayBuilder(Of
SourceFieldSymbol
).GetInstance(graph.Count)
524
Dim field As
SourceFieldSymbol
= fieldsInvolvedInCycles.Pop()
532
Private Shared Function IsPartOfCycle(graph As Dictionary(Of
SourceFieldSymbol
, DependencyInfo), field As
SourceFieldSymbol
) As Boolean
533
Dim [set] = PooledHashSet(Of
SourceFieldSymbol
).GetInstance()
534
Dim stack = ArrayBuilder(Of
SourceFieldSymbol
).GetInstance()
536
Dim stopAt As
SourceFieldSymbol
= field
Symbols\Source\SourceMemberFieldSymbol.vb (1)
561
Dim fieldSymbol As
SourceFieldSymbol