1 override of IsAnonymousType
Microsoft.CodeAnalysis.CSharp (1)
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
184public sealed override bool IsAnonymousType
28 references to IsAnonymousType
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder.ValueChecks.cs (1)
1650if (receiver is BoundObjectOrCollectionValuePlaceholder && receiver.Type.IsAnonymousType)
Binder\Binder.WithQueryLambdaParametersBinder.cs (1)
75if ((object)receiverType == null || !receiverType.IsAnonymousType)
Binder\Binder_Conversions.cs (1)
382case 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)
565if (sourceType.IsAnonymousType) 1094if (type.IsAnonymousType)
Emitter\Model\PEModuleBuilder.cs (2)
946if (namedTypeSymbol.IsAnonymousType) 1310if (container?.IsAnonymousType == true)
FlowAnalysis\NullableWalker.cs (3)
3372return type.IsErrorType() || type.IsDynamic() || type.HasUseSiteError || (type.IsAnonymousType && canIgnoreAnonymousType((NamedTypeSymbol)type)); 4080Debug.Assert(node.Type.IsAnonymousType); 7353if (symbolContainer.IsAnonymousType)
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
974if (node.Type.IsAnonymousType && node.Arguments.Length != 0)
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (1)
155if (type.IsAnonymousType)
Lowering\MethodToClassRewriter.cs (2)
619else if (method.ContainingType.IsAnonymousType) 657if (!property.ContainingType.IsAnonymousType)
Lowering\SyntheticBoundNodeFactory.cs (1)
1334(methodContainer.AllTypeArgumentCount() == 0 && !methodContainer.IsAnonymousType) ?
Operations\CSharpOperationFactory.cs (1)
713else if (boundObjectCreationExpression.Type.IsAnonymousType)
Symbols\AbstractTypeMap.cs (1)
48if (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)
767Debug.Assert(type.IsAnonymousType);
Symbols\PublicModel\TypeSymbol.cs (1)
167bool ITypeSymbol.IsAnonymousType => UnderlyingTypeSymbol.IsAnonymousType;
Symbols\TypeSymbolExtensions.cs (1)
767if (current.IsAnonymousType)
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler.UnitTests (1)
ExpressionCompilerTests.cs (1)
6239Assert.True(returnType.IsAnonymousType);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\RefFieldTests.cs (3)
26038Assert.True(type.IsAnonymousType); 26090Assert.True(type.IsAnonymousType); 26142Assert.True(type.IsAnonymousType);