2 implementations of Type
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.VisualBasic (1)
211 references to Type
ConfigurationSchemaGenerator (2)
ILLink.RoslynAnalyzer (4)
Microsoft.Analyzers.Extra (1)
Microsoft.Analyzers.Local (1)
Microsoft.AspNetCore.App.Analyzers (2)
Microsoft.AspNetCore.App.CodeFixes (2)
Microsoft.AspNetCore.Components.Analyzers (3)
Microsoft.AspNetCore.Components.SdkAnalyzers (3)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (4)
Microsoft.CodeAnalysis (7)
Operations\ControlFlowGraphBuilder.cs (5)
4645info.CurrentProperty.Type, isImplicit: true);
7267semanticModel: null, operation.Syntax, propertySymbol.Type, isImplicit: true);
8038semanticModel: null, operation.Syntax, property.Type, isImplicit: true);
8064semanticModel: null, operation.Syntax, property.Type, isImplicit: true);
8068semanticModel: null, operation.Syntax, property.Type, constantValue: null, isImplicit: true);
Microsoft.CodeAnalysis.CodeStyle (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
92symbol.Type.Accept(this) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
204GetHashCode(p.Type, a)));
Microsoft.CodeAnalysis.CodeStyle.Fixes (8)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
560property.Type,
Microsoft.CodeAnalysis.CSharp (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (6)
SymbolKey\SymbolKeyMetadataVsSourceTests.cs (6)
77var member02 = (typesym.GetMembers("Prop").Single() as IPropertySymbol).Type;
86var member05 = (typesym.GetMembers(WellKnownMemberNames.Indexer).Single() as IPropertySymbol).Type;
364ResolveAndVerifyTypeSymbol(list[2], (originalSymbols[4] as IPropertySymbol).Type, model, comp20);
376ResolveAndVerifyTypeSymbol(list[4], (originalSymbols[0] as IPropertySymbol).Type, model, comp20);
439ResolveAndVerifyTypeSymbol(list[0], (originalSymbols[3] as IPropertySymbol).Type, model, comp20);
445ResolveAndVerifyTypeSymbol(list[1], (originalSymbols[2] as IPropertySymbol).Type, model, comp20);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Features (9)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (13)
Semantics\NullableReferenceTypesTests.cs (12)
158063Assert.Equal("object", ((IPropertySymbol)model.GetSymbolInfo(item).Symbol).Type.ToDisplayString(TypeWithAnnotations.TestDisplayFormat));
158066Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.TestDisplayFormat));
158099Assert.Equal("object", ((IPropertySymbol)model.GetSymbolInfo(item).Symbol).Type.ToDisplayString(TypeWithAnnotations.TestDisplayFormat));
158232Assert.Equal("object", ((IPropertySymbol)model.GetSymbolInfo(item).Symbol).Type.ToDisplayString(TypeWithAnnotations.TestDisplayFormat));
158235Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.TestDisplayFormat));
158275Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.TestDisplayFormat));
158316Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.TestDisplayFormat));
158351Assert.Equal("object", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.TestDisplayFormat));
158384Assert.Equal("object", ((IPropertySymbol)model.GetSymbolInfo(item).Symbol).Type.ToDisplayString(TypeWithAnnotations.TestDisplayFormat));
158527Assert.Equal("object!", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.TestDisplayFormat));
158571Assert.Equal("object!", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.TestDisplayFormat));
158608Assert.Equal("object!", ((IPropertySymbol)found).Type.ToDisplayString(TypeWithAnnotations.TestDisplayFormat));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (10)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
Microsoft.CodeAnalysis.Features (23)
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.StructuralTypeCollectorVisitor.cs (1)
121symbol.Type.Accept(this);
Microsoft.CodeAnalysis.VisualBasic (4)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (6)
Microsoft.CodeAnalysis.VisualBasic.Features (8)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (6)
Microsoft.CodeAnalysis.Workspaces (16)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
92symbol.Type.Accept(this) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
204GetHashCode(p.Type, a)));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
560property.Type,
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
Microsoft.Extensions.Options.SourceGeneration (3)
Microsoft.Gen.ComplianceReports (1)
Microsoft.Gen.ContextualOptions (3)
Microsoft.Gen.Logging (20)
Parsing\Parser.LogProperties.cs (17)
183var extractedType = property.Type;
199Type = property.Type.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat),
201IsReference = property.Type.IsReferenceType,
202IsEnumerable = property.Type.IsEnumerable(symbols),
203IsNullable = property.Type.NullableAnnotation == NullableAnnotation.Annotated,
204ImplementsIConvertible = property.Type.ImplementsIConvertible(symbols),
205ImplementsIFormattable = property.Type.ImplementsIFormattable(symbols),
206ImplementsISpanFormattable = property.Type.ImplementsISpanFormattable(symbols),
207HasCustomToString = property.Type.HasCustomToString(),
220if (property.Type.IsValueType && !property.Type.IsNullableOfT())
264Diag(DiagDescriptors.LogPropertiesCycleDetected, paramSymbol.GetLocation(), paramName, namedType.ToDisplayString(), property.Type.ToDisplayString(), lm.Name);
270extractedType = property.Type;
277if (CanLogProperties(property, property.Type, symbols, silent: logPropertiesAttribute == null))
308|| (property.Type.TypeKind == TypeKind.Delegate)
318&& property.Type.Kind != SymbolKind.TypeParameter
321Diag(DiagDescriptors.DefaultToString, property.GetLocation(), property.Type, property.Name);
Microsoft.Gen.Metrics (3)
Microsoft.Gen.MetricsReports (3)
Microsoft.VisualStudio.LanguageServices.CSharp (3)
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
System.Text.Json.SourceGeneration (6)
System.Text.RegularExpressions.Generator (1)