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