91 references to IsDynamic
Microsoft.CodeAnalysis.CSharp (91)
Binder\Binder.IdentifierUsedAsValueFinder.cs (1)
259
Debug.Assert(!type.
IsDynamic
());
Binder\Binder_Await.cs (1)
86
type.
IsDynamic
() ||
Binder\Binder_Conversions.cs (1)
1240
Debug.Assert(!targetType.
IsDynamic
());
Binder\Binder_Deconstruct.cs (1)
622
if (receiver.Type?.
IsDynamic
() ?? false)
Binder\Binder_Expressions.cs (8)
1380
if (type.
IsDynamic
())
1403
if (type.
IsDynamic
()
5788
if (initializerType.
IsDynamic
())
6244
if (initializerType.
IsDynamic
())
6399
!implicitReceiver.Type.
IsDynamic
())
6423
if (implicitReceiver.Type.
IsDynamic
())
7479
Debug.Assert(!leftType.
IsDynamic
());
7615
if ((object)leftType != null && leftType.
IsDynamic
())
Binder\Binder_Invocation.cs (3)
342
if ((object)boundExpression.Type != null && boundExpression.Type.
IsDynamic
())
1366
Debug.Assert(parameterType.
IsDynamic
() || parameterType.SpecialType == SpecialType.System_Object);
1652
if (parameterType.
IsDynamic
() || parameterType.SpecialType == SpecialType.System_Object)
Binder\Binder_Lookup.cs (1)
1745
return (object)type != null && (type.IsDelegateType() || type.
IsDynamic
() || type.IsFunctionPointer());
Binder\Binder_Operators.cs (8)
375
Debug.Assert((object)left.Type != null && left.Type.
IsDynamic
() || (object)right.Type != null && right.Type.
IsDynamic
());
524
if ((object)leftType != null && leftType.
IsDynamic
() || (object)rightType != null && rightType.
IsDynamic
())
1061
if (type.
IsDynamic
())
2295
if (operandType.
IsDynamic
())
4051
if ((object)optRightType != null && optRightType.
IsDynamic
())
4208
if (underlyingRightConversion.Exists && rightOperand.Type?.
IsDynamic
() != true)
Binder\Binder_Patterns.cs (5)
304
if (inputType.
IsDynamic
())
309
if (inputType.IsErrorType() || inputType.
IsDynamic
())
357
Debug.Assert(!inputType.
IsDynamic
());
758
if (patternType.
IsDynamic
())
821
if (expressionType.
IsDynamic
())
Binder\Binder_QueryErrors.cs (1)
45
if (instanceArgument.Type.
IsDynamic
())
Binder\Binder_TupleOperators.cs (4)
88
if ((object)leftType != null && leftType.
IsDynamic
() || (object)rightType != null && rightType.
IsDynamic
())
183
Debug.Assert((object)left.Type != null && left.Type.
IsDynamic
() || (object)right.Type != null && right.Type.
IsDynamic
());
Binder\DecisionDagBuilder.cs (1)
464
if (input.Type.
IsDynamic
() ? type.SpecialType == SpecialType.System_Object : conversion.IsImplicit)
Binder\ForEachLoopBinder.cs (1)
1283
if (collectionExprType.
IsDynamic
())
Binder\Semantics\Conversions\Conversions.cs (1)
413
if (parameter.Type.
IsDynamic
())
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (6)
3015
if (source.
IsDynamic
() && !destination.
IsDynamic
())
3207
Debug.Assert(!method.GetParameterType(0).
IsDynamic
());
3421
if (newCandidate.Type.
IsDynamic
())
3459
if (x.Type.
IsDynamic
() ^ y.Type.
IsDynamic
()) { return false; }
Binder\Semantics\OverloadResolution\OverloadResolution.cs (7)
2778
if (t1.
IsDynamic
() || t2.
IsDynamic
())
2780
Debug.Assert(t1.
IsDynamic
() && t2.
IsDynamic
() ||
2781
t1.
IsDynamic
() && t2.SpecialType == SpecialType.System_Object ||
2782
t2.
IsDynamic
() && t1.SpecialType == SpecialType.System_Object);
4610
((!dynamicConvertsToAnything || !argument.Type.
IsDynamic
()) ?
Binder\UsingStatementBinder.cs (1)
134
if (declarationTypeOpt.
IsDynamic
())
BoundTree\BoundExpressionExtensions.cs (1)
132
return type is { } && type.
IsDynamic
();
CodeGen\EmitExpression.cs (1)
737
Debug.Assert(argument.Type.
IsDynamic
() || argument is BoundFieldAccess { FieldSymbol.RefKind: not RefKind.None }, "passing args byref should not clone them into temps");
Compilation\CSharpCompilation.cs (1)
2195
RoslynDebug.Assert(!namedType.
IsDynamic
());
Compilation\CSharpSemanticModel.cs (3)
3894
Debug.Assert(returnType.
IsDynamic
());
3898
Debug.Assert(rightType.
IsDynamic
());
3903
Debug.Assert(leftType.
IsDynamic
());
FlowAnalysis\NullableWalker.cs (6)
3645
return type.IsErrorType() || type.
IsDynamic
() || type.HasUseSiteError || (type.IsAnonymousType && canIgnoreAnonymousType((NamedTypeSymbol)type));
3692
&& (type.SpecialType == SpecialType.System_Boolean || type.
IsDynamic
() || type.IsErrorType());
8186
if (value.Type is null || value.Type.
IsDynamic
() || value.ConstantValueOpt != null)
11714
Debug.Assert(node.Type.
IsDynamic
());
11733
Debug.Assert(node.Type.
IsDynamic
());
11840
Debug.Assert(node.Type.
IsDynamic
());
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (1)
257
if (resultType.
IsDynamic
())
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (2)
445
if (awaiterTemp.Type.
IsDynamic
())
490
blockBuilder.Add(awaiterTemp.Type.
IsDynamic
()
Lowering\Extensions.cs (1)
40
if (expr.Type.
IsDynamic
())
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
200
if (inputType.
IsDynamic
())
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.cs (1)
55
var lowerToConditional = node.AccessExpression.Type.
IsDynamic
();
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (1)
464
effects, temps, isDynamicAssignment: variable.Type.
IsDynamic
());
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (2)
325
if (memberInit.MemberSymbol == null && memberInit.Type.
IsDynamic
())
367
Debug.Assert(assignment.Type.
IsDynamic
() || TypeSymbol.Equals(rewrittenAccess.Type, assignment.Type, TypeCompareKind.AllIgnoreOptions));
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
85
|| type.
IsDynamic
());
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (2)
157
if (expressionType.
IsDynamic
())
236
if (localType.
IsDynamic
())
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (1)
865
if (argType is { } && !argType.
IsDynamic
())
Operations\CSharpOperationFactory.cs (2)
858
Debug.Assert(boundObjectInitializerMember.Type.
IsDynamic
());
1514
if (boundBinaryOperator.Type.
IsDynamic
() &&
Symbols\Compilation_WellKnownMembers.cs (1)
780
if (type.
IsDynamic
() && refKindOpt == RefKind.None && customModifiersCount == 0)
Symbols\Metadata\PE\DynamicTypeDecoder.cs (1)
145
PeekFlag() && (type.SpecialType != SpecialType.System_Object && !type.
IsDynamic
()))
Symbols\NamedTypeSymbol.cs (1)
994
return other.
IsDynamic
() ? other : this;
Symbols\ReducedExtensionMethodSymbol.cs (1)
127
if (thisType.
IsDynamic
())
Symbols\Source\ParameterHelpers.cs (1)
779
conversion.IsIdentity && parameterType.SpecialType == SpecialType.System_Object && defaultExpression.Type.
IsDynamic
())
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (2)
546
if (source.
IsDynamic
() || target.
IsDynamic
())
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
489
Debug.Assert(!initializer.ReturnType.
IsDynamic
());
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (5)
41
Debug.Assert((leftType.
IsDynamic
() || rightType.
IsDynamic
()) == returnType.
IsDynamic
());
42
Debug.Assert(_containingType.
IsDynamic
() == returnType.
IsDynamic
());