1 instantiation of FieldOrPropertyInitializer
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4544initializers.Add(new FieldOrPropertyInitializer(fieldOpt, node));
56 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)
1070internal readonly ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> StaticInitializers; 1071internal readonly ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> InstanceInitializers; 1079ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> staticInitializers, 1080ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> instanceInitializers, 1104internal ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> StaticInitializers 1109internal ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> InstanceInitializers 1164if (!findInitializer(allInitializers, position, tree, out FieldOrPropertyInitializer initializer, out int precedingLength)) 1188static bool findInitializer(ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> initializers, int position, SyntaxTree tree, 1189out FieldOrPropertyInitializer found, out int precedingLength) 1217static int getGroupLength(ImmutableArray<FieldOrPropertyInitializer> initializers) 1220foreach (var initializer in initializers) 1228static int getPrecedingInitializersLength(ImmutableArray<FieldOrPropertyInitializer> initializers, int index) 1239static int getInitializersLength(ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> initializers) 1250static int getInitializerLength(FieldOrPropertyInitializer initializer) 1265private static int IndexOfInitializerContainingPosition(ImmutableArray<FieldOrPropertyInitializer> initializers, int position) 3169public readonly ArrayBuilder<ArrayBuilder<FieldOrPropertyInitializer>> StaticInitializers = ArrayBuilder<ArrayBuilder<FieldOrPropertyInitializer>>.GetInstance(); 3170public readonly ArrayBuilder<ArrayBuilder<FieldOrPropertyInitializer>> InstanceInitializers = ArrayBuilder<ArrayBuilder<FieldOrPropertyInitializer>>.GetInstance(); 3230public readonly ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> StaticInitializers; 3231public readonly ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> InstanceInitializers; 3248ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> staticInitializers, 3249ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> instanceInitializers, 3275public static void AssertInitializers(ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> initializers, CSharpCompilation compilation) 3283foreach (ImmutableArray<FieldOrPropertyInitializer> group in initializers) 3321private ArrayBuilder<FieldOrPropertyInitializer>? InstanceInitializersForPositionalMembers; 3350ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> mergeInitializers() 3378ArrayBuilder<ImmutableArray<FieldOrPropertyInitializer>> groupsBuilder; 3395groupsBuilder = ArrayBuilder<ImmutableArray<FieldOrPropertyInitializer>>.GetInstance(groupCount); 3405groupsBuilder = ArrayBuilder<ImmutableArray<FieldOrPropertyInitializer>>.GetInstance(groupCount + 1); 3419public void AddInstanceInitializerForPositionalMembers(FieldOrPropertyInitializer initializer) 3423InstanceInitializersForPositionalMembers = ArrayBuilder<FieldOrPropertyInitializer>.GetInstance(); 3463internal static ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> ToReadOnlyAndFree(ArrayBuilder<ArrayBuilder<FieldOrPropertyInitializer>> initializers) 3468return ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>>.Empty; 3471var builder = ArrayBuilder<ImmutableArray<FieldOrPropertyInitializer>>.GetInstance(initializers.Count); 3472foreach (ArrayBuilder<FieldOrPropertyInitializer> group in initializers) 4531private static void AddInitializer(ref ArrayBuilder<FieldOrPropertyInitializer>? initializers, FieldSymbol? fieldOpt, CSharpSyntaxNode node) 4535initializers = ArrayBuilder<FieldOrPropertyInitializer>.GetInstance(); 4548ArrayBuilder<ArrayBuilder<FieldOrPropertyInitializer>> allInitializers, 4549ArrayBuilder<FieldOrPropertyInitializer>? siblingsOpt) 4719foreach (FieldOrPropertyInitializer initializer in initializers) 5450static bool hasNonConstantInitializer(ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> initializers) 5490ArrayBuilder<FieldOrPropertyInitializer>? staticInitializers = null; 5491ArrayBuilder<FieldOrPropertyInitializer>? instanceInitializers = null;
Symbols\Source\SourceNamedTypeSymbol.cs (2)
1625foreach (var singleInitializer in initializerGroup) 1641foreach (var singleInitializer in initializerGroup)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\FieldInitializerBindingTests.cs (1)
290private static ImmutableArray<BoundInitializer> BindInitializersWithoutDiagnostics(SourceNamedTypeSymbol typeSymbol, ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> initializers)