3 instantiations of PEFieldSymbol
Microsoft.CodeAnalysis.CSharp (3)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (3)
929builder.Add(new PEFieldSymbol(moduleSymbol, this, fieldDef)); 1300var field = new PEFieldSymbol(moduleSymbol, this, fieldDef); 1922var symbol = new PEFieldSymbol(moduleSymbol, this, fieldRid);
48 references to PEFieldSymbol
Microsoft.CodeAnalysis.CSharp (25)
Emitter\EditAndContinue\CSharpDefinitionMap.cs (1)
85if (_mapToMetadata.MapDefinition(def)?.GetInternalSymbol() is PEFieldSymbol other)
Symbols\Metadata\PE\MetadataDecoder.cs (2)
521PEFieldSymbol field = member as PEFieldSymbol;
Symbols\Metadata\PE\PEEventSymbol.cs (6)
32private readonly PEFieldSymbol? _associatedFieldOpt; 58MultiDictionary<string, PEFieldSymbol> privateFieldNameToSymbols) 128PEFieldSymbol? associatedField = GetAssociatedField(privateFieldNameToSymbols, isWindowsRuntimeEvent); 155private PEFieldSymbol? GetAssociatedField(MultiDictionary<string, PEFieldSymbol> privateFieldNameToSymbols, bool isWindowsRuntimeEvent) 158foreach (PEFieldSymbol candidateAssociatedField in privateFieldNameToSymbols[_name])
Symbols\Metadata\PE\PENamedTypeSymbol.cs (16)
131internal ImmutableArray<PEFieldSymbol> lazyInstanceEnumFields; 920var builder = ArrayBuilder<PEFieldSymbol>.GetInstance(); 954var field = (PEFieldSymbol)staticFields[staticIndex]; 1012foreach (PEFieldSymbol field in nonEventFields) 1018foreach (PEFieldSymbol field in eventFields) 1300var field = new PEFieldSymbol(moduleSymbol, this, fieldDef); 1313ArrayBuilder<PEFieldSymbol> fieldMembers = ArrayBuilder<PEFieldSymbol>.GetInstance(); 1316MultiDictionary<string, PEFieldSymbol> privateFieldNameToSymbols = this.CreateFields(fieldMembers); 1354foreach (PEFieldSymbol field in fieldMembers) 1881private MultiDictionary<string, PEFieldSymbol> CreateFields(ArrayBuilder<PEFieldSymbol> fieldMembers) 1883var privateFieldNameToSymbols = new MultiDictionary<string, PEFieldSymbol>(); 1922var symbol = new PEFieldSymbol(moduleSymbol, this, fieldRid); 1999MultiDictionary<string, PEFieldSymbol> privateFieldNameToSymbols,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (12)
CodeGen\CodeGenTupleTest.cs (4)
28303Assert.IsType<PEFieldSymbol>(item); 28383Assert.IsType<PEFieldSymbol>(item); 28470Assert.IsType<PEFieldSymbol>(item); 28541Assert.IsType<PEFieldSymbol>(backingField);
Emit\NoPiaEmbedTypes.cs (6)
1240var f5 = (PEFieldSymbol)test5.GetMembers()[0]; 1280var value__ = (PEFieldSymbol)fieldToEmit[0]; 1292var f1 = (PEFieldSymbol)fieldToEmit[1];
Emit\OptionalArgumentsTests.cs (2)
463var field = (PEFieldSymbol)module.GlobalNamespace.GetTypeMember("C").GetField("F15");
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Attributes\AttributeTests_Synthesized.cs (4)
179var property = type.GetMember<PEFieldSymbol>(GeneratedNames.MakeBackingFieldName("MyProp")); 182var eventField = (PEFieldSymbol)type.GetMember<PEEventSymbol>("MyEvent").AssociatedField;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\InitOnlyMemberTests.cs (2)
1501var peBackingField = (PEFieldSymbol)backingField;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\Metadata\PE\LoadingAttributes.cs (2)
1306var field = class1.GetMember<PEFieldSymbol>("d1");
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
RequiredMemberAttributesVisitor.cs (1)
41case PEFieldSymbol field:
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
Metadata\WinMdDumpTest.cs (2)
108var field = (PEFieldSymbol)member;