1 override of IsAnonymousType
Microsoft.CodeAnalysis.CSharp (1)
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
186
public sealed override bool
IsAnonymousType
27 references to IsAnonymousType
Microsoft.CodeAnalysis.CSharp (27)
Binder\Binder.ValueChecks.cs (1)
1860
if (receiver is BoundObjectOrCollectionValuePlaceholder && receiver.Type.
IsAnonymousType
)
Binder\Binder.WithQueryLambdaParametersBinder.cs (1)
75
if ((object)receiverType == null || !receiverType.
IsAnonymousType
)
Binder\Binder_Conversions.cs (1)
782
case TypeKind.Class when !type.
IsAnonymousType
: // We don't want to enable object creation with unspeakable types
Binder\Binder_WithExpression.cs (1)
34
else if (receiverType.
IsAnonymousType
&& !receiverType.IsDelegateType())
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
352
if (sourceType.
IsAnonymousType
)
894
if (type.
IsAnonymousType
)
Emitter\Model\PEModuleBuilder.cs (2)
965
if (namedTypeSymbol.
IsAnonymousType
)
1253
if (container?.
IsAnonymousType
== true)
FlowAnalysis\NullableWalker.cs (3)
3584
return type.IsErrorType() || type.IsDynamic() || type.HasUseSiteError || (type.
IsAnonymousType
&& canIgnoreAnonymousType((NamedTypeSymbol)type));
4487
Debug.Assert(node.Type.
IsAnonymousType
);
8193
if (symbolContainer.
IsAnonymousType
)
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
1064
if (node.Type.
IsAnonymousType
&& node.Arguments.Length != 0)
Lowering\LocalRewriter\LocalRewriter.cs (1)
332
if (delegateType?.
IsAnonymousType
== true && delegateType.ContainingModule == _compilation.SourceModule &&
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
744
if (delegateType.
IsAnonymousType
&& delegateType.ContainingModule == _compilation.SourceModule &&
Lowering\LocalRewriter\LocalRewriter_DelegateCreationExpression.cs (1)
16
Debug.Assert(!node.Type.
IsAnonymousType
); // Missing EnsureParamCollectionAttributeExists call?
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (1)
162
if (type.
IsAnonymousType
)
Lowering\MethodToClassRewriter.cs (2)
623
if (method.ContainingType.
IsAnonymousType
)
661
if (!property.ContainingType.
IsAnonymousType
)
Lowering\SyntheticBoundNodeFactory.cs (1)
1436
bool isNotInGenericType = (methodContainer.AllTypeArgumentCount() == 0 && !methodContainer.
IsAnonymousType
);
Operations\CSharpOperationFactory.cs (1)
716
else if (boundObjectCreationExpression.Type.
IsAnonymousType
)
Symbols\AbstractTypeMap.cs (1)
49
if (previous.
IsAnonymousType
)
Symbols\AnonymousTypes\AnonymousTypeManager.cs (3)
47
Debug.Assert(type.
IsAnonymousType
);
58
Debug.Assert(type.
IsAnonymousType
);
71
Debug.Assert(type.
IsAnonymousType
);
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
768
Debug.Assert(type.
IsAnonymousType
);
Symbols\PublicModel\TypeSymbol.cs (1)
167
bool ITypeSymbol.IsAnonymousType => UnderlyingTypeSymbol.
IsAnonymousType
;
Symbols\TypeSymbolExtensions.cs (1)
855
if (current.
IsAnonymousType
)