Base:
property
Type
Microsoft.CodeAnalysis.CSharp.Syntax.BasePropertyDeclarationSyntax.Type
73 references to Type
Microsoft.AspNetCore.Components.Analyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
62TypeSyntax type = node.Type;
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
62TypeSyntax type = node.Type;
Microsoft.CodeAnalysis.CSharp (12)
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
603return SkipAttributes(syntax, propertySyntax.AttributeLists, propertySyntax.Modifiers, keyword: default, propertySyntax.Type);
Syntax.xml.Main.Generated.cs (1)
2077=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), (ExplicitInterfaceSpecifierSyntax?)Visit(node.ExplicitInterfaceSpecifier), VisitToken(node.Identifier), (AccessorListSyntax?)Visit(node.AccessorList), (ArrowExpressionClauseSyntax?)Visit(node.ExpressionBody), (EqualsValueClauseSyntax?)Visit(node.Initializer), VisitToken(node.SemicolonToken));
Syntax.xml.Syntax.Generated.cs (9)
13124if (attributeLists != this.AttributeLists || modifiers != this.Modifiers || type != this.Type || explicitInterfaceSpecifier != this.ExplicitInterfaceSpecifier || identifier != this.Identifier || accessorList != this.AccessorList || expressionBody != this.ExpressionBody || initializer != this.Initializer || semicolonToken != this.SemicolonToken) 13135public new PropertyDeclarationSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.Modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.Identifier, this.AccessorList, this.ExpressionBody, this.Initializer, this.SemicolonToken); 13137public new PropertyDeclarationSyntax WithModifiers(SyntaxTokenList modifiers) => Update(this.AttributeLists, modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.Identifier, this.AccessorList, this.ExpressionBody, this.Initializer, this.SemicolonToken); 13141public new PropertyDeclarationSyntax WithExplicitInterfaceSpecifier(ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier) => Update(this.AttributeLists, this.Modifiers, this.Type, explicitInterfaceSpecifier, this.Identifier, this.AccessorList, this.ExpressionBody, this.Initializer, this.SemicolonToken); 13142public PropertyDeclarationSyntax WithIdentifier(SyntaxToken identifier) => Update(this.AttributeLists, this.Modifiers, this.Type, this.ExplicitInterfaceSpecifier, identifier, this.AccessorList, this.ExpressionBody, this.Initializer, this.SemicolonToken); 13144public new PropertyDeclarationSyntax WithAccessorList(AccessorListSyntax? accessorList) => Update(this.AttributeLists, this.Modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.Identifier, accessorList, this.ExpressionBody, this.Initializer, this.SemicolonToken); 13145public PropertyDeclarationSyntax WithExpressionBody(ArrowExpressionClauseSyntax? expressionBody) => Update(this.AttributeLists, this.Modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.Identifier, this.AccessorList, expressionBody, this.Initializer, this.SemicolonToken); 13146public PropertyDeclarationSyntax WithInitializer(EqualsValueClauseSyntax? initializer) => Update(this.AttributeLists, this.Modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.Identifier, this.AccessorList, this.ExpressionBody, initializer, this.SemicolonToken); 13147public PropertyDeclarationSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.AttributeLists, this.Modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.Identifier, this.AccessorList, this.ExpressionBody, this.Initializer, semicolonToken);
Syntax\SyntaxFacts.cs (1)
179return ((PropertyDeclarationSyntax)parent).Type == node;
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
163return ((PropertyDeclarationSyntax)member).Type;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (10)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (2)
256: result.Declaration.Type; 602? p.Type.GetLeadingTrivia()
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (4)
154TryGetReturnType(property.Type, modifiers: default, onYield), 205return declaration.Type; 240return propertyDeclaration.Type; 245return propertyDeclarationSyntax.Type;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (2)
822.WithLeadingTrivia(propertyDeclaration.Type.GetLeadingTrivia()) 823.WithTrailingTrivia(propertyDeclaration.Type.GetTrailingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
1231Debug.Assert(propertyDeclaration?.Type != null, "Property type should never be null"); 1233var typeInfo = SemanticModel.GetTypeInfo(propertyDeclaration.Type);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (1)
1007propertyDeclarationNode.Type,
Microsoft.CodeAnalysis.CSharp.Features (11)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
193m => m.Type,
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1698return GetDiagnosticSpan(propertyDeclaration.Modifiers, propertyDeclaration.Type, propertyDeclaration.Identifier);
Snippets\AbstractCSharpAutoPropertySnippetProvider.cs (1)
81var type = propertyDeclaration.Type;
SolutionExplorer\CSharpSolutionExplorerSymbolTreeItemProvider.cs (1)
285AppendType(propertyDeclaration.Type, nameBuilder);
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (2)
256: result.Declaration.Type; 602? p.Type.GetLeadingTrivia()
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (4)
154TryGetReturnType(property.Type, modifiers: default, onYield), 205return declaration.Type; 240return propertyDeclaration.Type; 245return propertyDeclarationSyntax.Type;
Structure\CSharpStructureHelpers.cs (1)
281PropertyDeclarationSyntax propertyDeclaration => propertyDeclaration.Modifiers.FirstOrNull() ?? propertyDeclaration.Type.GetFirstToken(),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (25)
Generated\Syntax.Test.xml.Generated.cs (2)
13533Assert.NotNull(node.Type); 13540var newNode = node.WithAttributeLists(node.AttributeLists).WithModifiers(node.Modifiers).WithType(node.Type).WithExplicitInterfaceSpecifier(node.ExplicitInterfaceSpecifier).WithIdentifier(node.Identifier).WithAccessorList(node.AccessorList).WithExpressionBody(node.ExpressionBody).WithInitializer(node.Initializer).WithSemicolonToken(node.SemicolonToken);
LexicalAndXml\XmlDocCommentTests.cs (1)
1904var keyword = ((tree.GetCompilationUnitRoot().Members[0] as TypeDeclarationSyntax).Members[0] as PropertyDeclarationSyntax).Type;
Parsing\DeclarationParsingTests.cs (22)
2910Assert.NotNull(propertySyntax.Type); 2911Assert.Equal("int", propertySyntax.Type.ToString()); 2950Assert.NotNull(propertySyntax.Type); 2951Assert.Equal("int", propertySyntax.Type.ToString()); 4133Assert.NotNull(ps.Type); 4134Assert.Equal("b", ps.Type.ToString()); 4187Assert.NotNull(ps.Type); 4188Assert.Equal("ref b", ps.Type.ToString()); 4242Assert.NotNull(ps.Type); 4243Assert.Equal("ref readonly b", ps.Type.ToString()); 4315Assert.NotNull(ps.Type); 4316Assert.Equal(typeText, ps.Type.ToString()); 4369Assert.NotNull(ps.Type); 4370Assert.Equal("b", ps.Type.ToString()); 4423Assert.NotNull(ps.Type); 4424Assert.Equal("b", ps.Type.ToString()); 4507Assert.NotNull(ps.Type); 4508Assert.Equal("b", ps.Type.ToString()); 4620Assert.NotNull(ps.Type); 4621Assert.Equal("b", ps.Type.ToString()); 4703Assert.NotNull(ps.Type); 4704Assert.Equal("b", ps.Type.ToString());
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
2128return ((PropertyDeclarationSyntax)declaration).Type;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
163return ((PropertyDeclarationSyntax)member).Type;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (2)
822.WithLeadingTrivia(propertyDeclaration.Type.GetLeadingTrivia()) 823.WithTrailingTrivia(propertyDeclaration.Type.GetTrailingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
1231Debug.Assert(propertyDeclaration?.Type != null, "Property type should never be null"); 1233var typeInfo = SemanticModel.GetTypeInfo(propertyDeclaration.Type);
Roslyn.Diagnostics.CSharp.Analyzers (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
163return ((PropertyDeclarationSyntax)member).Type;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (2)
822.WithLeadingTrivia(propertyDeclaration.Type.GetLeadingTrivia()) 823.WithTrailingTrivia(propertyDeclaration.Type.GetTrailingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
1231Debug.Assert(propertyDeclaration?.Type != null, "Property type should never be null"); 1233var typeInfo = SemanticModel.GetTypeInfo(propertyDeclaration.Type);