192 references to PropertyDeclaration
Microsoft.CodeAnalysis.CSharp (30)
Binder\BinderFactory.BinderFactoryVisitor.cs (4)
280case SyntaxKind.PropertyDeclaration: 475case SyntaxKind.PropertyDeclaration: 509Debug.Assert(basePropertyDeclarationSyntax.Kind() == SyntaxKind.PropertyDeclaration || basePropertyDeclarationSyntax.Kind() == SyntaxKind.IndexerDeclaration); 1238if (memberKind == SyntaxKind.PropertyDeclaration || memberKind == SyntaxKind.IndexerDeclaration)
Compilation\InitializerSemanticModel.cs (3)
52Debug.Assert(syntax.IsKind(SyntaxKind.PropertyDeclaration)); 100case SyntaxKind.PropertyDeclaration: 125case SyntaxKind.PropertyDeclaration:
Compilation\SyntaxTreeSemanticModel.cs (5)
926case SyntaxKind.PropertyDeclaration: 1131case SyntaxKind.PropertyDeclaration: 1587case SyntaxKind.PropertyDeclaration: 1612case SyntaxKind.PropertyDeclaration: 1638case SyntaxKind.PropertyDeclaration:
CSharpDeclarationComputer.cs (2)
209case SyntaxKind.PropertyDeclaration: 397case SyntaxKind.PropertyDeclaration:
Declarations\DeclarationTreeBuilder.cs (2)
957case SyntaxKind.PropertyDeclaration: 1017case SyntaxKind.PropertyDeclaration:
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (2)
578case SyntaxKind.PropertyDeclaration: 601case SyntaxKind.PropertyDeclaration:
Lowering\Instrumentation\DebugInfoInjector.cs (1)
108case SyntaxKind.PropertyDeclaration:
Lowering\LocalRewriter\LocalRewriter.cs (1)
754case SyntaxKind.PropertyDeclaration:
Parser\LanguageParser.cs (2)
2076case SyntaxKind.PropertyDeclaration: 4806case SyntaxKind.PropertyDeclaration:
Symbols\Source\SourceMemberContainerSymbol.cs (2)
2661case SyntaxKind.PropertyDeclaration: 4744case SyntaxKind.PropertyDeclaration:
Symbols\Source\SourceMemberMethodSymbol.cs (1)
615Debug.Assert(arrowExpression.Parent.Kind() == SyntaxKind.PropertyDeclaration ||
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
50Debug.Assert(arrowExpression.Parent!.Kind() == SyntaxKind.PropertyDeclaration ||
Syntax\SyntaxExtensions.cs (2)
46case SyntaxKind.PropertyDeclaration: 245case SyntaxKind.PropertyDeclaration:
Syntax\SyntaxFacts.cs (1)
178case PropertyDeclaration:
Syntax\SyntaxKindFacts.cs (1)
339case SyntaxKind.PropertyDeclaration:
Microsoft.CodeAnalysis.CSharp.CodeStyle (13)
CSharpAccessibilityFacts.cs (2)
57case SyntaxKind.PropertyDeclaration: 181case SyntaxKind.PropertyDeclaration:
CSharpQualifyMemberAccessDiagnosticAnalyzer.cs (1)
56=> declarationSyntax.IsKind(SyntaxKind.PropertyDeclaration) && declarationSyntax.Contains(node);
CSharpSyntaxFacts.cs (1)
1269case SyntaxKind.PropertyDeclaration:
CSharpSyntaxKinds.cs (1)
150public int PropertyDeclaration => (int)SyntaxKind.PropertyDeclaration;
CSharpUseAutoPropertyAnalyzer.cs (1)
29protected override SyntaxKind PropertyDeclarationKind => SyntaxKind.PropertyDeclaration;
FormattingHelpers.cs (1)
279token.Parent.Parent.IsKind(SyntaxKind.PropertyDeclaration);
MemberDeclarationSyntaxExtensions.cs (2)
47case SyntaxKind.PropertyDeclaration: 150case SyntaxKind.PropertyDeclaration:
SemanticModelExtensions.cs (1)
254type.IsParentKind(SyntaxKind.PropertyDeclaration) ||
SyntaxNodeExtensions.cs (1)
425case SyntaxKind.PropertyDeclaration:
UseExpressionBodyDiagnosticAnalyzer.cs (1)
60if (grandparent.Kind() == SyntaxKind.PropertyDeclaration &&
UseExpressionBodyForPropertiesHelper.cs (1)
28ImmutableArray.Create(SyntaxKind.PropertyDeclaration))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (10)
AddInheritdocCodeFixProvider.cs (1)
60if (node.Kind() is not SyntaxKind.MethodDeclaration and not SyntaxKind.PropertyDeclaration and not SyntaxKind.VariableDeclarator)
BasePropertyDeclarationSyntaxExtensions.cs (3)
21case SyntaxKind.PropertyDeclaration: return ((PropertyDeclarationSyntax)node).SemicolonToken; 39case SyntaxKind.PropertyDeclaration: return ((PropertyDeclarationSyntax)node).WithSemicolonToken(semicolonToken); 57case SyntaxKind.PropertyDeclaration: return ((PropertyDeclarationSyntax)node).WithExpressionBody(expressionBody);
CSharpCodeGenerationService.cs (1)
798case SyntaxKind.PropertyDeclaration:
CSharpDeclarationComparer.cs (2)
21{ SyntaxKind.PropertyDeclaration, 4 }, 129case SyntaxKind.PropertyDeclaration:
CSharpDeclareAsNullableCodeFixProvider.cs (2)
143SyntaxKind.PropertyDeclaration or 341SyntaxKind.PropertyDeclaration or
CSharpIndentationService.Indenter.cs (1)
253token.Parent.Parent.IsKind(SyntaxKind.PropertyDeclaration))
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (1)
800&& accessorDeclarationNode.Parent.IsParentKind(SyntaxKind.PropertyDeclaration)
CompleteStatement\CompleteStatementCommandHandler.cs (1)
255if (currentNode.IsKind(SyntaxKind.EqualsValueClause) && currentNode.IsParentKind(SyntaxKind.PropertyDeclaration))
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Diagnostics\Suppression\SuppressionTests.cs (2)
1071=> context.RegisterSyntaxNodeAction(AnalyzeNode, SyntaxKind.ClassDeclaration, SyntaxKind.EnumDeclaration, SyntaxKind.NamespaceDeclaration, SyntaxKind.MethodDeclaration, SyntaxKind.PropertyDeclaration, SyntaxKind.FieldDeclaration, SyntaxKind.EventDeclaration); 1092case SyntaxKind.PropertyDeclaration:
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
809case SyntaxKind.PropertyDeclaration:
Diagnostics\GetDiagnosticsTests.cs (1)
947}, SyntaxKind.PropertyDeclaration, SyntaxKind.IndexerDeclaration, SyntaxKind.EventDeclaration, SyntaxKind.MethodDeclaration);
Microsoft.CodeAnalysis.CSharp.Features (33)
AddInheritdocCodeFixProvider.cs (1)
60if (node.Kind() is not SyntaxKind.MethodDeclaration and not SyntaxKind.PropertyDeclaration and not SyntaxKind.VariableDeclarator)
CSharpDeclarationComputer.cs (2)
209case SyntaxKind.PropertyDeclaration: 397case SyntaxKind.PropertyDeclaration:
CSharpDeclareAsNullableCodeFixProvider.cs (2)
143SyntaxKind.PropertyDeclaration or 341SyntaxKind.PropertyDeclaration or
CSharpQualifyMemberAccessDiagnosticAnalyzer.cs (1)
56=> declarationSyntax.IsKind(SyntaxKind.PropertyDeclaration) && declarationSyntax.Contains(node);
CSharpUseAutoPropertyAnalyzer.cs (1)
29protected override SyntaxKind PropertyDeclarationKind => SyntaxKind.PropertyDeclaration;
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (1)
67case SyntaxKind.PropertyDeclaration:
EditAndContinue\BreakpointSpans.cs (1)
228case SyntaxKind.PropertyDeclaration:
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (11)
103case SyntaxKind.PropertyDeclaration: 133if (current.Parent is (kind: SyntaxKind.PropertyDeclaration or SyntaxKind.IndexerDeclaration)) 402case SyntaxKind.PropertyDeclaration: 873case SyntaxKind.PropertyDeclaration: 1178SyntaxKind.PropertyDeclaration or 1665case SyntaxKind.PropertyDeclaration: 2031case SyntaxKind.PropertyDeclaration: 2044if (node.Parent!.Parent!.IsKind(SyntaxKind.PropertyDeclaration)) 2056if (node.Parent!.Parent!.IsKind(SyntaxKind.PropertyDeclaration)) 2073SyntaxKind.PropertyDeclaration => CSharpFeaturesResources.property_getter, 2346case SyntaxKind.PropertyDeclaration:
EditAndContinue\SyntaxComparer.cs (3)
617case SyntaxKind.PropertyDeclaration: 624if (node?.Parent is (kind: SyntaxKind.PropertyDeclaration or SyntaxKind.IndexerDeclaration)) 1452case SyntaxKind.PropertyDeclaration:
EditAndContinue\SyntaxUtilities.cs (2)
60case SyntaxKind.PropertyDeclaration: 69result = node.Parent.Kind() is SyntaxKind.PropertyDeclaration or SyntaxKind.IndexerDeclaration ?
InheritanceMargin\CSharpInheritanceMarginService.cs (1)
45SyntaxKind.PropertyDeclaration or
IntroduceVariable\CSharpIntroduceVariableService.cs (1)
60=> expression.GetAncestorOrThis<EqualsValueClauseSyntax>().IsParentKind(SyntaxKind.PropertyDeclaration);
LineSeparators\CSharpLineSeparatorService.cs (1)
82case SyntaxKind.PropertyDeclaration:
Organizing\Organizers\MemberDeclarationsOrganizer.Comparer.cs (1)
156case SyntaxKind.PropertyDeclaration:
Structure\Providers\IndexerDeclarationStructureProvider.cs (1)
39&& (!nextSibling.IsNode || nextSibling.IsKind(SyntaxKind.IndexerDeclaration) || nextSibling.IsKind(SyntaxKind.PropertyDeclaration));
Structure\Providers\PropertyDeclarationStructureProvider.cs (1)
38&& (!nextSibling.IsNode || nextSibling.IsKind(SyntaxKind.PropertyDeclaration) || nextSibling.IsKind(SyntaxKind.IndexerDeclaration));
UseExpressionBodyDiagnosticAnalyzer.cs (1)
60if (grandparent.Kind() == SyntaxKind.PropertyDeclaration &&
UseExpressionBodyForPropertiesHelper.cs (1)
28ImmutableArray.Create(SyntaxKind.PropertyDeclaration))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (55)
Parsing\AsyncParsingTests.cs (5)
984N(SyntaxKind.PropertyDeclaration); 1029N(SyntaxKind.PropertyDeclaration); 2414N(SyntaxKind.PropertyDeclaration); 2450N(SyntaxKind.PropertyDeclaration); 2630N(SyntaxKind.PropertyDeclaration);
Parsing\DeclarationParsingTests.cs (14)
2905Assert.Equal(SyntaxKind.PropertyDeclaration, structDecl.Members[0].Kind()); 2946Assert.Equal(SyntaxKind.PropertyDeclaration, structDecl.Members[0].Kind()); 4129Assert.Equal(SyntaxKind.PropertyDeclaration, cs.Members[0].Kind()); 4183Assert.Equal(SyntaxKind.PropertyDeclaration, cs.Members[0].Kind()); 4238Assert.Equal(SyntaxKind.PropertyDeclaration, cs.Members[0].Kind()); 4311Assert.Equal(SyntaxKind.PropertyDeclaration, cs.Members[0].Kind()); 4365Assert.Equal(SyntaxKind.PropertyDeclaration, cs.Members[0].Kind()); 4419Assert.Equal(SyntaxKind.PropertyDeclaration, cs.Members[0].Kind()); 4463Assert.Equal(SyntaxKind.PropertyDeclaration, cs.Members[0].Kind()); 4503Assert.Equal(isEvent ? SyntaxKind.EventDeclaration : SyntaxKind.PropertyDeclaration, cs.Members[0].Kind()); 4615Assert.Equal(SyntaxKind.PropertyDeclaration, cs.Members[0].Kind()); 4699Assert.Equal(SyntaxKind.PropertyDeclaration, cs.Members[0].Kind()); 6286N(SyntaxKind.PropertyDeclaration); 6501N(SyntaxKind.PropertyDeclaration);
Parsing\DeclarationScopeParsingTests.cs (1)
11539N(SyntaxKind.PropertyDeclaration);
Parsing\FileModifierParsingTests.cs (2)
965N(SyntaxKind.PropertyDeclaration); 1110N(SyntaxKind.PropertyDeclaration);
Parsing\MemberDeclarationParsingTests.cs (12)
1061N(SyntaxKind.PropertyDeclaration); 1102N(SyntaxKind.PropertyDeclaration); 1143N(SyntaxKind.PropertyDeclaration); 1177N(SyntaxKind.PropertyDeclaration); 1209N(SyntaxKind.PropertyDeclaration); 1236N(SyntaxKind.PropertyDeclaration); 1284N(SyntaxKind.PropertyDeclaration); 1351N(SyntaxKind.PropertyDeclaration); 1723N(SyntaxKind.PropertyDeclaration); 1754N(SyntaxKind.PropertyDeclaration); 10402N(SyntaxKind.PropertyDeclaration); 10456N(SyntaxKind.PropertyDeclaration);
Parsing\ParsingErrorRecoveryTests.cs (5)
5601Assert.Equal(SyntaxKind.PropertyDeclaration, agg.Members[0].Kind()); 5625Assert.Equal(SyntaxKind.PropertyDeclaration, agg.Members[0].Kind()); 5650Assert.Equal(SyntaxKind.PropertyDeclaration, agg.Members[0].Kind()); 5685Assert.Equal(SyntaxKind.PropertyDeclaration, agg.Members[0].Kind()); 5724Assert.Equal(SyntaxKind.PropertyDeclaration, agg.Members[0].Kind());
Parsing\RecordParsing.cs (1)
1276N(SyntaxKind.PropertyDeclaration);
Parsing\RefFieldParsingTests.cs (1)
302N(SyntaxKind.PropertyDeclaration);
Parsing\ScriptParsingTests.cs (12)
1291N(SyntaxKind.PropertyDeclaration); 1774N(SyntaxKind.PropertyDeclaration); 1793N(SyntaxKind.PropertyDeclaration); 2065N(SyntaxKind.PropertyDeclaration); 2083N(SyntaxKind.PropertyDeclaration); 2102N(SyntaxKind.PropertyDeclaration); 2133N(SyntaxKind.PropertyDeclaration); 3080N(SyntaxKind.PropertyDeclaration); 3111N(SyntaxKind.PropertyDeclaration); 3150N(SyntaxKind.PropertyDeclaration); 3198N(SyntaxKind.PropertyDeclaration); 8795N(SyntaxKind.PropertyDeclaration);
Parsing\TopLevelStatementsParsingTests.cs (2)
845N(SyntaxKind.PropertyDeclaration); 1251N(SyntaxKind.PropertyDeclaration);
Microsoft.CodeAnalysis.CSharp.Workspaces (31)
BasePropertyDeclarationSyntaxExtensions.cs (3)
21case SyntaxKind.PropertyDeclaration: return ((PropertyDeclarationSyntax)node).SemicolonToken; 39case SyntaxKind.PropertyDeclaration: return ((PropertyDeclarationSyntax)node).WithSemicolonToken(semicolonToken); 57case SyntaxKind.PropertyDeclaration: return ((PropertyDeclarationSyntax)node).WithExpressionBody(expressionBody);
CodeGeneration\CSharpSyntaxGenerator.cs (14)
390AsModifierList(accessibility, actualModifiers, SyntaxKind.PropertyDeclaration), 408AsModifierList(accessibility, DeclarationModifiers.None, SyntaxKind.PropertyDeclaration)); 609SyntaxKind.PropertyDeclaration => ((PropertyDeclarationSyntax)declaration).WithExplicitInterfaceSpecifier(specifier), 635case SyntaxKind.PropertyDeclaration: 800case SyntaxKind.PropertyDeclaration: 1565case SyntaxKind.PropertyDeclaration: 1957case SyntaxKind.PropertyDeclaration: 1995SyntaxKind.PropertyDeclaration => ((PropertyDeclarationSyntax)declaration).WithType((TypeSyntax)type), 2266case SyntaxKind.PropertyDeclaration: 2322case SyntaxKind.PropertyDeclaration: 2395case SyntaxKind.PropertyDeclaration: 2435case SyntaxKind.PropertyDeclaration: 2566SyntaxKind.PropertyDeclaration => ((PropertyDeclarationSyntax)declaration).ExpressionBody == null, 2589case SyntaxKind.PropertyDeclaration:
CSharpAccessibilityFacts.cs (2)
57case SyntaxKind.PropertyDeclaration: 181case SyntaxKind.PropertyDeclaration:
CSharpCodeGenerationService.cs (1)
798case SyntaxKind.PropertyDeclaration:
CSharpDeclarationComparer.cs (2)
21{ SyntaxKind.PropertyDeclaration, 4 }, 129case SyntaxKind.PropertyDeclaration:
CSharpIndentationService.Indenter.cs (1)
253token.Parent.Parent.IsKind(SyntaxKind.PropertyDeclaration))
CSharpSyntaxFacts.cs (1)
1269case SyntaxKind.PropertyDeclaration:
CSharpSyntaxKinds.cs (1)
150public int PropertyDeclaration => (int)SyntaxKind.PropertyDeclaration;
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
368case SyntaxKind.PropertyDeclaration:
FormattingHelpers.cs (1)
279token.Parent.Parent.IsKind(SyntaxKind.PropertyDeclaration);
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs\SyntaxNodeExtensions.cs (1)
425case SyntaxKind.PropertyDeclaration:
MemberDeclarationSyntaxExtensions.cs (2)
47case SyntaxKind.PropertyDeclaration: 150case SyntaxKind.PropertyDeclaration:
SemanticModelExtensions.cs (1)
254type.IsParentKind(SyntaxKind.PropertyDeclaration) ||
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Diagnostics\DiagnosticServiceTests.vb (1)
1881Case CodeAnalysis.CSharp.SyntaxKind.PropertyDeclaration
Microsoft.VisualStudio.LanguageServices.CSharp (13)
CodeModel\CSharpCodeModelService.cs (8)
107case SyntaxKind.PropertyDeclaration: 197case SyntaxKind.PropertyDeclaration: 568case SyntaxKind.PropertyDeclaration: 619case SyntaxKind.PropertyDeclaration: 820case SyntaxKind.PropertyDeclaration: 900case SyntaxKind.PropertyDeclaration: 3516case SyntaxKind.PropertyDeclaration: 3648if (node == null || node.Kind() != SyntaxKind.PropertyDeclaration ||
CodeModel\CSharpCodeModelService.NodeLocator.cs (2)
57case SyntaxKind.PropertyDeclaration: 108case SyntaxKind.PropertyDeclaration:
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
240case SyntaxKind.PropertyDeclaration:
LanguageService\CSharpHelpContextService.cs (1)
251else if (token.Parent.Parent.IsKind(SyntaxKind.PropertyDeclaration))
Progression\CSharpProgressionLanguageService.cs (1)
78SyntaxKind.PropertyDeclaration)