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