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