1 instantiation of FieldOrPropertyInitializer
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4038initializers.Add(new FieldOrPropertyInitializer(fieldOpt, node));
55 references to FieldOrPropertyInitializer
Microsoft.CodeAnalysis.CSharp (55)
Binder\Binder_Initializers.cs (8)
28ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> fieldInitializers, 44ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> initializers, 72ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> initializers, 79foreach (ImmutableArray<FieldOrPropertyInitializer> siblingInitializers in initializers) 86foreach (FieldOrPropertyInitializer initializer in siblingInitializers) 164ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> initializers, 173ImmutableArray<FieldOrPropertyInitializer> siblingInitializers = initializers[i]; 184var initializer = siblingInitializers[j];
Symbols\Source\SourceMemberContainerSymbol.cs (45)
1049internal readonly ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> StaticInitializers; 1050internal readonly ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> InstanceInitializers; 1058ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> staticInitializers, 1059ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> instanceInitializers, 1083internal ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> StaticInitializers 1088internal ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> InstanceInitializers 1143if (!findInitializer(allInitializers, position, tree, out FieldOrPropertyInitializer initializer, out int precedingLength)) 1167static bool findInitializer(ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> initializers, int position, SyntaxTree tree, 1168out FieldOrPropertyInitializer found, out int precedingLength) 1196static int getGroupLength(ImmutableArray<FieldOrPropertyInitializer> initializers) 1199foreach (var initializer in initializers) 1207static int getPrecedingInitializersLength(ImmutableArray<FieldOrPropertyInitializer> initializers, int index) 1218static int getInitializersLength(ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> initializers) 1229static int getInitializerLength(FieldOrPropertyInitializer initializer) 1244private static int IndexOfInitializerContainingPosition(ImmutableArray<FieldOrPropertyInitializer> initializers, int position) 2891public readonly ArrayBuilder<ArrayBuilder<FieldOrPropertyInitializer>> StaticInitializers = ArrayBuilder<ArrayBuilder<FieldOrPropertyInitializer>>.GetInstance(); 2892public readonly ArrayBuilder<ArrayBuilder<FieldOrPropertyInitializer>> InstanceInitializers = ArrayBuilder<ArrayBuilder<FieldOrPropertyInitializer>>.GetInstance(); 2952public readonly ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> StaticInitializers; 2953public readonly ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> InstanceInitializers; 2968ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> staticInitializers, 2969ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> instanceInitializers, 2995public static void AssertInitializers(ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> initializers, CSharpCompilation compilation) 3003foreach (ImmutableArray<FieldOrPropertyInitializer> group in initializers) 3031private ArrayBuilder<FieldOrPropertyInitializer>? InstanceInitializersForPositionalMembers; 3060ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> mergeInitializers() 3088ArrayBuilder<ImmutableArray<FieldOrPropertyInitializer>> groupsBuilder; 3105groupsBuilder = ArrayBuilder<ImmutableArray<FieldOrPropertyInitializer>>.GetInstance(groupCount); 3115groupsBuilder = ArrayBuilder<ImmutableArray<FieldOrPropertyInitializer>>.GetInstance(groupCount + 1); 3129public void AddInstanceInitializerForPositionalMembers(FieldOrPropertyInitializer initializer) 3133InstanceInitializersForPositionalMembers = ArrayBuilder<FieldOrPropertyInitializer>.GetInstance(); 3172internal static ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> ToReadOnlyAndFree(ArrayBuilder<ArrayBuilder<FieldOrPropertyInitializer>> initializers) 3177return ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>>.Empty; 3180var builder = ArrayBuilder<ImmutableArray<FieldOrPropertyInitializer>>.GetInstance(initializers.Count); 3181foreach (ArrayBuilder<FieldOrPropertyInitializer> group in initializers) 4025private static void AddInitializer(ref ArrayBuilder<FieldOrPropertyInitializer>? initializers, FieldSymbol? fieldOpt, CSharpSyntaxNode node) 4029initializers = ArrayBuilder<FieldOrPropertyInitializer>.GetInstance(); 4042ArrayBuilder<ArrayBuilder<FieldOrPropertyInitializer>> allInitializers, 4043ArrayBuilder<FieldOrPropertyInitializer>? siblingsOpt) 4150foreach (FieldOrPropertyInitializer initializer in initializers) 4872static bool hasNonConstantInitializer(ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> initializers) 4912ArrayBuilder<FieldOrPropertyInitializer>? staticInitializers = null; 4913ArrayBuilder<FieldOrPropertyInitializer>? instanceInitializers = null;
Symbols\Source\SourceNamedTypeSymbol.cs (2)
1615foreach (var singleInitializer in initializerGroup) 1631foreach (var singleInitializer in initializerGroup)