20 references to Context
Microsoft.CodeAnalysis.VisualBasic (20)
Parser\ParseExpression.vb (1)
224
ElseIf
Context
.IsWithinAsyncMethodOrLambda AndAlso keyword.Kind = SyntaxKind.AwaitKeyword Then
Parser\Parser.vb (11)
127
Return If(Not _isInMethodDeclarationHeader,
Context
.IsWithinAsyncMethodOrLambda, _isInAsyncMethodDeclarationHeader)
133
Return If(Not _isInMethodDeclarationHeader,
Context
.IsWithinIteratorMethodOrLambdaOrProperty, _isInIteratorMethodDeclarationHeader)
767
If
Context
.BlockKind = SyntaxKind.EnumBlock Then
792
If
Context
.BlockKind = SyntaxKind.CompilationUnit Then
1116
Context
.IsWithinAsyncMethodOrLambda Then
1120
Context
.IsWithinIteratorMethodOrLambdaOrProperty Then
1186
Context
.IsWithin(SyntaxKind.SetAccessorBlock, SyntaxKind.GetAccessorBlock) Then
1294
If
Context
.BlockKind = SyntaxKind.EnumBlock AndAlso Not modifiers.Any Then
1378
Select Case
Context
.BlockKind
2059
Select Case
Context
.BlockKind
4175
If
Context
.BlockKind <> SyntaxKind.InterfaceBlock AndAlso Not propertyStatement.Modifiers.Any(SyntaxKind.MustOverrideKeyword) Then
Parser\ParseScan.vb (3)
80
Return If(
Context
.IsWithinSingleLineLambda, CanFollowExpression(T), IsValidStatementTerminator(T)) OrElse
86
Return If(
Context
.IsWithinSingleLineLambda,
88
IsValidStatementTerminator(nextToken)) OrElse (
Context
.IsLineIf AndAlso nextToken.Kind = SyntaxKind.ElseKeyword)
Parser\ParseStatement.vb (5)
57
Dim loopContext =
Context
.FindNearest(AddressOf SyntaxFacts.SupportsContinueStatement)
157
Dim loopContext =
Context
.FindNearest(AddressOf SyntaxFacts.SupportsExitStatement)
460
If
Context
.IsSingleLine Then
724
Dim enclosing As BlockContext =
Context
1420
Context
.IsWithin(SyntaxKind.SetAccessorBlock, SyntaxKind.GetAccessorBlock) Then