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