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)
238
Dim builder = PooledHashSet(Of
SourceFieldSymbol
).GetInstance()
267
Dim graph = PooledDictionary(Of
SourceFieldSymbol
, DependencyInfo).GetInstance()
275
Dim fields = ArrayBuilder(Of
SourceFieldSymbol
).GetInstance()
283
Dim map = New HashSet(Of
SourceFieldSymbol
)(order.Select(Function(o) o.Field).Distinct())
295
Public Dependencies As ImmutableHashSet(Of
SourceFieldSymbol
)
300
Public DependedOnBy As ImmutableHashSet(Of
SourceFieldSymbol
)
307
Private Sub CreateGraph(graph As Dictionary(Of
SourceFieldSymbol
, DependencyInfo))
309
Dim pending = ArrayBuilder(Of
SourceFieldSymbol
).GetInstance()
313
Dim field As
SourceFieldSymbol
= pending.Pop()
323
node.DependedOnBy = ImmutableHashSet(Of
SourceFieldSymbol
).Empty
326
Dim dependencies As ImmutableHashSet(Of
SourceFieldSymbol
) = field.GetConstantValueDependencies()
336
For Each dependency As
SourceFieldSymbol
In dependencies
341
node.DependedOnBy = ImmutableHashSet(Of
SourceFieldSymbol
).Empty
358
Private Function GetConstantValueDependencies() As ImmutableHashSet(Of
SourceFieldSymbol
)
364
Return ImmutableHashSet(Of
SourceFieldSymbol
).Empty
367
Dim builder = PooledHashSet(Of
SourceFieldSymbol
).GetInstance()
373
Dim result As ImmutableHashSet(Of
SourceFieldSymbol
)
383
result = ImmutableHashSet(Of
SourceFieldSymbol
).Empty
385
result = ImmutableHashSet(Of
SourceFieldSymbol
).Empty.Union(builder)
394
Private Shared Sub CheckGraph(graph As Dictionary(Of
SourceFieldSymbol
, DependencyInfo))
400
Dim field As
SourceFieldSymbol
= pair.Key
406
For Each dependency As
SourceFieldSymbol
In node.Dependencies
413
For Each dependedOnBy As
SourceFieldSymbol
In node.DependedOnBy
429
Private Shared Sub OrderGraph(graph As Dictionary(Of
SourceFieldSymbol
, DependencyInfo), order As ArrayBuilder(Of FieldInfo))
432
Dim lastUpdated As PooledHashSet(Of
SourceFieldSymbol
) = Nothing
433
Dim fieldsInvolvedInCycles As ArrayBuilder(Of
SourceFieldSymbol
) = Nothing
437
Dim search = If(DirectCast(lastUpdated, IEnumerable(Of
SourceFieldSymbol
)), graph.Keys)
438
Dim [set] = ArrayBuilder(Of
SourceFieldSymbol
).GetInstance()
449
Dim updated = PooledHashSet(Of
SourceFieldSymbol
).GetInstance()
494
Dim updated = PooledHashSet(Of
SourceFieldSymbol
).GetInstance()
523
graph As Dictionary(Of
SourceFieldSymbol
, DependencyInfo),
524
ByRef fieldsInvolvedInCycles As ArrayBuilder(Of
SourceFieldSymbol
)
525
) As
SourceFieldSymbol
529
fieldsInvolvedInCycles = ArrayBuilder(Of
SourceFieldSymbol
).GetInstance(graph.Count)
537
Dim field As
SourceFieldSymbol
= fieldsInvolvedInCycles.Pop()
545
Private Shared Function IsPartOfCycle(graph As Dictionary(Of
SourceFieldSymbol
, DependencyInfo), field As
SourceFieldSymbol
) As Boolean
546
Dim [set] = PooledHashSet(Of
SourceFieldSymbol
).GetInstance()
547
Dim stack = ArrayBuilder(Of
SourceFieldSymbol
).GetInstance()
549
Dim stopAt As
SourceFieldSymbol
= field
Symbols\Source\SourceMemberFieldSymbol.vb (1)
574
Dim fieldSymbol As
SourceFieldSymbol