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
2 instantiations of SourceFieldSymbol
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\Source\SourceEnumConstantSymbol.vb (1)
35
MyBase.
New
(containingEnum,
Symbols\Source\SourceMemberFieldSymbol.vb (1)
29
MyBase.
New
(container, syntaxRef, name, memberFlags)
73 references to SourceFieldSymbol
Microsoft.CodeAnalysis.VisualBasic (65)
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 (40)
219
Dim builder = PooledHashSet(Of
SourceFieldSymbol
).GetInstance()
248
Dim graph = PooledDictionary(Of
SourceFieldSymbol
, DependencyInfo).GetInstance()
256
Dim fields = ArrayBuilder(Of
SourceFieldSymbol
).GetInstance()
264
Dim map = New HashSet(Of
SourceFieldSymbol
)(order.Select(Function(o) o.Field).Distinct())
276
Public Dependencies As ImmutableHashSet(Of
SourceFieldSymbol
)
281
Public DependedOnBy As ImmutableHashSet(Of
SourceFieldSymbol
)
288
Private Sub CreateGraph(graph As Dictionary(Of
SourceFieldSymbol
, DependencyInfo))
290
Dim pending = ArrayBuilder(Of
SourceFieldSymbol
).GetInstance()
294
Dim field As
SourceFieldSymbol
= pending.Pop()
304
node.DependedOnBy = ImmutableHashSet(Of
SourceFieldSymbol
).Empty
307
Dim dependencies As ImmutableHashSet(Of
SourceFieldSymbol
) = field.GetConstantValueDependencies()
317
For Each dependency As
SourceFieldSymbol
In dependencies
322
node.DependedOnBy = ImmutableHashSet(Of
SourceFieldSymbol
).Empty
339
Private Function GetConstantValueDependencies() As ImmutableHashSet(Of
SourceFieldSymbol
)
345
Return ImmutableHashSet(Of
SourceFieldSymbol
).Empty
348
Dim builder = PooledHashSet(Of
SourceFieldSymbol
).GetInstance()
354
Dim result As ImmutableHashSet(Of
SourceFieldSymbol
)
364
result = ImmutableHashSet(Of
SourceFieldSymbol
).Empty
366
result = ImmutableHashSet(Of
SourceFieldSymbol
).Empty.Union(builder)
375
Private Shared Sub CheckGraph(graph As Dictionary(Of
SourceFieldSymbol
, DependencyInfo))
381
Dim field As
SourceFieldSymbol
= pair.Key
387
For Each dependency As
SourceFieldSymbol
In node.Dependencies
394
For Each dependedOnBy As
SourceFieldSymbol
In node.DependedOnBy
410
Private Shared Sub OrderGraph(graph As Dictionary(Of
SourceFieldSymbol
, DependencyInfo), order As ArrayBuilder(Of FieldInfo))
413
Dim lastUpdated As PooledHashSet(Of
SourceFieldSymbol
) = Nothing
414
Dim fieldsInvolvedInCycles As ArrayBuilder(Of
SourceFieldSymbol
) = Nothing
418
Dim search = If(DirectCast(lastUpdated, IEnumerable(Of
SourceFieldSymbol
)), graph.Keys)
419
Dim [set] = ArrayBuilder(Of
SourceFieldSymbol
).GetInstance()
430
Dim updated = PooledHashSet(Of
SourceFieldSymbol
).GetInstance()
475
Dim updated = PooledHashSet(Of
SourceFieldSymbol
).GetInstance()
504
graph As Dictionary(Of
SourceFieldSymbol
, DependencyInfo),
505
ByRef fieldsInvolvedInCycles As ArrayBuilder(Of
SourceFieldSymbol
)
506
) As
SourceFieldSymbol
510
fieldsInvolvedInCycles = ArrayBuilder(Of
SourceFieldSymbol
).GetInstance(graph.Count)
518
Dim field As
SourceFieldSymbol
= fieldsInvolvedInCycles.Pop()
526
Private Shared Function IsPartOfCycle(graph As Dictionary(Of
SourceFieldSymbol
, DependencyInfo), field As
SourceFieldSymbol
) As Boolean
527
Dim [set] = PooledHashSet(Of
SourceFieldSymbol
).GetInstance()
528
Dim stack = ArrayBuilder(Of
SourceFieldSymbol
).GetInstance()
530
Dim stopAt As
SourceFieldSymbol
= field
Symbols\Source\SourceMemberFieldSymbol.vb (1)
561
Dim fieldSymbol As
SourceFieldSymbol
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Emit\EditAndContinue\SymbolMatcherTests.vb (2)
609
Dim otherSymbol = DirectCast(other.GetInternalSymbol(),
SourceFieldSymbol
)
887
Dim otherSymbol = DirectCast(other.GetInternalSymbol(),
SourceFieldSymbol
)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (5)
Semantics\GetSemanticInfoTests.vb (3)
1324
Dim sym = DirectCast(semanticInfo.Symbol,
SourceFieldSymbol
)
1330
Dim sym2 = DirectCast(semanticInfo.Symbol,
SourceFieldSymbol
)
1336
Dim sym3 = DirectCast(semanticInfo.Symbol,
SourceFieldSymbol
)
Semantics\MeMyBaseMyClassTests.vb (2)
317
Dim meSymbol = DirectCast(field,
SourceFieldSymbol
).MeParameter
348
Dim meSymbol = DirectCast(field,
SourceFieldSymbol
).MeParameter
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\Source\DelegateTests.vb (1)
244
Dim fieldSym = CType(compilation.SourceModule.GlobalNamespace.GetTypeMembers("C1").Single().GetMembers("Field").Single(),
SourceFieldSymbol
)