58 references to BlockKind
Microsoft.CodeAnalysis.VisualBasic (58)
Parser\BlockContexts\BlockContext.vb (2)
164
Debug.Assert(
BlockKind
= SyntaxKind.CompilationUnit)
598
Return CreateMissingEnd(
BlockKind
, errorId)
Parser\BlockContexts\BlockContextExtensions.vb (3)
49
If conditionIsTrue(context.
BlockKind
) Then
60
If kinds.Contains(context.
BlockKind
) Then
71
If kinds.Contains(context.
BlockKind
) Then
Parser\BlockContexts\CaseBlockContext.vb (2)
29
If
BlockKind
= SyntaxKind.CaseElseBlock Then
60
If
BlockKind
= SyntaxKind.CaseBlock Then
Parser\BlockContexts\DeclarationContext.vb (2)
105
If Me.
BlockKind
= SyntaxKind.ModuleBlock Then
313
If Me.
BlockKind
= SyntaxKind.ModuleBlock Then
Parser\BlockContexts\DoLoopBlockContext.vb (1)
31
Dim kind As SyntaxKind =
BlockKind
Parser\BlockContexts\ExecutableStatementContext.vb (2)
51
node = Parser.ReportSyntaxError(node, ERRID.ERR_InvInsideBlock, SyntaxFacts.GetBlockName(
BlockKind
))
75
node = Parser.ReportSyntaxError(node, ERRID.ERR_InvInsideBlock, SyntaxFacts.GetBlockName(
BlockKind
))
Parser\BlockContexts\ForBlockContext.vb (3)
45
If
BlockKind
= SyntaxKind.ForBlock Then
73
If context.
BlockKind
<> SyntaxKind.ForBlock AndAlso context.
BlockKind
<> SyntaxKind.ForEachBlock Then
Parser\BlockContexts\IfBlockContext.vb (1)
23
(statement.Kind = SyntaxKind.ElseIfStatement AndAlso PrevBlock.
BlockKind
= SyntaxKind.SingleLineIfStatement))
Parser\BlockContexts\IfPartContext.vb (1)
27
If
BlockKind
= SyntaxKind.ElseIfBlock Then
Parser\BlockContexts\InterfaceDeclarationBlockContext.vb (1)
20
Debug.Assert(
BlockKind
= SyntaxKind.InterfaceBlock)
Parser\BlockContexts\LambdaContext.vb (2)
19
Debug.Assert(SyntaxFacts.IsMultiLineLambdaExpression(
BlockKind
))
37
Dim lambdaExpr = SyntaxFactory.MultiLineLambdaExpression(
BlockKind
, header, body, endBlockStmt)
Parser\BlockContexts\MethodBlockContext.vb (6)
45
If
BlockKind
<> SyntaxKind.GetAccessorBlock AndAlso
46
BlockKind
<> SyntaxKind.SetAccessorBlock Then
59
Select Case
BlockKind
64
result = SyntaxFactory.MethodBlock(
BlockKind
, beginBlockStmt, BodyWithWeakChildren(), endBlockStmt)
78
result = SyntaxFactory.AccessorBlock(
BlockKind
, beginBlockStmt, BodyWithWeakChildren(), endBlockStmt)
86
Throw ExceptionUtilities.UnexpectedValue(
BlockKind
)
Parser\BlockContexts\SingleLineElseContext.vb (10)
19
Debug.Assert(prevContext.
BlockKind
= SyntaxKind.SingleLineIfStatement)
138
Debug.Assert(
BlockKind
= SyntaxKind.SingleLineElseClause)
139
Debug.Assert(PrevBlock.
BlockKind
= SyntaxKind.SingleLineIfStatement)
143
While possiblyLineIfWithoutElse.
BlockKind
<> SyntaxKind.SingleLineIfStatement
144
Select Case possiblyLineIfWithoutElse.
BlockKind
147
Debug.Assert(possiblyLineIfWithoutElse.PrevBlock.
BlockKind
= SyntaxKind.SingleLineIfStatement)
158
Debug.Assert(possiblyLineIfWithoutElse.
BlockKind
= SyntaxKind.SingleLineIfStatement)
166
While context.
BlockKind
<> SyntaxKind.SingleLineIfStatement
167
Select Case context.
BlockKind
177
Throw ExceptionUtilities.UnexpectedValue(context.
BlockKind
)
Parser\BlockContexts\SingleLineIfOrElseBlockContext.vb (3)
28
Select Case parentContext.
BlockKind
47
Select Case context.
BlockKind
57
Throw ExceptionUtilities.UnexpectedValue(context.
BlockKind
)
Parser\BlockContexts\SingleLineLambdaContext.vb (2)
20
Debug.Assert(SyntaxFacts.IsSingleLineLambdaExpression(
BlockKind
))
45
Dim lambdaExpr = SyntaxFactory.SingleLineLambdaExpression(
BlockKind
, header, statement)
Parser\BlockContexts\StatementBlockContext.vb (2)
24
Select Case
BlockKind
45
Throw ExceptionUtilities.UnexpectedValue(
BlockKind
)
Parser\BlockContexts\TypeBlockContext.vb (5)
24
Debug.Assert(
BlockKind
= SyntaxKind.ModuleBlock OrElse
BlockKind
= SyntaxKind.ClassBlock OrElse
25
BlockKind
= SyntaxKind.StructureBlock OrElse
BlockKind
= SyntaxKind.InterfaceBlock)
94
Dim result = InternalSyntaxFactory.TypeBlock(
BlockKind
, beginBlockStmt,
Parser\Parser.vb (6)
767
If Context.
BlockKind
= SyntaxKind.EnumBlock Then
792
If Context.
BlockKind
= SyntaxKind.CompilationUnit 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\ParseStatement.vb (4)
61
Select Case loopContext.
BlockKind
161
Select Case loopContext.
BlockKind
736
enclosing.
BlockKind
<> SyntaxKind.ForBlock AndAlso
737
enclosing.
BlockKind
<> SyntaxKind.ForEachBlock Then