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