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
63 references to SourceFieldSymbol
Microsoft.CodeAnalysis.VisualBasic (63)
Binding\Binder_Initializers.vb (5)
144
Dim fieldSymbol = DirectCast(firstFieldOrProperty,
SourceFieldSymbol
)
150
Dim fieldSymbol = DirectCast(firstFieldOrProperty,
SourceFieldSymbol
)
228
fieldSymbol As
SourceFieldSymbol
,
270
Dim firstFieldSymbol = DirectCast(fieldSymbols.First,
SourceFieldSymbol
)
450
fieldSymbol As
SourceFieldSymbol
,
Binding\BinderBuilder.vb (1)
431
declarationSyntax = DirectCast(fieldOrProperty,
SourceFieldSymbol
).DeclarationSyntax
Binding\ConstantFieldsInProgress.vb (6)
16
Private ReadOnly _fieldOpt As
SourceFieldSymbol
21
Friend Sub New(fieldOpt As
SourceFieldSymbol
, dependencies As Dependencies)
36
Friend Sub AddDependency(field As
SourceFieldSymbol
)
46
Private ReadOnly _builder As HashSet(Of
SourceFieldSymbol
)
48
Friend Sub New(builder As HashSet(Of
SourceFieldSymbol
))
53
Friend Sub Add(field As
SourceFieldSymbol
)
Binding\InitializerSemanticModel.vb (3)
46
Dim fieldSymbol = DirectCast(Me.MemberSymbol,
SourceFieldSymbol
)
113
Dim fieldSymbol = DirectCast(Me.MemberSymbol,
SourceFieldSymbol
)
170
Dim fieldSymbol = TryCast(Me.RootBinder.ContainingMember,
SourceFieldSymbol
)
Compilation\DocumentationComments\DocumentationCommentCompiler.Field.vb (2)
29
Dim sourceField = TryCast(symbol,
SourceFieldSymbol
)
36
Private Sub WriteDocumentationCommentForField(field As
SourceFieldSymbol
)
Compilation\SyntaxTreeSemanticModel.vb (2)
1167
Return DirectCast(
SourceFieldSymbol
.FindFieldOrWithEventsSymbolFromSyntax(declarationSyntax.Identifier, _syntaxTree, containingType), FieldSymbol)
1204
Return
SourceFieldSymbol
.FindFieldOrWithEventsSymbolFromSyntax(declarationSyntax.Identifier, _syntaxTree, containingType)
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 (38)
239
Dim builder = PooledHashSet(Of
SourceFieldSymbol
).GetInstance()
268
Dim graph = PooledDictionary(Of
SourceFieldSymbol
, DependencyInfo).GetInstance()
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