1 instantiation of FieldOrPropertyInitializer
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4024initializers.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) 2877public readonly ArrayBuilder<ArrayBuilder<FieldOrPropertyInitializer>> StaticInitializers = ArrayBuilder<ArrayBuilder<FieldOrPropertyInitializer>>.GetInstance(); 2878public readonly ArrayBuilder<ArrayBuilder<FieldOrPropertyInitializer>> InstanceInitializers = ArrayBuilder<ArrayBuilder<FieldOrPropertyInitializer>>.GetInstance(); 2938public readonly ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> StaticInitializers; 2939public readonly ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> InstanceInitializers; 2954ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> staticInitializers, 2955ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> instanceInitializers, 2981public static void AssertInitializers(ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> initializers, CSharpCompilation compilation) 2989foreach (ImmutableArray<FieldOrPropertyInitializer> group in initializers) 3017private ArrayBuilder<FieldOrPropertyInitializer>? InstanceInitializersForPositionalMembers; 3046ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> mergeInitializers() 3074ArrayBuilder<ImmutableArray<FieldOrPropertyInitializer>> groupsBuilder; 3091groupsBuilder = ArrayBuilder<ImmutableArray<FieldOrPropertyInitializer>>.GetInstance(groupCount); 3101groupsBuilder = ArrayBuilder<ImmutableArray<FieldOrPropertyInitializer>>.GetInstance(groupCount + 1); 3115public void AddInstanceInitializerForPositionalMembers(FieldOrPropertyInitializer initializer) 3119InstanceInitializersForPositionalMembers = ArrayBuilder<FieldOrPropertyInitializer>.GetInstance(); 3158internal static ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> ToReadOnlyAndFree(ArrayBuilder<ArrayBuilder<FieldOrPropertyInitializer>> initializers) 3163return ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>>.Empty; 3166var builder = ArrayBuilder<ImmutableArray<FieldOrPropertyInitializer>>.GetInstance(initializers.Count); 3167foreach (ArrayBuilder<FieldOrPropertyInitializer> group in initializers) 4011private static void AddInitializer(ref ArrayBuilder<FieldOrPropertyInitializer>? initializers, FieldSymbol? fieldOpt, CSharpSyntaxNode node) 4015initializers = ArrayBuilder<FieldOrPropertyInitializer>.GetInstance(); 4028ArrayBuilder<ArrayBuilder<FieldOrPropertyInitializer>> allInitializers, 4029ArrayBuilder<FieldOrPropertyInitializer>? siblingsOpt) 4136foreach (FieldOrPropertyInitializer initializer in initializers) 4858static bool hasNonConstantInitializer(ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> initializers) 4898ArrayBuilder<FieldOrPropertyInitializer>? staticInitializers = null; 4899ArrayBuilder<FieldOrPropertyInitializer>? instanceInitializers = null;
Symbols\Source\SourceNamedTypeSymbol.cs (2)
1599foreach (var singleInitializer in initializerGroup) 1615foreach (var singleInitializer in initializerGroup)