91 references to IsDynamic
Microsoft.CodeAnalysis.CSharp (91)
Binder\Binder.IdentifierUsedAsValueFinder.cs (1)
259Debug.Assert(!type.IsDynamic());
Binder\Binder_Await.cs (1)
86type.IsDynamic() ||
Binder\Binder_Conversions.cs (1)
1240Debug.Assert(!targetType.IsDynamic());
Binder\Binder_Deconstruct.cs (1)
622if (receiver.Type?.IsDynamic() ?? false)
Binder\Binder_Expressions.cs (8)
1380if (type.IsDynamic()) 1403if (type.IsDynamic() 5785if (initializerType.IsDynamic()) 6241if (initializerType.IsDynamic()) 6396!implicitReceiver.Type.IsDynamic()) 6420if (implicitReceiver.Type.IsDynamic()) 7478Debug.Assert(!leftType.IsDynamic()); 7614if ((object)leftType != null && leftType.IsDynamic())
Binder\Binder_Invocation.cs (3)
342if ((object)boundExpression.Type != null && boundExpression.Type.IsDynamic()) 1366Debug.Assert(parameterType.IsDynamic() || parameterType.SpecialType == SpecialType.System_Object); 1652if (parameterType.IsDynamic() || parameterType.SpecialType == SpecialType.System_Object)
Binder\Binder_Lookup.cs (1)
1745return (object)type != null && (type.IsDelegateType() || type.IsDynamic() || type.IsFunctionPointer());
Binder\Binder_Operators.cs (8)
375Debug.Assert((object)left.Type != null && left.Type.IsDynamic() || (object)right.Type != null && right.Type.IsDynamic()); 524if ((object)leftType != null && leftType.IsDynamic() || (object)rightType != null && rightType.IsDynamic()) 1061if (type.IsDynamic()) 2290if (operandType.IsDynamic()) 4046if ((object)optRightType != null && optRightType.IsDynamic()) 4203if (underlyingRightConversion.Exists && rightOperand.Type?.IsDynamic() != true)
Binder\Binder_Patterns.cs (5)
304if (inputType.IsDynamic()) 309if (inputType.IsErrorType() || inputType.IsDynamic()) 357Debug.Assert(!inputType.IsDynamic()); 758if (patternType.IsDynamic()) 821if (expressionType.IsDynamic())
Binder\Binder_QueryErrors.cs (1)
45if (instanceArgument.Type.IsDynamic())
Binder\Binder_TupleOperators.cs (4)
88if ((object)leftType != null && leftType.IsDynamic() || (object)rightType != null && rightType.IsDynamic()) 183Debug.Assert((object)left.Type != null && left.Type.IsDynamic() || (object)right.Type != null && right.Type.IsDynamic());
Binder\DecisionDagBuilder.cs (1)
464if (input.Type.IsDynamic() ? type.SpecialType == SpecialType.System_Object : conversion.IsImplicit)
Binder\ForEachLoopBinder.cs (1)
1283if (collectionExprType.IsDynamic())
Binder\Semantics\Conversions\Conversions.cs (1)
413if (parameter.Type.IsDynamic())
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (6)
3015if (source.IsDynamic() && !destination.IsDynamic()) 3207Debug.Assert(!method.GetParameterType(0).IsDynamic()); 3421if (newCandidate.Type.IsDynamic()) 3459if (x.Type.IsDynamic() ^ y.Type.IsDynamic()) { return false; }
Binder\Semantics\OverloadResolution\OverloadResolution.cs (7)
2770if (t1.IsDynamic() || t2.IsDynamic()) 2772Debug.Assert(t1.IsDynamic() && t2.IsDynamic() || 2773t1.IsDynamic() && t2.SpecialType == SpecialType.System_Object || 2774t2.IsDynamic() && t1.SpecialType == SpecialType.System_Object); 4589((!dynamicConvertsToAnything || !argument.Type.IsDynamic()) ?
Binder\UsingStatementBinder.cs (1)
134if (declarationTypeOpt.IsDynamic())
BoundTree\BoundExpressionExtensions.cs (1)
132return type is { } && type.IsDynamic();
CodeGen\EmitExpression.cs (1)
737Debug.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)
2190RoslynDebug.Assert(!namedType.IsDynamic());
Compilation\CSharpSemanticModel.cs (3)
3894Debug.Assert(returnType.IsDynamic()); 3898Debug.Assert(rightType.IsDynamic()); 3903Debug.Assert(leftType.IsDynamic());
FlowAnalysis\NullableWalker.cs (6)
3584return type.IsErrorType() || type.IsDynamic() || type.HasUseSiteError || (type.IsAnonymousType && canIgnoreAnonymousType((NamedTypeSymbol)type)); 3631&& (type.SpecialType == SpecialType.System_Boolean || type.IsDynamic() || type.IsErrorType()); 8128if (value.Type is null || value.Type.IsDynamic() || value.ConstantValueOpt != null) 11656Debug.Assert(node.Type.IsDynamic()); 11675Debug.Assert(node.Type.IsDynamic()); 11782Debug.Assert(node.Type.IsDynamic());
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (1)
257if (resultType.IsDynamic())
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (2)
431if (awaiterTemp.Type.IsDynamic()) 476blockBuilder.Add(awaiterTemp.Type.IsDynamic()
Lowering\Extensions.cs (1)
40if (expr.Type.IsDynamic())
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
200if (inputType.IsDynamic())
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.cs (1)
55var lowerToConditional = node.AccessExpression.Type.IsDynamic();
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (1)
464effects, temps, isDynamicAssignment: variable.Type.IsDynamic());
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (2)
325if (memberInit.MemberSymbol == null && memberInit.Type.IsDynamic()) 367Debug.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)
157if (expressionType.IsDynamic()) 236if (localType.IsDynamic())
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (1)
865if (argType is { } && !argType.IsDynamic())
Operations\CSharpOperationFactory.cs (2)
858Debug.Assert(boundObjectInitializerMember.Type.IsDynamic()); 1514if (boundBinaryOperator.Type.IsDynamic() &&
Symbols\Compilation_WellKnownMembers.cs (1)
780if (type.IsDynamic() && refKindOpt == RefKind.None && customModifiersCount == 0)
Symbols\Metadata\PE\DynamicTypeDecoder.cs (1)
145PeekFlag() && (type.SpecialType != SpecialType.System_Object && !type.IsDynamic()))
Symbols\NamedTypeSymbol.cs (1)
999return other.IsDynamic() ? other : this;
Symbols\ReducedExtensionMethodSymbol.cs (1)
127if (thisType.IsDynamic())
Symbols\Source\ParameterHelpers.cs (1)
779conversion.IsIdentity && parameterType.SpecialType == SpecialType.System_Object && defaultExpression.Type.IsDynamic())
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (2)
546if (source.IsDynamic() || target.IsDynamic())
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
489Debug.Assert(!initializer.ReturnType.IsDynamic());
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (5)
41Debug.Assert((leftType.IsDynamic() || rightType.IsDynamic()) == returnType.IsDynamic()); 42Debug.Assert(_containingType.IsDynamic() == returnType.IsDynamic());