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