2 implementations of Type
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.VisualBasic (1)
725 references to Type
Aspire.Hosting.Analyzers (1)
ConfigurationSchemaGenerator (30)
ILLink.RoslynAnalyzer (4)
Microsoft.Analyzers.Extra (7)
Microsoft.Analyzers.Local (1)
Microsoft.AspNetCore.Analyzers (4)
Microsoft.AspNetCore.App.Analyzers (19)
Microsoft.AspNetCore.Components.Analyzers (1)
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (13)
Microsoft.AspNetCore.Mvc.Analyzers (4)
Microsoft.AspNetCore.Mvc.Api.Analyzers (4)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (6)
Microsoft.CodeAnalysis (24)
Microsoft.CodeAnalysis.CodeStyle (39)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
46parameter.Type.Accept(this);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
228GetHashCode(x.Type,
Microsoft.CodeAnalysis.CodeStyle.Fixes (20)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
305type ?? parameter.Type,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IParameterSymbolExtensions.cs (1)
30parameter.Type,
Microsoft.CodeAnalysis.CSharp (6)
Microsoft.CodeAnalysis.CSharp.CodeStyle (22)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (14)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (19)
Microsoft.CodeAnalysis.CSharp.Features (39)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (38)
Semantics\OperatorTests.cs (14)
7622symbol1.Name, symbol1.ReturnType, symbol1.Parameters[0].Type);
7656Assert.Same(symbol1.ContainingSymbol, symbol1.Parameters[0].Type);
8213signature = new BinaryOperatorSignature(op | BinaryOperatorKind.Pointer, leftType, symbol1.Parameters[1].Type.GetSymbol(), leftType);
8214Assert.True(symbol1.Parameters[1].Type.GetSymbol().IsIntegralType());
8218signature = new BinaryOperatorSignature(op | BinaryOperatorKind.Pointer, symbol1.Parameters[0].Type.GetSymbol(), rightType, rightType);
8219Assert.True(symbol1.Parameters[0].Type.GetSymbol().IsIntegralType());
8225signature = new BinaryOperatorSignature(op | BinaryOperatorKind.String, leftType, symbol1.Parameters[1].Type.GetSymbol(), leftType);
8226Assert.True(symbol1.Parameters[1].Type.GetSymbol().IsIntegralType());
8398symbol1.Name, symbol1.ReturnType, symbol1.Parameters[0].Type, symbol1.Parameters[1].Type);
8431Assert.True(SymbolEqualityComparer.ConsiderEverything.Equals(symbol1.ContainingSymbol, symbol1.Parameters[0].Type) ||
8432SymbolEqualityComparer.ConsiderEverything.Equals(symbol1.ContainingSymbol, symbol1.Parameters[1].Type));
8440if (SymbolEqualityComparer.ConsiderEverything.Equals(symbol1.ContainingSymbol, symbol1.Parameters[0].Type))
8445if (SymbolEqualityComparer.ConsiderEverything.Equals(symbol1.ContainingSymbol, symbol1.Parameters[1].Type))
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (75)
Symbols\Source\NullablePublicAPITests.cs (24)
381var result = member.Type.NullableAnnotation;
488members = e.GetMembers().OfType<IMethodSymbol>().Where(m => m.Name.StartsWith("M")).Select(m => m.ReduceExtensionMethod(m.Parameters[0].Type)).ToArray();
575Assert.Equal(method.ReturnNullableAnnotation, method.Parameters[0].Type.NullableAnnotation);
1863Assert.Equal(expectedAnnotation, methodSymbol.Parameters.Single().Type.NullableAnnotation);
1906Assert.Equal(expectedAnnotation, methodSymbol.Parameters.Single().Type.NullableAnnotation);
2637Assert.Equal(SpecialType.System_String, symbol.Type.SpecialType);
3276Assert.Equal(secondAnnotation, propertySymbol.Parameters[0].Type.NullableAnnotation);
3493Assert.Equal(PublicNullableAnnotation.Annotated, lambdaSymbol.Parameters[0].Type.NullableAnnotation);
3505Assert.Equal(PublicNullableAnnotation.Annotated, parameterSymbol.Type.NullableAnnotation);
3546Assert.Equal(PublicNullableAnnotation.NotAnnotated, innerLambdaSymbol.Parameters[0].Type.NullableAnnotation);
3558Assert.Equal(PublicNullableAnnotation.Annotated, o1Symbol.Type.NullableAnnotation);
3569Assert.Equal(PublicNullableAnnotation.NotAnnotated, o2Symbol.Type.NullableAnnotation);
3607Assert.Equal(PublicNullableAnnotation.NotAnnotated, innerLambdaSymbol.Parameters[0].Type.NullableAnnotation);
3619Assert.Equal(PublicNullableAnnotation.Annotated, o1Symbol.Type.NullableAnnotation);
3630Assert.Equal(PublicNullableAnnotation.NotAnnotated, o2Symbol.Type.NullableAnnotation);
3921Assert.Equal(PublicNullableAnnotation.NotAnnotated, o1Symbol.Type.NullableAnnotation);
3935Assert.Equal(PublicNullableAnnotation.NotAnnotated, o3Symbol.Type.NullableAnnotation);
3985Assert.Equal(PublicNullableAnnotation.NotAnnotated, innerLambdaSymbol1.Parameters[0].Type.NullableAnnotation);
3987Assert.Equal(PublicNullableAnnotation.NotAnnotated, innerLambdaSymbol1.Parameters[1].Type.NullableAnnotation);
3989Assert.Equal(PublicNullableAnnotation.NotAnnotated, innerLambdaSymbol1.Parameters[2].Type.NullableAnnotation);
3995Assert.Equal(PublicNullableAnnotation.NotAnnotated, innerLambdaSymbol2.Parameters[0].Type.NullableAnnotation);
3997Assert.Equal(PublicNullableAnnotation.NotAnnotated, innerLambdaSymbol2.Parameters[1].Type.NullableAnnotation);
3999Assert.Equal(PublicNullableAnnotation.NotAnnotated, innerLambdaSymbol2.Parameters[2].Type.NullableAnnotation);
4703Assert.Equal(PublicNullableAnnotation.NotAnnotated, symbol2.Parameters.Single().Type.NullableAnnotation);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (7)
Microsoft.CodeAnalysis.CSharp.Workspaces (22)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (2)
Microsoft.CodeAnalysis.Features (68)
Microsoft.CodeAnalysis.Test.Utilities (4)
Microsoft.CodeAnalysis.VisualBasic (3)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (4)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (10)
Microsoft.CodeAnalysis.VisualBasic.Features (6)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (21)
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (13)
1255Assert.Equal("System.Int32", paramSymbol1.Type.ToTestDisplayString())
1263Assert.Equal("System.String", paramSymbol2.Type.ToTestDisplayString())
1271Assert.Equal("System.Int64", paramSymbol3.Type.ToTestDisplayString())
1279Assert.Equal("System.Int32", paramSymbol4.Type.ToTestDisplayString())
1287Assert.Equal("System.String", paramSymbol5.Type.ToTestDisplayString())
1321Assert.Equal("System.Single", paramSymbol1.Type.ToTestDisplayString())
1368Assert.Equal("System.Int64", paramSymbol1.Type.ToTestDisplayString())
1373Assert.Equal("System.Single", paramSymbol2.Type.ToTestDisplayString())
1378Assert.Equal("System.Int32", paramSymbol3.Type.ToTestDisplayString())
1383Assert.Equal("System.String", paramSymbol4.Type.ToTestDisplayString())
1388Assert.Equal("System.String", paramSymbol5.Type.ToTestDisplayString())
1392Assert.Equal("System.Double", paramSymbol6.Type.ToTestDisplayString())
1396Assert.Equal("System.Decimal", paramSymbol7.Type.ToTestDisplayString())
Semantics\NativeIntegerTests.vb (8)
27VerifyType(DirectCast(method.Parameters(0).Type, INamedTypeSymbol), signed:=True, isNativeInteger:=False)
28VerifyType(DirectCast(method.Parameters(1).Type, INamedTypeSymbol), signed:=True, isNativeInteger:=True)
32VerifyType(DirectCast(method.Parameters(0).Type, INamedTypeSymbol), signed:=False, isNativeInteger:=False)
33VerifyType(DirectCast(method.Parameters(1).Type, INamedTypeSymbol), signed:=False, isNativeInteger:=True)
41VerifyType(DirectCast(method.Parameters(0).Type, INamedTypeSymbol), signed:=True, isNativeInteger:=False)
42VerifyType(DirectCast(method.Parameters(1).Type, INamedTypeSymbol), signed:=True, isNativeInteger:=False)
46VerifyType(DirectCast(method.Parameters(0).Type, INamedTypeSymbol), signed:=False, isNativeInteger:=False)
47VerifyType(DirectCast(method.Parameters(1).Type, INamedTypeSymbol), signed:=False, isNativeInteger:=False)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (16)
Microsoft.CodeAnalysis.Workspaces (61)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
46parameter.Type.Accept(this);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
228GetHashCode(x.Type,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
305type ?? parameter.Type,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (2)
73CodeGenerationSymbolFactory.CreateParameterSymbol(p.GetAttributes(), p.RefKind, p.IsParams, p.Type.SubstituteTypes(mapping, typeGenerator), p.Name, p.IsOptional,
170p.RefKind, p.IsParams, p.Type, p.Name, p.IsOptional,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IParameterSymbolExtensions.cs (1)
30parameter.Type,
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
Microsoft.DotNet.CodeAnalysis (2)
Microsoft.Extensions.Logging.Generators (2)
Microsoft.Extensions.Options.SourceGeneration (4)
Microsoft.Gen.ComplianceReports (3)
Microsoft.Gen.Logging (15)
Microsoft.Gen.Logging.Unit.Tests (1)
Microsoft.Gen.Metrics (1)
Microsoft.Gen.MetricsReports (1)
Microsoft.Interop.ComInterfaceGenerator (1)
Microsoft.Interop.LibraryImportGenerator (19)
Microsoft.Interop.SourceGeneration (32)
MarshallerShape.cs (22)
221&& SymbolEqualityComparer.Default.Equals(m.Parameters[0].Type, managedType));
263&& SymbolEqualityComparer.Default.Equals(managedType, m.Parameters[0].Type));
275&& SymbolEqualityComparer.Default.Equals(managedType, m.Parameters[0].Type));
279if (IsSpanOfUnmanagedType(method.Parameters[1].Type, spanOfT, type))
315&& managedType.IsConstructedFromEqualTypes(m.Parameters[0].Type)
316&& m.Parameters[1].Type.SpecialType == SpecialType.System_Int32
326&& managedType.IsConstructedFromEqualTypes(m.Parameters[0].Type)
327&& m.Parameters[2].Type.SpecialType == SpecialType.System_Int32
332if (IsSpanOfUnmanagedType(method.Parameters[1].Type, spanOfT, type))
347&& managedType.IsConstructedFromEqualTypes(m.Parameters[0].Type)
357&& m.Parameters[1].Type.SpecialType == SpecialType.System_Int32
367&& m.Parameters[1].Type.SpecialType == SpecialType.System_Int32
377&& m.Parameters[1].Type.SpecialType == SpecialType.System_Int32
387&& managedType.IsConstructedFromEqualTypes(m.Parameters[0].Type)
397&& m.Parameters[1].Type.SpecialType == SpecialType.System_Int32
566&& SymbolEqualityComparer.Default.Equals(managedType, m.Parameters[0].Type));
577&& SymbolEqualityComparer.Default.Equals(managedType, m.Parameters[0].Type));
581if (StatelessMarshallerShapeHelper.IsSpanOfUnmanagedType(method.Parameters[1].Type, spanOfT, type))
641if (SymbolEqualityComparer.Default.Equals(candidates[0].Parameters[0].Type, unmanagedType))
672&& SymbolEqualityComparer.Default.Equals(m.Parameters[0].Type, managedType));
709&& m.Parameters[0].Type.SpecialType == SpecialType.System_Int32
719&& m.Parameters[0].Type.SpecialType == SpecialType.System_Int32
MethodSignatureElementInfoProvider.cs (2)
49marshallingInfoCallback(param.Type, new UseSiteAttributeProvider(_useSiteAttributeParsers, param.GetAttributes(), rootProvider, _generatorDiagnostics, marshallingInfoCallback), 0), _compilation) with
71marshallingInfoCallback(param.Type, new UseSiteAttributeProvider(_useSiteAttributeParsers, param.GetAttributes(), rootProvider, _generatorDiagnostics, marshallingInfoCallback), 0), _compilation) with
Microsoft.VisualStudio.LanguageServices (7)
Microsoft.VisualStudio.LanguageServices.CSharp (2)
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
System.Text.Json.SourceGeneration (4)
System.Windows.Forms.Analyzers.CSharp (1)
System.Windows.Forms.Analyzers.VisualBasic (2)