4 instantiations of PropertyStatementSyntax
Microsoft.CodeAnalysis.VisualBasic (4)
Generated\Syntax.xml.Internal.Generated.vb (1)
7027Return new Microsoft.CodeAnalysis.VisualBasic.Syntax.PropertyStatementSyntax(Me, parent, startLocation)
Generated\Syntax.xml.Main.Generated.vb (2)
2297Return New PropertyStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.Node, newModifiers.Node, newPropertyKeyword, newIdentifier, newParameterList, newAsClause, newInitializer, newImplementsClause) 10765Return New PropertyStatementSyntax(SyntaxKind.PropertyStatement, Nothing, Nothing, attributeLists.Node, modifiers.Node, DirectCast(propertyKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(identifier.Node, InternalSyntax.IdentifierTokenSyntax), parameterList, asClause, initializer, implementsClause)
Generated\Syntax.xml.Syntax.Generated.vb (1)
8624Me.New(New Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.PropertyStatementSyntax(kind, errors, annotations, if(attributeLists IsNot Nothing, attributeLists.Green, Nothing), modifiers, propertyKeyword, identifier, if(parameterList IsNot Nothing, DirectCast(parameterList.Green, Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.ParameterListSyntax), Nothing), if(asClause IsNot Nothing, DirectCast(asClause.Green, Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.AsClauseSyntax), Nothing), if(initializer IsNot Nothing, DirectCast(initializer.Green, Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.EqualsValueSyntax), Nothing), if(implementsClause IsNot Nothing, DirectCast(implementsClause.Green, Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.ImplementsClauseSyntax), Nothing)), Nothing, 0)
264 references to PropertyStatementSyntax
Microsoft.CodeAnalysis.VisualBasic (65)
Binding\BinderFactory.BinderFactoryVisitor.vb (1)
130Public Overrides Function VisitPropertyStatement(node As PropertyStatementSyntax) As Binder
Binding\BinderFactory.vb (2)
250Return GetContainingNamedTypeBinderForMemberNode(DirectCast(node, PropertyStatementSyntax).Parent.Parent, containingBinder) 319Dim propertyStatement = DirectCast(node, PropertyStatementSyntax)
Binding\InitializerSemanticModel.vb (4)
64Dim declSyntax As PropertyStatementSyntax = DirectCast(propertySymbol.DeclarationSyntax, PropertyStatementSyntax) 190Dim declSyntax As PropertyStatementSyntax = DirectCast(rootSyntax, PropertyStatementSyntax)
Binding\MethodBodyBinder.vb (1)
72Dim propertySyntax As PropertyStatementSyntax = DirectCast(methodBlock.Parent, PropertyBlockSyntax).PropertyStatement
Compilation\SemanticModel.vb (3)
2673Public Overloads Function GetDeclaredSymbol(declarationSyntax As PropertyStatementSyntax, Optional cancellationToken As CancellationToken = Nothing) As IPropertySymbol 3288Return Me.GetDeclaredSymbol(DirectCast(node, PropertyStatementSyntax), cancellationToken) 3550If TypeOf declaringSyntax Is PropertyStatementSyntax Then
Compilation\SyntaxTreeSemanticModel.vb (1)
1030TypeOf (declarationSyntax) Is PropertyStatementSyntax))
Generated\Syntax.xml.Main.Generated.vb (10)
140Public Overridable Function VisitPropertyStatement(ByVal node As PropertyStatementSyntax) As TResult 875Public Overridable Sub VisitPropertyStatement(ByVal node As PropertyStatementSyntax) 2066Dim newPropertyStatement = DirectCast(Visit(node.PropertyStatement), PropertyStatementSyntax) 2276Public Overrides Function VisitPropertyStatement(ByVal node As PropertyStatementSyntax) As SyntaxNode 9051Public Shared Function PropertyBlock(propertyStatement As PropertyStatementSyntax, accessors As SyntaxList(of AccessorBlockSyntax), endPropertyStatement As EndBlockStatementSyntax) As PropertyBlockSyntax 9083Public Shared Function PropertyBlock(propertyStatement As PropertyStatementSyntax, accessors As SyntaxList(of AccessorBlockSyntax)) As PropertyBlockSyntax 10754Public Shared Function PropertyStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, propertyKeyword As SyntaxToken, identifier As SyntaxToken, parameterList As ParameterListSyntax, asClause As AsClauseSyntax, initializer As EqualsValueSyntax, implementsClause As ImplementsClauseSyntax) As PropertyStatementSyntax 10804Public Shared Function PropertyStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, identifier As SyntaxToken, parameterList As ParameterListSyntax, asClause As AsClauseSyntax, initializer As EqualsValueSyntax, implementsClause As ImplementsClauseSyntax) As PropertyStatementSyntax 10818Public Shared Function PropertyStatement(identifier As SyntaxToken) As PropertyStatementSyntax 10832Public Shared Function PropertyStatement(identifier As String) As PropertyStatementSyntax
Generated\Syntax.xml.Syntax.Generated.vb (18)
6028Friend _propertyStatement as PropertyStatementSyntax 6038Friend Sub New(ByVal kind As SyntaxKind, ByVal errors as DiagnosticInfo(), ByVal annotations as SyntaxAnnotation(), propertyStatement As PropertyStatementSyntax, accessors As SyntaxNode, endPropertyStatement As EndBlockStatementSyntax) 6045Public ReadOnly Property PropertyStatement As PropertyStatementSyntax 6056Public Shadows Function WithPropertyStatement(propertyStatement as PropertyStatementSyntax) As PropertyBlockSyntax 6150Public Function Update(propertyStatement As PropertyStatementSyntax, accessors As SyntaxList(of AccessorBlockSyntax), endPropertyStatement As EndBlockStatementSyntax) As PropertyBlockSyntax 8654Public Shadows Function WithAttributeLists(attributeLists as SyntaxList(Of AttributeListSyntax)) As PropertyStatementSyntax 8658Public Shadows Function AddAttributeLists(ParamArray items As AttributeListSyntax()) As PropertyStatementSyntax 8698Public Shadows Function WithModifiers(modifiers as SyntaxTokenList) As PropertyStatementSyntax 8702Public Shadows Function AddModifiers(ParamArray items As SyntaxToken()) As PropertyStatementSyntax 8724Public Shadows Function WithPropertyKeyword(propertyKeyword as SyntaxToken) As PropertyStatementSyntax 8742Public Shadows Function WithIdentifier(identifier as SyntaxToken) As PropertyStatementSyntax 8772Public Shadows Function WithParameterList(parameterList as ParameterListSyntax) As PropertyStatementSyntax 8776Public Shadows Function AddParameterListParameters(ParamArray items As ParameterSyntax()) As PropertyStatementSyntax 8803Public Shadows Function WithAsClause(asClause as AsClauseSyntax) As PropertyStatementSyntax 8825Public Shadows Function WithInitializer(initializer as EqualsValueSyntax) As PropertyStatementSyntax 8847Public Shadows Function WithImplementsClause(implementsClause as ImplementsClauseSyntax) As PropertyStatementSyntax 8851Public Shadows Function AddImplementsClauseInterfaceMembers(ParamArray items As QualifiedNameSyntax()) As PropertyStatementSyntax 8927Public Function Update(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, propertyKeyword As SyntaxToken, identifier As SyntaxToken, parameterList As ParameterListSyntax, asClause As AsClauseSyntax, initializer As EqualsValueSyntax, implementsClause As ImplementsClauseSyntax) As PropertyStatementSyntax
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (1)
527Dim propertySyntax As PropertyStatementSyntax = DirectCast(syntax, PropertyBlockSyntax).PropertyStatement
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.vb (1)
122Dim propertyStatement = DirectCast(syntax.Parent, PropertyStatementSyntax)
Symbols\Source\SourceMemberContainerTypeSymbol.vb (4)
1095Dim syntax As PropertyStatementSyntax = [property].GetDeclaringSyntaxNode(Of PropertyStatementSyntax)() 2593Dim propertyDecl = DirectCast(memberSyntax, PropertyStatementSyntax) 2629Private Sub CreateProperty(syntax As PropertyStatementSyntax,
Symbols\Source\SourceMethodSymbol.vb (2)
915Return DirectCast(node, PropertyStatementSyntax).Identifier.ValueText 1123Dim propertyIdentifier = DirectCast(syntax, PropertyStatementSyntax).Identifier
Symbols\Source\SourcePropertySymbol.vb (10)
82syntax As PropertyStatementSyntax, 310Return DirectCast(syntax, PropertyStatementSyntax) 350Dim syntax = DirectCast(_syntaxRef.GetSyntax(), PropertyStatementSyntax) 476Return OneOrMany.Create(DirectCast(_syntaxRef.GetSyntax, PropertyStatementSyntax).AttributeLists) 484Dim asClauseOpt = DirectCast(Me.Syntax, PropertyStatementSyntax).AsClause 815Dim paramList As ParameterListSyntax = DirectCast(decl, PropertyStatementSyntax).ParameterList 831Dim syntax = DirectCast(_syntaxRef.GetSyntax(), PropertyStatementSyntax) 880Dim syntax = DirectCast(_syntaxRef.GetSyntax(), PropertyStatementSyntax) 1003Dim propertySyntax = TryCast(_syntaxRef.GetSyntax(), PropertyStatementSyntax) 1103syntax As PropertyStatementSyntax,
Syntax\MethodBaseSyntax.vb (1)
227Public Shadows Function WithKeyword(keyword As SyntaxToken) As PropertyStatementSyntax
Syntax\SyntaxNodePartials.vb (1)
116Return DirectCast(Me, PropertyStatementSyntax).AsClause
Syntax\SyntaxNormalizer.vb (1)
1442Public Overrides Function VisitPropertyStatement(node As PropertyStatementSyntax) As SyntaxNode
VisualBasicDeclarationComputer.vb (3)
122Dim t = DirectCast(node, PropertyStatementSyntax) 183Private Shared Function GetPropertyStatementCodeBlocks(propertyStatement As PropertyStatementSyntax) As IEnumerable(Of SyntaxNode) 221Return DirectCast(methodBase, PropertyStatementSyntax).AsClause
VisualBasicExtensions.vb (1)
1149Public Function GetDeclaredSymbol(semanticModel As SemanticModel, declarationSyntax As PropertyStatementSyntax, Optional cancellationToken As CancellationToken = Nothing) As IPropertySymbol
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (23)
ElasticTriviaFormattingRule.vb (3)
103previousToken.GetAncestor(Of PropertyStatementSyntax)() IsNot Nothing OrElse 306IsBeginStatement(Of PropertyStatementSyntax, PropertyBlockSyntax)(currentStatement) OrElse 371TypeOf statement Is PropertyStatementSyntax OrElse
StatementSyntaxExtensions.vb (8)
42Return DirectCast(member, PropertyStatementSyntax).AttributeLists 113Return DirectCast(member, PropertyStatementSyntax).WithAttributeLists(attributeLists) 185Return DirectCast(member, PropertyStatementSyntax).Modifiers 260Return DirectCast(member, PropertyStatementSyntax).WithModifiers(modifiers) 330Return DirectCast(member, PropertyStatementSyntax).Identifier 380Return DirectCast(member, PropertyStatementSyntax).PropertyKeyword 451Return DirectCast(member, PropertyStatementSyntax).ParameterList 481Return DirectCast(member, PropertyStatementSyntax).AsClause
SyntaxNodeExtensions.vb (4)
900Dim [property] = TryCast(node, PropertyStatementSyntax) 971Dim propStatement = TryCast(node, PropertyStatementSyntax) 1160Return DirectCast(declaration, PropertyStatementSyntax).ParameterList 1218Return DirectCast(node, PropertyStatementSyntax).AttributeLists
VisualBasicAccessibilityFacts.vb (1)
149Return DirectCast(declaration, PropertyStatementSyntax).Modifiers
VisualBasicHeaderFacts.vb (1)
44Dim node = TryGetAncestorForLocation(Of PropertyStatementSyntax)(root, position)
VisualBasicSelectedMembers.vb (1)
14PropertyStatementSyntax,
VisualBasicSyntaxFacts.vb (5)
730If TypeOf node Is PropertyStatementSyntax AndAlso Not TypeOf node.Parent Is PropertyBlockSyntax Then 773If TypeOf node Is PropertyStatementSyntax AndAlso Not TypeOf node.Parent Is PropertyBlockSyntax Then 849Dim propStatement = TryCast(node, PropertyStatementSyntax) 1496Return node IsNot Nothing AndAlso TryCast(node.Parent, PropertyStatementSyntax)?.Initializer Is node 1527Dim [property] = DirectCast(parent, PropertyStatementSyntax)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
VisualBasicSyntaxContext.vb (2)
325Dim propertyDeclaration = TargetToken.GetAncestor(Of PropertyStatementSyntax)() 332Position, TargetToken, Function(p As PropertyStatementSyntax) p.Initializer.Value, cancellationToken, allowImplicitLineContinuation:=False)
VisualBasicTypeInferenceService.TypeInferrer.vb (1)
627Dim propertySyntax = CType(equalsValue.Parent, PropertyStatementSyntax)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (6)
EndConstructGeneration\EndConstructStatementVisitor_Properties.vb (6)
11Public Overrides Function VisitPropertyStatement(node As PropertyStatementSyntax) As AbstractEndConstructResult 131Private Shared Function NeedsGetAccessor(propertyDeclaration As PropertyStatementSyntax, Optional accessorToIgnore As AccessorBlockSyntax = Nothing) As Boolean 150Private Shared Function GenerateGetAccessor(propertyDeclaration As PropertyStatementSyntax, snapshot As ITextSnapshot) As String() 163Private Shared Function NeedsSetAccessor(propertyDeclaration As PropertyStatementSyntax, Optional accessorToIgnore As AccessorBlockSyntax = Nothing) As Boolean 182Private Shared Function GenerateSetAccessor(propertyDeclaration As PropertyStatementSyntax, snapshot As ITextSnapshot) As String() 189Private Shared Function GenerateSetAccessorArguments(propertyDeclaration As PropertyStatementSyntax) As String
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (4)
Diagnostics\Suppression\SuppressionTests.vb (2)
1026Dim p = DirectCast(context.Node, PropertyStatementSyntax) 1742Dim p = DirectCast(context.Node, PropertyStatementSyntax)
Structure\MetadataAsSource\PropertyDeclarationStructureTests.vb (1)
12Inherits AbstractVisualBasicSyntaxNodeStructureProviderTests(Of PropertyStatementSyntax)
Structure\PropertyDeclarationStructureTests.vb (1)
12Inherits AbstractVisualBasicSyntaxNodeStructureProviderTests(Of PropertyStatementSyntax)
Microsoft.CodeAnalysis.VisualBasic.Features (57)
ChangeSignature\VisualBasicChangeSignatureService.vb (2)
212Dim parameterList = DirectCast(matchingNode, PropertyStatementSyntax).ParameterList 433Dim propertyStatement = DirectCast(vbnode, PropertyStatementSyntax)
CodeFixes\OverloadBase\OverloadBaseCodeFixProvider.AddKeywordAction.vb (1)
60Dim propertyStatement = TryCast(node, PropertyStatementSyntax)
CodeFixes\OverloadBase\OverloadBaseCodeFixProvider.vb (1)
44If TypeOf token.Parent IsNot PropertyStatementSyntax AndAlso TypeOf token.Parent IsNot MethodStatementSyntax Then
CodeLens\VisualBasicCodeLensMemberFinder.vb (1)
57Public Overrides Sub VisitPropertyStatement(node As PropertyStatementSyntax)
Completion\CompletionProviders\ImplementsClauseCompletionProvider.vb (1)
75Dim propertyDeclaration = context.TargetToken.GetAncestor(Of PropertyStatementSyntax)()
Completion\KeywordRecommenders\Declarations\AsKeywordRecommender.vb (1)
91If targetToken.IsChildToken(Of PropertyStatementSyntax)(Function(propertyDeclaration) propertyDeclaration.Identifier) Then
Completion\KeywordRecommenders\Declarations\GetSetKeywordRecommender.vb (1)
35Dim propertyDeclaration = previousToken.GetAncestor(Of PropertyStatementSyntax)()
Completion\KeywordRecommenders\Expressions\MeKeywordRecommender.vb (1)
36Function(propertyStatement As PropertyStatementSyntax) Not propertyStatement.Modifiers.Any(SyntaxKind.SharedKeyword),
Completion\KeywordRecommenders\Expressions\NewKeywordRecommender.vb (1)
36Not DirectCast(asClause.Parent, PropertyStatementSyntax).Modifiers.Any(
Completion\Providers\ContextVariableArgumentProvider.vb (1)
35Function(propertyStatement As PropertyStatementSyntax) Not propertyStatement.Modifiers.Any(SyntaxKind.SharedKeyword),
ConvertAutoPropertyToFullProperty\VisualBasicConvertAutoPropertyToFullProperty.vb (5)
20Inherits AbstractConvertAutoPropertyToFullPropertyCodeRefactoringProvider(Of PropertyStatementSyntax, TypeBlockSyntax, VisualBasicCodeGenerationContextInfo) 50Dim propertySyntax = DirectCast(propertyNode, PropertyStatementSyntax) 67Private Shared Function IsReadOnly(propertySyntax As PropertyStatementSyntax) As Boolean 79Return DirectCast(propertyNode, PropertyStatementSyntax).WithInitializer(Nothing) 83Return DirectCast(propertyNode, PropertyStatementSyntax).Initializer?.Value
DocumentationComments\VisualBasicDocumentationCommentSnippetService.vb (1)
93Return Not DirectCast(member, PropertyStatementSyntax).Modifiers.Any(SyntaxKind.WriteOnlyKeyword)
EditAndContinue\BreakpointSpans.vb (2)
119Return TryCreateSpanForPropertyStatement(DirectCast(node, PropertyStatementSyntax)) 243Private Function TryCreateSpanForPropertyStatement(node As PropertyStatementSyntax) As TextSpan?
EditAndContinue\SyntaxComparer.vb (1)
1255Return DirectCast(node, PropertyStatementSyntax).Identifier
EditAndContinue\SyntaxUtilities.vb (1)
136Not DirectCast(propertyDeclaration, PropertyStatementSyntax).Modifiers.Any(SyntaxKind.MustOverrideKeyword)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (8)
132Dim propertyStatement = DirectCast(node, PropertyStatementSyntax) 282Private Shared Function HasAsNewClause(propertyStatement As PropertyStatementSyntax) As Boolean 312Dim propertyStatement = DirectCast(node, PropertyStatementSyntax) 395Dim propertyStatement = DirectCast(declaration, PropertyStatementSyntax) 976Return DirectCast(node, PropertyStatementSyntax).Modifiers 1089Dim propertyStatement = DirectCast(declaration, PropertyStatementSyntax) 1584Return GetDiagnosticSpan(DirectCast(node, PropertyStatementSyntax)) 1801endToken = DirectCast(header, PropertyStatementSyntax).Identifier
ExtractInterface\VisualBasicExtractInterfaceService.vb (1)
152Dim prop = TryCast(token.Parent, PropertyStatementSyntax)
ExtractMethod\Extensions.vb (1)
279Dim [property] = TryCast(n, PropertyStatementSyntax)
ExtractMethod\VisualBasicMethodExtractor.vb (1)
51enclosingTopLevelNode = basePosition.GetAncestor(Of PropertyStatementSyntax)()
ExtractMethod\VisualBasicSelectionResult.vb (1)
285Dim [property] = containingScope.GetAncestor(Of PropertyStatementSyntax)()
ExtractMethod\VisualBasicSelectionValidator.vb (1)
187selectionInfo.FirstTokenInFinalSpan.GetAncestor(Of PropertyStatementSyntax)() IsNot Nothing Then
GenerateMember\GenerateVariable\VisualBasicGenerateVariableService.vb (1)
46DirectCast(implementsClause.Parent, PropertyStatementSyntax),
Highlighting\KeywordHighlighters\PropertyDeclarationHighlighter.vb (2)
15Inherits AbstractKeywordHighlighter(Of PropertyStatementSyntax) 22Protected Overrides Sub AddHighlights(propertyDeclaration As PropertyStatementSyntax, highlights As List(Of TextSpan), cancellationToken As CancellationToken)
InheritanceMargin\VisualBasicInheritanceMarginService.vb (2)
52Dim propertyStatementNode = TryCast(member, PropertyStatementSyntax) 81Dim propertyStatementNode = TryCast(declarationNode, PropertyStatementSyntax)
IntroduceVariable\VisualBasicIntroduceVariableService.vb (1)
122Dim propertyStatement = expression.GetAncestorOrThis(Of PropertyStatementSyntax)()
ReplacePropertyWithMethods\VisualBasicReplacePropertyWithMethods.ConvertValueToParamRewriter.vb (1)
10Inherits AbstractReplacePropertyWithMethodsService(Of IdentifierNameSyntax, ExpressionSyntax, CrefReferenceSyntax, StatementSyntax, PropertyStatementSyntax)
ReplacePropertyWithMethods\VisualBasicReplacePropertyWithMethods.ConvertValueToReturnsRewriter.vb (1)
10Inherits AbstractReplacePropertyWithMethodsService(Of IdentifierNameSyntax, ExpressionSyntax, CrefReferenceSyntax, StatementSyntax, PropertyStatementSyntax)
ReplacePropertyWithMethods\VisualBasicReplacePropertyWithMethods.vb (6)
19Inherits AbstractReplacePropertyWithMethodsService(Of IdentifierNameSyntax, ExpressionSyntax, CrefReferenceSyntax, StatementSyntax, PropertyStatementSyntax) 36Dim propertyStatement = TryCast(propertyDeclarationNode, PropertyStatementSyntax) 51propertyStatement As PropertyStatementSyntax, 83propertyStatement As PropertyStatementSyntax, 116propertyStatement As PropertyStatementSyntax, 186Private Shared Function CopyLeadingTriviaOver(propertyStatement As PropertyStatementSyntax,
Structure\Providers\PropertyDeclarationStructureProvider.vb (2)
12Inherits AbstractSyntaxNodeStructureProvider(Of PropertyStatementSyntax) 15propertyDeclaration As PropertyStatementSyntax,
Structure\VisualBasicBlockStructureProvider.vb (1)
40builder.Add(Of PropertyStatementSyntax, PropertyDeclarationStructureProvider)()
Structure\VisualBasicStructureHelpers.vb (1)
156Dim propertyStatement = DirectCast(node, PropertyStatementSyntax)
UseAutoProperty\VisualBasicUseAutoPropertyCodeFixProvider.vb (2)
25If TypeOf node Is PropertyStatementSyntax Then 52statement = DirectCast(generator.WithModifiers(statement, generator.GetModifiers(propertyDeclaration).WithIsReadOnly(canBeReadOnly)), PropertyStatementSyntax)
VisualBasicDeclarationComputer.vb (3)
122Dim t = DirectCast(node, PropertyStatementSyntax) 183Private Shared Function GetPropertyStatementCodeBlocks(propertyStatement As PropertyStatementSyntax) As IEnumerable(Of SyntaxNode) 221Return DirectCast(methodBase, PropertyStatementSyntax).AsClause
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (5)
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (4)
1458Dim defPropSyntax = DirectCast(tree.FindNodeOrTokenByKind(SyntaxKind.PropertyStatement, 1).AsNode(), PropertyStatementSyntax) 1459Dim autoPropSyntax = DirectCast(tree.FindNodeOrTokenByKind(SyntaxKind.PropertyStatement, 2).AsNode(), PropertyStatementSyntax) 1460Dim regularPropSyntax = DirectCast(tree.FindNodeOrTokenByKind(SyntaxKind.PropertyStatement, 3).AsNode(), PropertyStatementSyntax) 2888Dim nodes = tree.GetCompilationUnitRoot().DescendantNodes().OfType(Of PropertyStatementSyntax)()
Extensions.vb (1)
44TypeOf node Is PropertyStatementSyntax OrElse
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.vb (1)
11169Private Shared Function GenerateRedPropertyStatement() As PropertyStatementSyntax
Parser\ParseDeclarationTests.vb (1)
1001Assert.Equal("(Of T)" + vbLf, DirectCast(c.Members(1), PropertyStatementSyntax).Identifier.TrailingTrivia.Node.ToFullString)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (50)
Classification\ClassificationHelpers.vb (2)
210ElseIf TypeOf parent Is PropertyStatementSyntax AndAlso DirectCast(parent, PropertyStatementSyntax).Identifier = identifier Then
CodeCleanup\Providers\AddMissingTokensCodeCleanupProvider.vb (1)
209Public Overrides Function VisitPropertyStatement(node As PropertyStatementSyntax) As SyntaxNode
CodeCleanup\Providers\NormalizeModifiersOrOperatorsCodeCleanupProvider.vb (1)
141Public Overrides Function VisitPropertyStatement(node As PropertyStatementSyntax) As SyntaxNode
CodeGeneration\VisualBasicCodeGenerationService.vb (1)
730Dim propertyStatementSyntax = DirectCast(syntaxNode, PropertyStatementSyntax)
CodeGeneration\VisualBasicDeclarationComparer.vb (4)
108Return Compare(DirectCast(x, PropertyStatementSyntax), DirectCast(y, PropertyStatementSyntax)) 226Private Function Compare(x As PropertyStatementSyntax, y As PropertyStatementSyntax) As Integer
CodeGeneration\VisualBasicSyntaxGenerator.vb (13)
974Dim propertyStatement = TryCast(declaration, PropertyStatementSyntax) 1231Return DirectCast(declaration, PropertyStatementSyntax).ImplementsClause 1250Return DirectCast(declaration, PropertyStatementSyntax).WithImplementsClause(clause) 1287Dim prop = TryCast(declaration, PropertyStatementSyntax) 1476Dim propertyStatement = DirectCast(d, PropertyStatementSyntax) 1862Return DirectCast(node, PropertyStatementSyntax).WithAttributeLists(arg) 1996Dim p = DirectCast(declaration, PropertyStatementSyntax) 2109Return DirectCast(declaration, PropertyStatementSyntax).Identifier.ValueText 2194Return ReplaceWithTrivia(declaration, DirectCast(declaration, PropertyStatementSyntax).Identifier, id) 2302Return DirectCast(declaration, PropertyStatementSyntax).AsClause 2347Return DirectCast(declaration, PropertyStatementSyntax).WithAsClause(asClause) 2613Return DirectCast(declaration, PropertyStatementSyntax).WithModifiers(tokens) 2987Return DirectCast(declaration, PropertyStatementSyntax).WithParameterList(list)
FindSymbols\VisualBasicDeclaredSymbolInfoFactoryService.vb (2)
300Dim propertyDecl = DirectCast(node, PropertyStatementSyntax) 455Private Shared Function GetPropertySuffix([property] As PropertyStatementSyntax) As String
Formatting\Rules\ElasticTriviaFormattingRule.vb (3)
103previousToken.GetAncestor(Of PropertyStatementSyntax)() IsNot Nothing OrElse 306IsBeginStatement(Of PropertyStatementSyntax, PropertyBlockSyntax)(currentStatement) OrElse 371TypeOf statement Is PropertyStatementSyntax OrElse
StatementSyntaxExtensions.vb (8)
42Return DirectCast(member, PropertyStatementSyntax).AttributeLists 113Return DirectCast(member, PropertyStatementSyntax).WithAttributeLists(attributeLists) 185Return DirectCast(member, PropertyStatementSyntax).Modifiers 260Return DirectCast(member, PropertyStatementSyntax).WithModifiers(modifiers) 330Return DirectCast(member, PropertyStatementSyntax).Identifier 380Return DirectCast(member, PropertyStatementSyntax).PropertyKeyword 451Return DirectCast(member, PropertyStatementSyntax).ParameterList 481Return DirectCast(member, PropertyStatementSyntax).AsClause
SyntaxNodeExtensions.vb (4)
900Dim [property] = TryCast(node, PropertyStatementSyntax) 971Dim propStatement = TryCast(node, PropertyStatementSyntax) 1160Return DirectCast(declaration, PropertyStatementSyntax).ParameterList 1218Return DirectCast(node, PropertyStatementSyntax).AttributeLists
VisualBasicAccessibilityFacts.vb (1)
149Return DirectCast(declaration, PropertyStatementSyntax).Modifiers
VisualBasicHeaderFacts.vb (1)
44Dim node = TryGetAncestorForLocation(Of PropertyStatementSyntax)(root, position)
VisualBasicSelectedMembers.vb (1)
14PropertyStatementSyntax,
VisualBasicSyntaxContext.vb (2)
325Dim propertyDeclaration = TargetToken.GetAncestor(Of PropertyStatementSyntax)() 332Position, TargetToken, Function(p As PropertyStatementSyntax) p.Initializer.Value, cancellationToken, allowImplicitLineContinuation:=False)
VisualBasicSyntaxFacts.vb (5)
730If TypeOf node Is PropertyStatementSyntax AndAlso Not TypeOf node.Parent Is PropertyBlockSyntax Then 773If TypeOf node Is PropertyStatementSyntax AndAlso Not TypeOf node.Parent Is PropertyBlockSyntax Then 849Dim propStatement = TryCast(node, PropertyStatementSyntax) 1496Return node IsNot Nothing AndAlso TryCast(node.Parent, PropertyStatementSyntax)?.Initializer Is node 1527Dim [property] = DirectCast(parent, PropertyStatementSyntax)
VisualBasicTypeInferenceService.TypeInferrer.vb (1)
627Dim propertySyntax = CType(equalsValue.Parent, PropertyStatementSyntax)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (10)
CodeGeneration\SyntaxGeneratorTests.vb (10)
1101VerifySyntax(Of PropertyStatementSyntax)( 1105VerifySyntax(Of PropertyStatementSyntax)( 1123VerifySyntax(Of PropertyStatementSyntax)( 1157VerifySyntax(Of PropertyStatementSyntax)( 1206VerifySyntax(Of PropertyStatementSyntax)( 1232VerifySyntax(Of PropertyStatementSyntax)( 1236VerifySyntax(Of PropertyStatementSyntax)( 1240VerifySyntax(Of PropertyStatementSyntax)( 2159VerifySyntax(Of PropertyStatementSyntax)( 2179VerifySyntax(Of PropertyStatementSyntax)(
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
FindReferencesTests.cs (2)
205var propertyStatement = tree.GetRoot().DescendantNodes().OfType<Microsoft.CodeAnalysis.VisualBasic.Syntax.PropertyStatementSyntax>().FirstOrDefault();
SymbolKeyTests.cs (1)
1057n => n is VisualBasic.Syntax.PropertyStatementSyntax).Single();
Microsoft.VisualStudio.LanguageServices.VisualBasic (35)
CodeModel\SyntaxExtensions.vb (2)
47Return DirectCast(method, PropertyStatementSyntax).Identifier.ToString() 78asClause = DirectCast(method, PropertyStatementSyntax).AsClause
CodeModel\VisualBasicCodeModelService.CodeModelEventCollector.vb (6)
556TypeOf oldMember Is PropertyStatementSyntax Then 558If(TypeOf oldMember Is PropertyBlockSyntax, DirectCast(oldMember, PropertyBlockSyntax).PropertyStatement, DirectCast(oldMember, PropertyStatementSyntax)), 559If(TypeOf newMember Is PropertyBlockSyntax, DirectCast(newMember, PropertyBlockSyntax).PropertyStatement, DirectCast(newMember, PropertyStatementSyntax)), 655Private Function CompareProperties(oldProperty As PropertyStatementSyntax, newProperty As PropertyStatementSyntax, newNodeParent As SyntaxNode, eventQueue As CodeModelEventQueue) As Boolean 1126If TypeOf node Is PropertyStatementSyntax AndAlso
CodeModel\VisualBasicCodeModelService.NodeLocator.vb (4)
86Return GetPropertyStatementStartPoint(text, DirectCast(node, PropertyStatementSyntax), part) 176Return GetPropertyStatementEndPoint(text, DirectCast(node, PropertyStatementSyntax), part) 705Private Shared Function GetPropertyStatementStartPoint(text As SourceText, propertyStatement As PropertyStatementSyntax, part As EnvDTE.vsCMPart) As VirtualTreePoint? 744Private Shared Function GetPropertyStatementEndPoint(text As SourceText, propertyStatement As PropertyStatementSyntax, part As EnvDTE.vsCMPart) As VirtualTreePoint?
CodeModel\VisualBasicCodeModelService.NodeNameGenerator.vb (1)
233Dim propertyStatement = DirectCast(node, PropertyStatementSyntax)
CodeModel\VisualBasicCodeModelService.vb (21)
389ElseIf TypeOf node Is PropertyStatementSyntax Then 390Return GetAttributeNodes(DirectCast(node, PropertyStatementSyntax).AttributeLists) 921Return DirectCast(node, PropertyStatementSyntax).Identifier.ToString() 995Return DirectCast(node, PropertyStatementSyntax).WithIdentifier(identifier) 2720TypeOf memberNode.Parent Is PropertyStatementSyntax Then 2770ElseIf TypeOf resultMember Is PropertyStatementSyntax Then 2771Dim propertyStatement = DirectCast(resultMember, PropertyStatementSyntax) 2862TypeOf propertyNode Is PropertyStatementSyntax) 2864If TypeOf propertyNode Is PropertyStatementSyntax Then 2878TypeOf propertyNode Is PropertyStatementSyntax) 2949TypeOf memberNode Is PropertyStatementSyntax) 2951Dim propertyStatement = TryCast(memberNode, PropertyStatementSyntax) 3305Private Shared Function SetPropertyType(propertyStatement As PropertyStatementSyntax, typeSymbol As ITypeSymbol) As PropertyStatementSyntax 3425TypeOf node Is PropertyStatementSyntax OrElse 3465If TypeOf node Is PropertyStatementSyntax Then 3466Return SetPropertyType(DirectCast(node, PropertyStatementSyntax), typeSymbol) 3890ElseIf TypeOf container Is PropertyStatementSyntax Then 3891Dim propertyStatement = DirectCast(container, PropertyStatementSyntax) 4192Not TypeOf node Is PropertyStatementSyntax AndAlso 4199Dim isAutoImplemented = TypeOf node Is PropertyStatementSyntax AndAlso
Help\VisualBasicHelpContextService.Visitor.vb (1)
547Public Overrides Sub VisitPropertyStatement(node As PropertyStatementSyntax)
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (1)
IOperation\IOperationTests_ISymbolInitializer.vb (1)
33Dim nodes = tree.GetRoot().DescendantNodes().Where(Function(n) TryCast(n, VariableDeclaratorSyntax) IsNot Nothing OrElse TryCast(n, PropertyStatementSyntax) IsNot Nothing).ToArray()