2 implementations of Type
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\PropertySymbol.cs (1)
31ITypeSymbol IPropertySymbol.Type
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\PropertySymbol.vb (1)
598Private ReadOnly Property IPropertySymbol_Type As ITypeSymbol Implements IPropertySymbol.Type
211 references to Type
ConfigurationSchemaGenerator (2)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (2)
669if (member is IPropertySymbol { IsIndexer: false, IsImplicitlyDeclared: false } property && !IsUnsupportedType(property.Type)) 672TypeRef propertyTypeRef = EnqueueTransitiveType(typeParseInfo, property.Type, DiagnosticDescriptors.PropertyNotSupported, propertyName);
ILLink.RoslynAnalyzer (4)
DynamicallyAccessedMembersAnalyzer.cs (2)
164 } else if (member is IPropertySymbol property && property.GetDynamicallyAccessedMemberTypes () != DynamicallyAccessedMemberTypes.None && !property.Type.IsTypeInterestingForDataflow (isByRef: property.ReturnsByRef)) { 283 || !propertySymbol.Type.IsTypeInterestingForDataflow (isByRef: propertySymbol.RefKind is not RefKind.None)
RequiresAnalyzerBase.cs (1)
316 if (!propertySymbol.IsStatic || propertySymbol.Type.SpecialType != SpecialType.System_Boolean || propertySymbol.SetMethod != null)
TrimAnalysis\FeatureCheckReturnValuePattern.cs (1)
40 if (!OwningSymbol.IsStatic || OwningSymbol.Type.SpecialType != SpecialType.System_Boolean || OwningSymbol.SetMethod != null) {
Microsoft.Analyzers.Extra (1)
ConditionalAccessAnalyzer.cs (1)
48type = propRef.Property.Type;
Microsoft.Analyzers.Local (1)
Utilities\SymbolExtensions.cs (1)
172return propertySymbol.Type;
Microsoft.AspNetCore.App.Analyzers (2)
src\Shared\RoslynUtils\SymbolExtensions.cs (2)
148IPropertySymbol propertySymbol => propertySymbol.Type, 171propertySymbol.Type is INamedTypeSymbol
Microsoft.AspNetCore.App.CodeFixes (2)
Dependencies\AddPackageFixer.cs (1)
70IPropertySymbol propertySymbol => propertySymbol.Type,
Dependencies\ExtensionMethodsCompletionProvider.cs (1)
67IPropertySymbol propertySymbol => propertySymbol.Type,
Microsoft.AspNetCore.Components.Analyzers (3)
ComponentParameterAnalyzer.cs (2)
102var conversion = context.Compilation.ClassifyConversion(symbols.ParameterCaptureUnmatchedValuesRuntimeType, property.Type); 109property.Type.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat),
InternalUsageAnalyzer.cs (1)
117VisitDeclarationSymbol(context, property.Type, property);
Microsoft.AspNetCore.Components.SdkAnalyzers (3)
ComponentParameterAnalyzer.cs (2)
96var conversion = context.Compilation.ClassifyConversion(symbols.ParameterCaptureUnmatchedValuesRuntimeType, property.Type); 103property.Type.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat),
InternalUsageAnalyzer.cs (1)
117VisitDeclarationSymbol(context, property.Type, property);
Microsoft.AspNetCore.Http.RequestDelegateGenerator (4)
src\Shared\RoslynUtils\SymbolExtensions.cs (2)
148IPropertySymbol propertySymbol => propertySymbol.Type, 171propertySymbol.Type is INamedTypeSymbol
StaticRouteHandlerModel\EndpointParameter.cs (2)
30private EndpointParameter(Endpoint endpoint, IPropertySymbol property, IParameterSymbol? parameter, WellKnownTypes wellKnownTypes) : this(endpoint, property.Type, property.Name, wellKnownTypes) 482lookupTable.Add(new ParameterLookupKey(property.Name, property.Type), property);
Microsoft.CodeAnalysis (7)
CodeGen\PermissionSetAttribute.cs (1)
86member => member.Kind == SymbolKind.Property && ((IPropertySymbol)member).Type.SpecialType == SpecialType.System_String));
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);
SymbolDisplay\AbstractSymbolDisplayVisitor_Minimal.cs (1)
114return propertySymbol.Type;
Microsoft.CodeAnalysis.CodeStyle (11)
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
424if (!property.Type.Equals(getterField.Type))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (3)
279IPropertySymbol propertySymbol => propertySymbol.Type, 566IPropertySymbol propertySymbol => propertySymbol.Type, 620if (!returnType.GetMembers().OfType<IPropertySymbol>().Any(p => p.Name == WellKnownMemberNames.IsCompleted && p.Type.SpecialType == SpecialType.System_Boolean && p.GetMethod != null))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
92symbol.Type.Accept(this) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AnonymousTypeSymbolKey.cs (1)
23var propertyTypes = properties.SelectAsArray(p => p.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SignatureComparer.cs (2)
161this.SignatureTypeEquivalenceComparer.Equals(property1.Type, property2.Type) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (2)
537!AreEquivalent(p1.Type, p2.Type, equivalentTypesWithDifferingAssemblies))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
204GetHashCode(p.Type, a)));
Microsoft.CodeAnalysis.CodeStyle.Fixes (8)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
556_service.IsConversionImplicit(_document.SemanticModel.Compilation, parameterType, property.Type);
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
226TypeMemberType = propertySymbol.Type;
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (2)
35.Where(p => includeMemberType(p.Type)) 136if (IsTypeLessAccessibleThanOtherType(propertySymbol.Type, second, []))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
560property.Type,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IPropertySymbolExtensions.cs (2)
30property.Type, 56property.Type,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
91IPropertySymbol property => property.Type,
Microsoft.CodeAnalysis.CSharp (2)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
157symbol.Type.Accept(this.NotFirstVisitor);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
582return property.Type.ToDisplayString(Format) + " " + property.Name;
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (2)
30p.Type.SpecialType == SpecialType.System_Int32) 132returnType.Equals(p.Type) &&
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
174.SequenceEqual(propertiesToAssign.Select(property => property.Type)))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
141var returnType = property.Type;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1468result.Add(new TypeInferenceInfo(property.Type));
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)
CodeGen\CodeGenTupleTest.cs (1)
14291p1Tuple = (INamedTypeSymbol)((IPropertySymbol)symbolInfo.Symbol).Type;
Microsoft.CodeAnalysis.CSharp.Features (9)
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (1)
232symbolType = property.Type;
Completion\CompletionProviders\PropertySubPatternCompletionProvider.cs (1)
129IPropertySymbol property => property.Type,
ExtractMethod\CSharpSelectionResult.StatementResult.cs (1)
79IPropertySymbol propertySymbol => (propertySymbol.Type, propertySymbol.ReturnsByRef),
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider.cs (1)
116IsImplicitConversion(compilation, source: parameter.Type, destination: property.Type) &&
SignatureHelp\AttributeSignatureHelpProvider.cs (1)
177var type = namedParameter is IFieldSymbol ? ((IFieldSymbol)namedParameter).Type : ((IPropertySymbol)namedParameter).Type;
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (1)
264result.AddRange(indexer.Type.ToMinimalDisplayParts(semanticModel, position));
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (2)
30p.Type.SpecialType == SpecialType.System_Int32) 132returnType.Equals(p.Type) &&
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
174.SequenceEqual(propertiesToAssign.Select(property => property.Type)))
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (13)
Semantics\ForEachTests.cs (1)
2140Assert.Equal(SpecialType.System_Object, loopInfo.CurrentProperty.Type.SpecialType);
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)
Compilation\SymbolVisitorTests.cs (3)
165symbol.Type.Accept(this); 350symbol.Type.Accept(this); 501symbol.Type.Accept(this, argument);
Symbols\Source\NullablePublicAPITests.cs (5)
218var result = member.Type.NullableAnnotation; 2741Assert.Equal(PublicNullableAnnotation.Annotated, ((IPropertySymbol)symInfo.Symbol).Type.NullableAnnotation); 2746Assert.Equal(PublicNullableAnnotation.NotAnnotated, ((IPropertySymbol)symInfo.Symbol).Type.NullableAnnotation); 3274Assert.Equal(firstAnnotation, propertySymbol.Type.NullableAnnotation); 3325Assert.Equal(annotation, propertySymbol.Type.NullableAnnotation);
Symbols\SymbolEqualityTests.cs (2)
644var prop1Type = property1.Type; 645var prop2Type = property2.Type;
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
819return ((IPropertySymbol)symbol).Type;
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
141var returnType = property.Type;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1468result.Add(new TypeInferenceInfo(property.Type));
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
AbstractTypeParameterChecker.cs (1)
111Visit(symbol.Type);
Microsoft.CodeAnalysis.Features (23)
Completion\Providers\AbstractObjectInitializerCompletionProvider.cs (1)
126return !propertySymbol.Type.IsStructType();
Completion\Providers\AbstractOverrideCompletionProvider.cs (1)
75SymbolKind.Property => ((IPropertySymbol)symbol).Type,
Completion\Providers\ImportCompletionProvider\AbstractExtensionMethodImportCompletionProvider.cs (1)
108IPropertySymbol propertySymbol => propertySymbol.Type,
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (3)
254properties.Select(p => p.Type) 357prop.Type, refKind: default, explicitInterfaceImplementations: default, 373prop.Type, refKind: default, explicitInterfaceImplementations: default,
ConvertAutoPropertyToFullProperty\AbstractConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
105propertySymbol.Type, fieldName,
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
291iterationType = currentProperty.Type;
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
2389TypesEquivalent(oldProperty.Type, newProperty.Type, exact);
ExtractInterface\AbstractExtractInterfaceService.cs (1)
417type: property.Type,
GenerateType\AbstractGenerateTypeService.Editor.cs (1)
633_service.IsConversionImplicit(_semanticDocument.SemanticModel.Compilation, parameterType, property.Type);
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (1)
711IsImplicitConversion(compilation, source: parameter.Type, destination: property.Type) &&
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.StructuralTypeCollectorVisitor.cs (1)
121symbol.Type.Accept(this);
QuickInfo\CommonSemanticQuickInfoProvider.ErrorVisitor.cs (1)
76=> Visit(symbol.Type);
ReplacePropertyWithMethods\AbstractReplacePropertyWithMethodsService.cs (1)
313parameterType = Generator.TypeExpression(_property.Type);
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (1)
157comparer.Equals(m.Parameters[0].Type, property.Type));
Shared\Utilities\ExtractTypeHelpers.cs (1)
213DoesTypeReferenceTypeParameter(property.Type, typeParameter, checkedTypes);
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
424if (!property.Type.Equals(getterField.Type))
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
556_service.IsConversionImplicit(_document.SemanticModel.Compilation, parameterType, property.Type);
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
226TypeMemberType = propertySymbol.Type;
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (2)
35.Where(p => includeMemberType(p.Type)) 136if (IsTypeLessAccessibleThanOtherType(propertySymbol.Type, second, []))
Microsoft.CodeAnalysis.VisualBasic (4)
Operations\VisualBasicOperationFactory_Methods.vb (1)
337[property].Type,
SymbolDisplay\SymbolDisplayVisitor.Members.vb (1)
118symbol.Type.Accept(Me.NotFirstVisitor)
SymbolDisplay\SymbolDisplayVisitor.Types.vb (1)
414Return prop.Name & " As " & prop.Type.ToDisplayString(Format)
Symbols\PropertySymbol.vb (1)
598Private ReadOnly Property IPropertySymbol_Type As ITypeSymbol Implements IPropertySymbol.Type
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (6)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\PropertyGenerator.vb (2)
141SyntaxFactory.Parameter(identifier:=SyntaxFactory.ModifiedIdentifier("value")).WithAsClause(SyntaxFactory.SimpleAsClause(type:=[property].Type.GenerateTypeSyntax()))))), 240Return SyntaxFactory.SimpleAsClause(attributes, [property].Type.GenerateTypeSyntax())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SymbolExtensions.vb (1)
28Dim type = DirectCast(symbol, IPropertySymbol).Type
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (2)
633Return CreateResult(propertySymbol.Type) 770TryCast(memberSymbol, IPropertySymbol)?.Type)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Utilities\SymbolExtensions.vb (1)
22Return propertySymbol.Type
Microsoft.CodeAnalysis.VisualBasic.Features (8)
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (1)
350targetType = TryCast(Await SymbolFinder.FindSourceDefinitionAsync(withEventsProperty.Type, document.Project.Solution, cancellationToken).ConfigureAwait(False), INamedTypeSymbol)
Completion\CompletionProviders\EnumCompletionProvider.vb (1)
94TryCast(symbol, IPropertySymbol)?.Type)))
Completion\CompletionProviders\HandlesClauseCompletionProvider.vb (1)
133Dim type = TryCast(symbolInfo.Symbol, IPropertySymbol)?.Type
ExtractMethod\VisualBasicSelectionResult.vb (1)
181Return propertySymbol.Type
NavigationBar\VisualBasicNavigationBarItemService.vb (1)
141propertySymbol.Type,
SignatureHelp\AbstractOrdinaryMethodSignatureHelpProvider.vb (1)
70parts.AddRange([property].Type.ToMinimalDisplayParts(semanticModel, position))
SignatureHelp\InvocationExpressionSignatureHelpProvider.ElementAccess.vb (1)
71parts.AddRange([property].Type.ToMinimalDisplayParts(semanticModel, position))
UseAutoProperty\VisualBasicUseAutoPropertyCodeFixProvider.vb (1)
79Dim arrayType = TryCast(semanticsModel.GetDeclaredSymbol(propertyDeclaration, cancellationToken).Type, IArrayTypeSymbol)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Compilation\SemanticModelAPITests.vb (2)
4703Assert.Equal("System.String", symbol.Type.ToTestDisplayString()) 4838Assert.Equal("System.String", symbol.Type.ToTestDisplayString())
Microsoft.CodeAnalysis.VisualBasic.Workspaces (6)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\PropertyGenerator.vb (2)
141SyntaxFactory.Parameter(identifier:=SyntaxFactory.ModifiedIdentifier("value")).WithAsClause(SyntaxFactory.SimpleAsClause(type:=[property].Type.GenerateTypeSyntax()))))), 240Return SyntaxFactory.SimpleAsClause(attributes, [property].Type.GenerateTypeSyntax())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SymbolExtensions.vb (1)
28Dim type = DirectCast(symbol, IPropertySymbol).Type
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (2)
633Return CreateResult(propertySymbol.Type) 770TryCast(memberSymbol, IPropertySymbol)?.Type)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Utilities\SymbolExtensions.vb (1)
22Return propertySymbol.Type
Microsoft.CodeAnalysis.Workspaces (16)
Editing\SyntaxGenerator.cs (2)
393TypeExpression(property.Type, property.RefKind), 454TypeExpression(indexer.Type, indexer.RefKind),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (3)
279IPropertySymbol propertySymbol => propertySymbol.Type, 566IPropertySymbol propertySymbol => propertySymbol.Type, 620if (!returnType.GetMembers().OfType<IPropertySymbol>().Any(p => p.Name == WellKnownMemberNames.IsCompleted && p.Type.SpecialType == SpecialType.System_Boolean && p.GetMethod != null))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
92symbol.Type.Accept(this) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AnonymousTypeSymbolKey.cs (1)
23var propertyTypes = properties.SelectAsArray(p => p.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SignatureComparer.cs (2)
161this.SignatureTypeEquivalenceComparer.Equals(property1.Type, property2.Type) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (2)
537!AreEquivalent(p1.Type, p2.Type, equivalentTypesWithDifferingAssemblies))
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,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IPropertySymbolExtensions.cs (2)
30property.Type, 56property.Type,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
91IPropertySymbol property => property.Type,
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
SymbolKeyTests.cs (4)
1095var propType = symbol.Type; 1130var propType = symbol.Type; 1177var propType = symbol.Type; 1224var propType = symbol.Type;
Microsoft.Extensions.Options.SourceGeneration (3)
Parser.cs (1)
322memberType = prop.Type;
ParserUtilities.cs (2)
82property.Type.SpecialType == returnType && property.DeclaredAccessibility == Accessibility.Public && 96property.Type.SpecialType == returnType && property.Kind == SymbolKind.Property &&
Microsoft.Gen.ComplianceReports (1)
Parser.cs (1)
144classifiedMembers = ClassifyMember(classifiedMembers, property, property.Type);
Microsoft.Gen.ContextualOptions (3)
Parser.cs (3)
81.Where(prop => !prop.Type.IsRefLikeType) 82.Where(prop => prop.Type.TypeKind != TypeKind.Pointer) 83.Where(prop => prop.Type.TypeKind != TypeKind.FunctionPointer)
Microsoft.Gen.Logging (20)
Parsing\Parser.cs (1)
653IPropertySymbol ps => ps.Type,
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);
Parsing\Parser.Records.cs (1)
66IPropertySymbol property => new(property.Name, property.Type, property),
Parsing\Parser.TagProvider.cs (1)
54var propTypeSymbol = propSymbol.Type;
Microsoft.Gen.Metrics (3)
Parser.cs (3)
700kind = propertySymbol!.Type.TypeKind; 701specialType = propertySymbol.Type.SpecialType; 702typeSymbol = propertySymbol.Type;
Microsoft.Gen.MetricsReports (3)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (3)
700kind = propertySymbol!.Type.TypeKind; 701specialType = propertySymbol.Type.SpecialType; 702typeSymbol = propertySymbol.Type;
Microsoft.VisualStudio.LanguageServices.CSharp (3)
CodeModel\CSharpCodeModelService_Prototype.cs (1)
441builder.Append(GetAsStringForCodeTypeRef(symbol.Type));
ObjectBrowser\DescriptionBuilder.cs (1)
491AddTypeLink(propertySymbol.Type, LinkFlags.None);
Progression\CSharpProgressionLanguageService.cs (1)
120case IPropertySymbol p: return p.Type;
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
ObjectBrowser\DescriptionBuilder.vb (1)
266AddTypeLink(propertySymbol.Type, LinkFlags.None)
System.Text.Json.SourceGeneration (6)
Helpers\RoslynExtensions.cs (4)
216return member is IFieldSymbol fs ? fs.Type : ((IPropertySymbol)member).Type; 303if (property.Type.IsNullableType()) 311isGetterNonNullable = property.GetMethod != null && IsOutputTypeNonNullable(property, property.Type); 312isSetterNonNullable = property.SetMethod != null && IsInputTypeNonNullable(property, property.Type);
JsonSourceGenerator.Parser.cs (2)
942memberType: propertyInfo.Type, 1022SymbolEqualityComparer.Default.Equals(property.Type, ignoredMember.GetMemberType());
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Parser.cs (1)
133!SymbolEqualityComparer.Default.Equals(regexPropertySymbol.Type, regexSymbol))