5 instantiations of AnonymousTypeField
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_AnonymousTypes.cs (1)
92
fields[i] = new
AnonymousTypeField
(
Binder\Binder_Expressions.cs (1)
10879
fieldsBuilder.Add(new
AnonymousTypeField
(name: "", location, returnType, returnRefKind, ScopedKind.None));
Binder\Binder_Query.cs (1)
818
new
AnonymousTypeField
(fieldName, fieldValue.Syntax.Location, TypeWithAnnotations.Create(TypeOrError(fieldValue)), RefKind.None, ScopedKind.None);
Compilation\CSharpCompilation.cs (1)
4196
fields.Add(new
AnonymousTypeField
(name, location, TypeWithAnnotations.Create(type, nullableAnnotation), RefKind.None, ScopedKind.None));
Symbols\AnonymousTypes\AnonymousTypeField.cs (1)
58
return new
AnonymousTypeField
(Name, Location, type, RefKind, Scope, DefaultValue, IsParams, HasUnscopedRefAttribute);
30 references to AnonymousTypeField
Microsoft.CodeAnalysis.CSharp (30)
Binder\Binder_AnonymousTypes.cs (3)
32
AnonymousTypeField
[] fields = new
AnonymousTypeField
[fieldCount];
118
AnonymousTypeField
field = fields[i];
Binder\Binder_Expressions.cs (1)
10864
var fieldsBuilder = ArrayBuilder<
AnonymousTypeField
>.GetInstance(parameterTypes.Length + 1);
Binder\Binder_Query.cs (1)
817
AnonymousTypeField
createField(string fieldName, BoundExpression fieldValue) =>
Compilation\CSharpCompilation.cs (1)
4188
var fields = ArrayBuilder<
AnonymousTypeField
>.GetInstance();
Symbols\AnonymousTypes\AnonymousTypeDescriptor.cs (4)
21
public readonly ImmutableArray<
AnonymousTypeField
> Fields;
32
public AnonymousTypeDescriptor(ImmutableArray<
AnonymousTypeField
> fields, Location location)
55
foreach (
var
field in this.Fields)
81
static (x, y, comparison) =>
AnonymousTypeField
.Equals(x, y, comparison));
Symbols\AnonymousTypes\AnonymousTypeField.cs (3)
56
public
AnonymousTypeField
WithType(TypeWithAnnotations type)
61
internal static bool Equals(in
AnonymousTypeField
x, in
AnonymousTypeField
y, TypeCompareKind comparison)
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (5)
205
var
field = fields[i];
311
var
returnParameter = fields[n - 1];
315
static bool hasDefaultScope(bool useUpdatedEscapeRules,
AnonymousTypeField
field)
329
static bool isValidTypeArgument(bool useUpdatedEscapeRules, bool runtimeSupportsByRefLikeGenerics,
AnonymousTypeField
field, ref bool needsIndexedName)
354
foreach (
var
field in typeDescr.Fields)
Symbols\AnonymousTypes\PublicSymbols\AnonymousType.DelegatePublicSymbol.cs (2)
60
var
field = fields[i];
64
var
returnField = fields.Last();
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.DelegateTemplateSymbol.cs (6)
119
ImmutableArray<
AnonymousTypeField
> fields)
122
var
returnParameter = fields[^1];
129
var
field = fields[i];
193
ImmutableArray<
AnonymousTypeField
> fields,
200
var
field = fields[i];
205
var
returnParameter = fields[^1];
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (3)
29
internal AnonymousTypePropertySymbol(AnonymousTypeTemplateSymbol container,
AnonymousTypeField
field, TypeWithAnnotations fieldTypeWithAnnotations, int index) :
34
internal AnonymousTypePropertySymbol(AnonymousTypePublicSymbol container,
AnonymousTypeField
field, int index) :
41
AnonymousTypeField
field,
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TemplateSymbol.cs (1)
55
AnonymousTypeField
field = typeDescr.Fields[fieldIndex];