66 references to Dynamic
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
183if (value.Type.TypeKind == TypeKind.Dynamic)
Microsoft.CodeAnalysis.CSharp (33)
Binder\Binder_Constraints.cs (1)
591case TypeKind.Dynamic:
Binder\Binder_Crefs.cs (1)
597case TypeKind.Dynamic:
Binder\Binder_Expressions.cs (2)
5178case TypeKind.Dynamic: 9288case TypeKind.Dynamic:
Binder\Binder_InterpolatedString.cs (2)
397if (value.Type?.TypeKind == TypeKind.Dynamic) 433&& unconvertedInterpolatedString.Parts.All(p => p is not BoundStringInsert { Value.Type.TypeKind: TypeKind.Dynamic });
Binder\Binder_Lookup.cs (2)
197case TypeKind.Dynamic: 1880case TypeKind.Dynamic:
Binder\Binder_Operators.cs (4)
3316if (targetTypeKind == TypeKind.Dynamic) 3327if (operandType.TypeKind == TypeKind.Dynamic) 3814if (operandTypeKind == TypeKind.Dynamic) 3821if (targetTypeKind == TypeKind.Dynamic)
Binder\ForEachLoopBinder.cs (1)
1605case TypeKind.Dynamic: // Not specifically mentioned in the spec, but consistent with Dev10.
Compilation\CSharpCompilation.cs (5)
4255if (csharpReturnType.TypeKind is TypeKind.Dynamic || 4256csharpLeftType.TypeKind is TypeKind.Dynamic || 4257csharpRightType.TypeKind is TypeKind.Dynamic) 4481if (csharpReturnType.TypeKind is TypeKind.Dynamic || 4482csharpOperandType.TypeKind is TypeKind.Dynamic)
Compiler\ClsComplianceChecker.cs (1)
987case TypeKind.Dynamic:
Symbols\Compilation_WellKnownMembers.cs (1)
942case TypeKind.Dynamic:
Symbols\ConstraintsHelper.cs (1)
1460case TypeKind.Dynamic:
Symbols\DynamicTypeSymbol.cs (2)
66return TypeKind.Dynamic; 202if (ReferenceEquals(this, t2) || t2.TypeKind == TypeKind.Dynamic)
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (1)
93case TypeKind.Dynamic:
Symbols\MissingMetadataTypeSymbol.cs (1)
376t2.TypeKind == TypeKind.Dynamic &&
Symbols\NamedTypeSymbol.cs (1)
791if (t2.TypeKind == TypeKind.Dynamic)
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (1)
609case TypeKind.Dynamic:
Symbols\TypeSymbolExtensions.cs (5)
318case TypeKind.Dynamic: 357return type.TypeKind == TypeKind.Dynamic; 834case TypeKind.Dynamic: 1244private static readonly Func<TypeSymbol, object?, bool, bool> s_containsDynamicPredicate = (type, unused1, unused2) => type.TypeKind == TypeKind.Dynamic; 1515case TypeKind.Dynamic:
Utilities\TypeSymbolExtensions.cs (1)
192case TypeKind.Dynamic:
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
138if (operation?.Parent is IAssignmentOperation { Type.TypeKind: TypeKind.Dynamic })
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
128if (asType?.TypeKind == TypeKind.Dynamic)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
121if (isType?.TypeKind == TypeKind.Dynamic)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
561originalConvertedType.IsReferenceType && rewrittenConvertedType.TypeKind == TypeKind.Dynamic)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
276if (declaredType.TypeKind == TypeKind.Dynamic)
Microsoft.CodeAnalysis.CSharp.Features (3)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
138if (operation?.Parent is IAssignmentOperation { Type.TypeKind: TypeKind.Dynamic })
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
128if (asType?.TypeKind == TypeKind.Dynamic)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
121if (isType?.TypeKind == TypeKind.Dynamic)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\ForEachTests.cs (2)
1682Assert.Equal(TypeKind.Dynamic, ((BoundConversion)boundNode.Expression).Operand.Type.TypeKind); 1702Assert.Equal(TypeKind.Dynamic, info.ElementType.TypeKind); //NB: differs from explicit case
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (8)
Compilation\SemanticModelAPITests.cs (1)
4331Assert.Equal(TypeKind.Dynamic, dynamicType.Type.TypeKind);
Compilation\SemanticModelGetSemanticInfoTests.cs (3)
12484Assert.Equal(TypeKind.Dynamic, semanticInfo.Type.TypeKind); 15338Assert.Equal(TypeKind.Dynamic, semanticInfo.Type.TypeKind); 15340Assert.Equal(TypeKind.Dynamic, semanticInfo.ConvertedType.TypeKind);
Symbols\Source\CustomModifierCopyTests.cs (4)
922Assert.Equal(TypeKind.Dynamic, classMethod.ParameterTypesWithAnnotations.Single().Type.TypeKind); 965Assert.Equal(TypeKind.Dynamic, interfaceMethod.ParameterTypesWithAnnotations.Single().Type.TypeKind); 1402Assert.Equal(TypeKind.Dynamic, interfaceMethod.ReturnType.TypeKind); 1443Assert.Equal(TypeKind.Dynamic, classMethod.ReturnType.TypeKind);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
Extensions.cs (1)
713return type.TypeKind == TypeKind.Dynamic;
UsesIsNullableVisitor.cs (1)
191case TypeKind.Dynamic:
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Simplification\CSharpSimplificationService.Expander.cs (1)
801if (typeinfo.Type != null && typeinfo.Type.TypeKind == TypeKind.Dynamic)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
561originalConvertedType.IsReferenceType && rewrittenConvertedType.TypeKind == TypeKind.Dynamic)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
276if (declaredType.TypeKind == TypeKind.Dynamic)
Microsoft.CodeAnalysis.Features (3)
Completion\Providers\AbstractObjectCreationCompletionProvider.cs (1)
85if (type.TypeKind is TypeKind.Interface or TypeKind.Pointer or TypeKind.Dynamic ||
RQName\RQNodeBuilder.cs (1)
297else if (symbol.TypeKind == TypeKind.Dynamic)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
183if (value.Type.TypeKind == TypeKind.Dynamic)
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\TypeSymbolExtensions.vb (1)
855Case TypeKind.Dynamic,
Microsoft.CodeAnalysis.Workspaces (1)
Classification\ClassificationExtensions.cs (1)
19TypeKind.Dynamic => ClassificationTypeNames.Keyword,
Microsoft.VisualStudio.LanguageServices (3)
Library\VsNavInfo\NavInfoFactory.cs (1)
99TypeKind.Dynamic or
Progression\GraphNodeIdCreation.cs (2)
106if (underlyingType.TypeKind == TypeKind.Dynamic) 242if (underlyingType.TypeKind == TypeKind.Dynamic)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
704typeSymbol.TypeKind is TypeKind.Dynamic or