2 types derived from SourceFieldSymbol
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\Source\SourceEnumConstantSymbol.vb (1)
14Inherits SourceFieldSymbol
Symbols\Source\SourceMemberFieldSymbol.vb (1)
17Inherits SourceFieldSymbol
2 instantiations of SourceFieldSymbol
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\Source\SourceEnumConstantSymbol.vb (1)
35MyBase.New(containingEnum,
Symbols\Source\SourceMemberFieldSymbol.vb (1)
29MyBase.New(container, syntaxRef, name, memberFlags)
73 references to SourceFieldSymbol
Microsoft.CodeAnalysis.VisualBasic (65)
Binding\Binder_Initializers.vb (5)
144Dim fieldSymbol = DirectCast(firstFieldOrProperty, SourceFieldSymbol) 150Dim fieldSymbol = DirectCast(firstFieldOrProperty, SourceFieldSymbol) 228fieldSymbol As SourceFieldSymbol, 270Dim firstFieldSymbol = DirectCast(fieldSymbols.First, SourceFieldSymbol) 450fieldSymbol As SourceFieldSymbol,
Binding\BinderBuilder.vb (1)
431declarationSyntax = DirectCast(fieldOrProperty, SourceFieldSymbol).DeclarationSyntax
Binding\ConstantFieldsInProgress.vb (6)
16Private ReadOnly _fieldOpt As SourceFieldSymbol 21Friend Sub New(fieldOpt As SourceFieldSymbol, dependencies As Dependencies) 36Friend Sub AddDependency(field As SourceFieldSymbol) 46Private ReadOnly _builder As HashSet(Of SourceFieldSymbol) 48Friend Sub New(builder As HashSet(Of SourceFieldSymbol)) 53Friend Sub Add(field As SourceFieldSymbol)
Binding\InitializerSemanticModel.vb (3)
46Dim fieldSymbol = DirectCast(Me.MemberSymbol, SourceFieldSymbol) 113Dim fieldSymbol = DirectCast(Me.MemberSymbol, SourceFieldSymbol) 170Dim fieldSymbol = TryCast(Me.RootBinder.ContainingMember, SourceFieldSymbol)
Compilation\DocumentationComments\DocumentationCommentCompiler.Field.vb (2)
29Dim sourceField = TryCast(symbol, SourceFieldSymbol) 36Private Sub WriteDocumentationCommentForField(field As SourceFieldSymbol)
Compilation\SyntaxTreeSemanticModel.vb (2)
1167Return DirectCast(SourceFieldSymbol.FindFieldOrWithEventsSymbolFromSyntax(declarationSyntax.Identifier, _syntaxTree, containingType), FieldSymbol) 1204Return SourceFieldSymbol.FindFieldOrWithEventsSymbolFromSyntax(declarationSyntax.Identifier, _syntaxTree, containingType)
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)
219Dim builder = PooledHashSet(Of SourceFieldSymbol).GetInstance() 248Dim graph = PooledDictionary(Of SourceFieldSymbol, DependencyInfo).GetInstance() 256Dim fields = ArrayBuilder(Of SourceFieldSymbol).GetInstance() 264Dim map = New HashSet(Of SourceFieldSymbol)(order.Select(Function(o) o.Field).Distinct()) 276Public Dependencies As ImmutableHashSet(Of SourceFieldSymbol) 281Public DependedOnBy As ImmutableHashSet(Of SourceFieldSymbol) 288Private Sub CreateGraph(graph As Dictionary(Of SourceFieldSymbol, DependencyInfo)) 290Dim pending = ArrayBuilder(Of SourceFieldSymbol).GetInstance() 294Dim field As SourceFieldSymbol = pending.Pop() 304node.DependedOnBy = ImmutableHashSet(Of SourceFieldSymbol).Empty 307Dim dependencies As ImmutableHashSet(Of SourceFieldSymbol) = field.GetConstantValueDependencies() 317For Each dependency As SourceFieldSymbol In dependencies 322node.DependedOnBy = ImmutableHashSet(Of SourceFieldSymbol).Empty 339Private Function GetConstantValueDependencies() As ImmutableHashSet(Of SourceFieldSymbol) 345Return ImmutableHashSet(Of SourceFieldSymbol).Empty 348Dim builder = PooledHashSet(Of SourceFieldSymbol).GetInstance() 354Dim result As ImmutableHashSet(Of SourceFieldSymbol) 364result = ImmutableHashSet(Of SourceFieldSymbol).Empty 366result = ImmutableHashSet(Of SourceFieldSymbol).Empty.Union(builder) 375Private Shared Sub CheckGraph(graph As Dictionary(Of SourceFieldSymbol, DependencyInfo)) 381Dim field As SourceFieldSymbol = pair.Key 387For Each dependency As SourceFieldSymbol In node.Dependencies 394For Each dependedOnBy As SourceFieldSymbol In node.DependedOnBy 410Private Shared Sub OrderGraph(graph As Dictionary(Of SourceFieldSymbol, DependencyInfo), order As ArrayBuilder(Of FieldInfo)) 413Dim lastUpdated As PooledHashSet(Of SourceFieldSymbol) = Nothing 414Dim fieldsInvolvedInCycles As ArrayBuilder(Of SourceFieldSymbol) = Nothing 418Dim search = If(DirectCast(lastUpdated, IEnumerable(Of SourceFieldSymbol)), graph.Keys) 419Dim [set] = ArrayBuilder(Of SourceFieldSymbol).GetInstance() 430Dim updated = PooledHashSet(Of SourceFieldSymbol).GetInstance() 475Dim updated = PooledHashSet(Of SourceFieldSymbol).GetInstance() 504graph As Dictionary(Of SourceFieldSymbol, DependencyInfo), 505ByRef fieldsInvolvedInCycles As ArrayBuilder(Of SourceFieldSymbol) 506) As SourceFieldSymbol 510fieldsInvolvedInCycles = ArrayBuilder(Of SourceFieldSymbol).GetInstance(graph.Count) 518Dim field As SourceFieldSymbol = fieldsInvolvedInCycles.Pop() 526Private Shared Function IsPartOfCycle(graph As Dictionary(Of SourceFieldSymbol, DependencyInfo), field As SourceFieldSymbol) As Boolean 527Dim [set] = PooledHashSet(Of SourceFieldSymbol).GetInstance() 528Dim stack = ArrayBuilder(Of SourceFieldSymbol).GetInstance() 530Dim stopAt As SourceFieldSymbol = field
Symbols\Source\SourceMemberFieldSymbol.vb (1)
561Dim fieldSymbol As SourceFieldSymbol
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Emit\EditAndContinue\SymbolMatcherTests.vb (2)
609Dim otherSymbol = DirectCast(other.GetInternalSymbol(), SourceFieldSymbol) 887Dim otherSymbol = DirectCast(other.GetInternalSymbol(), SourceFieldSymbol)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (5)
Semantics\GetSemanticInfoTests.vb (3)
1324Dim sym = DirectCast(semanticInfo.Symbol, SourceFieldSymbol) 1330Dim sym2 = DirectCast(semanticInfo.Symbol, SourceFieldSymbol) 1336Dim sym3 = DirectCast(semanticInfo.Symbol, SourceFieldSymbol)
Semantics\MeMyBaseMyClassTests.vb (2)
317Dim meSymbol = DirectCast(field, SourceFieldSymbol).MeParameter 348Dim meSymbol = DirectCast(field, SourceFieldSymbol).MeParameter
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\Source\DelegateTests.vb (1)
244Dim fieldSym = CType(compilation.SourceModule.GlobalNamespace.GetTypeMembers("C1").Single().GetMembers("Field").Single(), SourceFieldSymbol)