1 instantiation of AnonymousTypeManager
Microsoft.CodeAnalysis.CSharp (1)
Compilation\CSharpCompilation.cs (1)
468
_anonymousTypeManager = new
AnonymousTypeManager
(this);
49 references to AnonymousTypeManager
Microsoft.CodeAnalysis.CSharp (48)
Binder\Binder_AnonymousTypes.cs (1)
105
AnonymousTypeManager
manager = this.Compilation.AnonymousTypeManager;
Binder\Binder_Query.cs (1)
812
AnonymousTypeManager
manager = this.Compilation.AnonymousTypeManager;
Compilation\CSharpCompilation.cs (2)
94
private readonly
AnonymousTypeManager
_anonymousTypeManager;
178
internal
AnonymousTypeManager
AnonymousTypeManager
Compilation\MemberSemanticModel.cs (1)
1087
return
AnonymousTypeManager
.GetAnonymousTypeProperty(anonymousType, index).GetPublicSymbol();
Compiler\AnonymousTypeMethodBodySynthesizer.cs (3)
100
AnonymousTypeManager
manager = ((AnonymousTypeTemplateSymbol)this.ContainingType).Manager;
162
AnonymousTypeManager
manager = ((AnonymousTypeTemplateSymbol)this.ContainingType).Manager;
225
AnonymousTypeManager
manager = ((AnonymousTypeTemplateSymbol)this.ContainingType).Manager;
Compiler\MethodCompiler.cs (2)
580
if (
AnonymousTypeManager
.IsAnonymousTypeTemplate(containingType))
583
foreach (var method in
AnonymousTypeManager
.GetAnonymousTypeHiddenMethods(containingType))
Emitter\EditAndContinue\CSharpDefinitionMap.cs (1)
56
internal bool TryGetAnonymousTypeName(
AnonymousTypeManager
.AnonymousTypeTemplateSymbol template, [NotNullWhen(true)] out string? name, out int index)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (9)
95
internal bool TryGetAnonymousTypeName(
AnonymousTypeManager
.AnonymousTypeTemplateSymbol template, [NotNullWhen(true)] out string? name, out int index)
331
internal bool TryGetAnonymousTypeName(
AnonymousTypeManager
.AnonymousTypeTemplateSymbol type, [NotNullWhen(true)] out string? name, out int index)
544
if (sourceType is
AnonymousTypeManager
.AnonymousTypeTemplateSymbol typeTemplate)
550
else if (sourceType is
AnonymousTypeManager
.AnonymousDelegateTemplateSymbol delegateTemplate)
567
return Visit(
AnonymousTypeManager
.TranslateAnonymousTypeSymbol(sourceType));
679
internal bool TryFindAnonymousType(
AnonymousTypeManager
.AnonymousTypeTemplateSymbol type, out AnonymousTypeValue otherType)
686
internal bool TryFindAnonymousDelegate(
AnonymousTypeManager
.AnonymousDelegateTemplateSymbol delegateSymbol, out SynthesizedDelegateValue otherDelegateSymbol)
694
internal bool TryFindAnonymousDelegateWithIndexedName(
AnonymousTypeManager
.AnonymousDelegateTemplateSymbol type, out AnonymousTypeValue otherType)
1096
return this.Visit(
AnonymousTypeManager
.TranslateAnonymousTypeSymbol(type));
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
330
internal override bool TryGetAnonymousTypeName(
AnonymousTypeManager
.AnonymousTypeTemplateSymbol template, [NotNullWhen(true)] out string? name, out int index)
Emitter\Model\PEModuleBuilder.cs (3)
516
internal virtual bool TryGetAnonymousTypeName(
AnonymousTypeManager
.AnonymousTypeTemplateSymbol template, out string name, out int index)
949
namedTypeSymbol =
AnonymousTypeManager
.TranslateAnonymousTypeSymbol(namedTypeSymbol);
1313
methodSymbol =
AnonymousTypeManager
.TranslateAnonymousTypeMethodSymbol(methodSymbol);
FlowAnalysis\NullableWalker.cs (4)
3376
return
AnonymousTypeManager
.GetAnonymousTypeFieldTypes(type).Any(static t => canIgnoreAnyType(t.Type));
4091
anonymousType =
AnonymousTypeManager
.ConstructAnonymousTypeSymbol(anonymousType, argumentsWithAnnotations);
4098
var property =
AnonymousTypeManager
.GetAnonymousTypeProperty(anonymousType, i);
7360
return
AnonymousTypeManager
.GetAnonymousTypeProperty(containingType, memberIndex.GetValueOrDefault());
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
980
membersBuilder.Add(_bound.MethodInfo(
AnonymousTypeManager
.GetAnonymousTypeProperty(anonType, i).GetMethod));
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (2)
157
var anonymousType = (
AnonymousTypeManager
.AnonymousTypePublicSymbol)type;
192
ImmutableArray<BoundExpression> getAnonymousTypeValues(BoundWithExpression withExpr, BoundExpression oldValue,
AnonymousTypeManager
.AnonymousTypePublicSymbol anonymousType,
Operations\CSharpOperationFactory_Methods.cs (1)
355
PropertySymbol property =
AnonymousTypeManager
.GetAnonymousTypeProperty(type.GetSymbol<NamedTypeSymbol>(), i);
Symbols\AbstractTypeMap.cs (1)
50
return ((
AnonymousTypeManager
.AnonymousTypeOrDelegatePublicSymbol)previous).SubstituteTypes(this);
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (2)
17
internal readonly
AnonymousTypeManager
Manager;
22
internal AnonymousTypeOrDelegatePublicSymbol(
AnonymousTypeManager
manager, AnonymousTypeDescriptor typeDescr)
Symbols\AnonymousTypes\PublicSymbols\AnonymousType.DelegatePublicSymbol.cs (1)
19
internal AnonymousDelegatePublicSymbol(
AnonymousTypeManager
manager, AnonymousTypeDescriptor typeDescr) :
Symbols\AnonymousTypes\PublicSymbols\AnonymousType.TypePublicSymbol.cs (1)
31
internal AnonymousTypePublicSymbol(
AnonymousTypeManager
manager, AnonymousTypeDescriptor typeDescr) :
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.DelegateTemplateSymbol.cs (5)
31
AnonymousTypeManager
manager,
78
typeParameters.Add(new
AnonymousTypeManager
.AnonymousTypeParameterSymbol(containingType, i, "T" + (i + 1)));
83
typeParameters.Add(new
AnonymousTypeManager
.AnonymousTypeParameterSymbol(containingType, parameterCount, "TResult"));
95
internal AnonymousDelegateTemplateSymbol(
AnonymousTypeManager
manager, AnonymousTypeDescriptor typeDescr)
152
internal AnonymousDelegateTemplateSymbol(
AnonymousTypeManager
manager, AnonymousTypeDescriptor typeDescr, ImmutableArray<TypeParameterSymbol> typeParametersToSubstitute)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.FieldSymbol.cs (1)
150
AnonymousTypeManager
manager = ((AnonymousTypeTemplateSymbol)this.ContainingSymbol).Manager;
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.SynthesizedMethodBase.cs (1)
176
protected
AnonymousTypeManager
Manager
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TemplateSymbol.cs (1)
39
internal AnonymousTypeTemplateSymbol(
AnonymousTypeManager
manager, AnonymousTypeDescriptor typeDescr) :
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (2)
38
internal readonly
AnonymousTypeManager
Manager;
40
internal AnonymousTypeOrDelegateTemplateSymbol(
AnonymousTypeManager
manager, Location location)
Symbols\TypeSymbolExtensions.cs (1)
769
var anonymous = (
AnonymousTypeManager
.AnonymousTypeOrDelegatePublicSymbol)current;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\RecordStructTests.cs (1)
538
Assert.IsType<
AnonymousTypeManager
.AnonymousTypePublicSymbol>(((Symbols.PublicModel.NonErrorNamedTypeSymbol)type).UnderlyingNamedTypeSymbol);