57 references to IteratorKeyword
Microsoft.CodeAnalysis.VisualBasic (26)
Binding\Binder_Utils.vb (3)
111Case SyntaxKind.IteratorKeyword : Return SourceMemberFlags.Iterator 1717SyntaxKind.IteratorKeyword 1737SyntaxKind.IteratorKeyword
Declarations\DeclarationTreeBuilder.vb (1)
847Case SyntaxKind.IteratorKeyword : bit = DeclarationModifiers.Iterator
Generated\Syntax.xml.Main.Generated.vb (2)
45192SyntaxKind.IteratorKeyword, 45750Case SyntaxKind.IteratorKeyword
Parser\BlockContexts\BlockContext.vb (3)
56_isWithinIteratorMethodOrLambdaOrProperty = DirectCast(statement, PropertyStatementSyntax).Modifiers.Any(SyntaxKind.IteratorKeyword) 68_isWithinIteratorMethodOrLambdaOrProperty = DirectCast(statement, MethodStatementSyntax).Modifiers.Any(SyntaxKind.IteratorKeyword) 76_isWithinIteratorMethodOrLambdaOrProperty = DirectCast(statement, LambdaHeaderSyntax).Modifiers.Any(SyntaxKind.IteratorKeyword)
Parser\BlockContexts\DeclarationContext.vb (1)
132SyntaxKind.IteratorKeyword)
Parser\BlockContexts\SingleLineLambdaContext.vb (1)
49ElseIf header.Kind = SyntaxKind.FunctionLambdaHeader AndAlso header.Modifiers.Any(SyntaxKind.IteratorKeyword) Then
Parser\ParseExpression.vb (4)
205ElseIf keyword.Kind = SyntaxKind.AsyncKeyword OrElse keyword.Kind = SyntaxKind.IteratorKeyword Then 213(possibleKeyword.Kind = SyntaxKind.AsyncKeyword OrElse possibleKeyword.Kind = SyntaxKind.IteratorKeyword) Then 1652_isInIteratorMethodDeclarationHeader = modifiers.Any(SyntaxKind.IteratorKeyword) 1763If header.Modifiers.Any(SyntaxKind.IteratorKeyword) Then
Parser\Parser.vb (7)
779ElseIf contextualKind = SyntaxKind.AsyncKeyword OrElse contextualKind = SyntaxKind.IteratorKeyword Then 1106ElseIf contextualKind = SyntaxKind.AsyncKeyword OrElse contextualKind = SyntaxKind.IteratorKeyword Then 1870SyntaxKind.IteratorKeyword 1876SyntaxKind.IteratorKeyword 1998possibleKeyword.Kind = SyntaxKind.IteratorKeyword Then 3614_isInIteratorMethodDeclarationHeader = modifiers.Any(SyntaxKind.IteratorKeyword) 3779_isInIteratorMethodDeclarationHeader = modifiers.Any(SyntaxKind.IteratorKeyword)
Scanner\KeywordTable.vb (1)
216SyntaxKind.IteratorKeyword, None,
Syntax\SyntaxKindFacts.vb (3)
290SyntaxKind.IteratorKeyword, 401SyntaxKind.IteratorKeyword 817{"iterator", SyntaxKind.IteratorKeyword},
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (9)
ModifierCollectionFacts.vb (3)
46targetToken.HasMatchingText(SyntaxKind.IteratorKeyword) 182Case SyntaxKind.IteratorKeyword 198ElseIf targetToken.HasMatchingText(SyntaxKind.IteratorKeyword) Then
SyntaxTokenExtensions.vb (1)
173SyntaxKind.IteratorKeyword
SyntaxTreeExtensions.vb (1)
172If token.HasMatchingText(SyntaxKind.AsyncKeyword) OrElse token.HasMatchingText(SyntaxKind.IteratorKeyword) Then
VisualBasicConvertToIteratorCodeFixProvider.vb (4)
91If methodStatementNode IsNot Nothing AndAlso Not methodStatementNode.Modifiers.Any(SyntaxKind.IteratorKeyword) Then 99If lambdaNode IsNot Nothing AndAlso Not lambdaNode.SubOrFunctionHeader.Modifiers.Any(SyntaxKind.IteratorKeyword) Then 113Dim iteratorToken As SyntaxToken = Token(SyntaxKind.IteratorKeyword).WithAdditionalAnnotations(Formatter.Annotation) 132Dim iteratorToken As SyntaxToken = Token(SyntaxKind.IteratorKeyword).WithAdditionalAnnotations(Formatter.Annotation)
Microsoft.CodeAnalysis.VisualBasic.Features (11)
Completion\KeywordRecommenders\Declarations\AsKeywordRecommender.vb (1)
114(targetToken.HasMatchingText(SyntaxKind.AsyncKeyword) OrElse targetToken.HasMatchingText(SyntaxKind.IteratorKeyword)) Then
Completion\KeywordRecommenders\EventHandling\HandlesKeywordRecommender.vb (1)
35If methodDeclaration Is Nothing OrElse methodDeclaration.Modifiers.Any(SyntaxKind.IteratorKeyword) Then
Completion\KeywordRecommenders\Expressions\LambdaKeywordRecommender.vb (1)
28If targetToken.IsKindOrHasMatchingText(SyntaxKind.IteratorKeyword) Then
EditAndContinue\SyntaxUtilities.vb (1)
144Return GetModifiers(declaration).Any(SyntaxKind.IteratorKeyword)
Highlighting\KeywordHighlighters\AccessorDeclarationHighlighter.vb (1)
33isIterator = .PropertyStatement.Modifiers.Any(SyntaxKind.IteratorKeyword)
Highlighting\KeywordHighlighters\MethodDeclarationHighlighter.vb (1)
34isIterator = .Modifiers.Any(SyntaxKind.IteratorKeyword)
Highlighting\KeywordHighlighters\MultiLineLambdaExpressionHighlighter.vb (1)
34isIterator = .Modifiers.Any(SyntaxKind.IteratorKeyword)
VisualBasicConvertToIteratorCodeFixProvider.vb (4)
91If methodStatementNode IsNot Nothing AndAlso Not methodStatementNode.Modifiers.Any(SyntaxKind.IteratorKeyword) Then 99If lambdaNode IsNot Nothing AndAlso Not lambdaNode.SubOrFunctionHeader.Modifiers.Any(SyntaxKind.IteratorKeyword) Then 113Dim iteratorToken As SyntaxToken = Token(SyntaxKind.IteratorKeyword).WithAdditionalAnnotations(Formatter.Annotation) 132Dim iteratorToken As SyntaxToken = Token(SyntaxKind.IteratorKeyword).WithAdditionalAnnotations(Formatter.Annotation)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Parser\ParseIteratorTests.vb (2)
78Assert.Equal(6, Aggregate t In tree.GetRoot().DescendantTokens Where t.Kind = SyntaxKind.IteratorKeyword Into Count()) 419Return methodSyntax.BlockStatement.Modifiers.Contains(Function(t As SyntaxToken) t.Kind = SyntaxKind.IteratorKeyword)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (9)
Classification\SyntaxClassification\NameSyntaxClassifier.vb (2)
183token.HasMatchingText(SyntaxKind.IteratorKeyword) Then 254token.HasMatchingText(SyntaxKind.IteratorKeyword) Then
CodeCleanup\AsyncOrIteratorFunctionReturnTypeFixer.vb (1)
69ElseIf modifiers.Any(SyntaxKind.IteratorKeyword) Then
CodeCleanup\Providers\NormalizeModifiersOrOperatorsCodeCleanupProvider.vb (1)
62SyntaxKind.AsyncKeyword, SyntaxKind.IteratorKeyword}
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTokenExtensions.vb\SyntaxTokenExtensions.vb (1)
173SyntaxKind.IteratorKeyword
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb\SyntaxTreeExtensions.vb (1)
172If token.HasMatchingText(SyntaxKind.AsyncKeyword) OrElse token.HasMatchingText(SyntaxKind.IteratorKeyword) Then
ModifierCollectionFacts.vb (3)
46targetToken.HasMatchingText(SyntaxKind.IteratorKeyword) 182Case SyntaxKind.IteratorKeyword 198ElseIf targetToken.HasMatchingText(SyntaxKind.IteratorKeyword) Then