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