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