Parser\BlockContexts\BlockContext.vb (38)
18Private _beginStatement As StatementSyntax
21Protected _statements As SyntaxListBuilder(Of StatementSyntax)
33Protected Sub New(kind As SyntaxKind, statement As StatementSyntax, prev As BlockContext)
91_statements = _parser._pool.Allocate(Of StatementSyntax)()
95Friend ReadOnly Property BeginStatement As StatementSyntax
101Friend Sub GetBeginEndStatements(Of T1 As StatementSyntax, T2 As StatementSyntax)(ByRef beginStmt As T1, ByRef endStmt As T2)
196_statements.Add(DirectCast(node, StatementSyntax))
199Friend ReadOnly Property Statements As SyntaxListBuilder(Of StatementSyntax)
209Friend Function Body() As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of StatementSyntax)
221Friend Function SingleStatementOrDefault() As StatementSyntax
229Friend Function OptionalBody() As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of StatementSyntax)
241Friend Function Body(Of T As StatementSyntax)() As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of T)
251Friend Function BodyWithWeakChildren() As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of StatementSyntax)
253Dim result = New CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of StatementSyntax)(
265Private Shared Function IsLargeEnoughNonEmptyStatementList(statements As SyntaxListBuilder(Of StatementSyntax)) As Boolean
288Friend MustOverride Function Parse() As StatementSyntax
292Friend MustOverride Function CreateBlockSyntax(statement As StatementSyntax) As VisualBasicSyntaxNode
294Friend MustOverride Function EndBlock(statement As StatementSyntax) As BlockContext
296Friend MustOverride Function RecoverFromMismatchedEnd(statement As StatementSyntax) As BlockContext
298Friend Overridable Function ResyncAndProcessStatementTerminator(statement As StatementSyntax, lambdaContext As BlockContext) As BlockContext
314Private Sub HandleAnyUnexpectedTokens(currentStmt As StatementSyntax, unexpected As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of SyntaxToken))
320Dim stmt As StatementSyntax
386Return context.EndBlock(DirectCast(node, StatementSyntax))
398Return RecoverFromMismatchedEnd(DirectCast(node, StatementSyntax))
418Dim statement = TryCast(node, StatementSyntax)
466Return New DoLoopBlockContext(DirectCast(node, StatementSyntax), Me)
469Return New ForBlockContext(DirectCast(node, StatementSyntax), Me)
472Return New SelectBlockContext(DirectCast(node, StatementSyntax), Me)
487Return New StatementBlockContext(SyntaxKind.WhileBlock, DirectCast(node, StatementSyntax), Me)
490Return New StatementBlockContext(SyntaxKind.WithBlock, DirectCast(node, StatementSyntax), Me)
493Return New StatementBlockContext(SyntaxKind.SyncLockBlock, DirectCast(node, StatementSyntax), Me)
496Return New StatementBlockContext(SyntaxKind.UsingBlock, DirectCast(node, StatementSyntax), Me)
499Return New TryBlockContext(DirectCast(node, StatementSyntax), Me)
505Return context.ProcessSyntax(DirectCast(node, StatementSyntax))
597Private Function CreateMissingEnd(ByRef errorId As ERRID) As StatementSyntax
601Private Function CreateMissingEnd(kind As SyntaxKind, ByRef errorId As ERRID) As StatementSyntax
602Dim endStmt As StatementSyntax
Parser\BlockContexts\DeclarationContext.vb (10)
16Friend Sub New(kind As SyntaxKind, statement As StatementSyntax, context As BlockContext)
20Friend Overrides Function Parse() As StatementSyntax
62Return New TypeBlockContext(SyntaxKind.ModuleBlock, DirectCast(node, StatementSyntax), Me)
65Return New EnumDeclarationBlockContext(DirectCast(node, StatementSyntax), Me)
68Return New TypeBlockContext(SyntaxKind.ClassBlock, DirectCast(node, StatementSyntax), Me)
71Return New TypeBlockContext(SyntaxKind.StructureBlock, DirectCast(node, StatementSyntax), Me)
74Return New InterfaceDeclarationBlockContext(DirectCast(node, StatementSyntax), Me)
109Return New MethodBlockContext(SyntaxKind.OperatorBlock, DirectCast(node, StatementSyntax), Me)
359Friend Overrides Function RecoverFromMismatchedEnd(statement As StatementSyntax) As BlockContext
465Friend Overrides Function EndBlock(endStmt As StatementSyntax) As BlockContext
Parser\BlockContexts\EventBlockContext.vb (5)
17Friend Sub New(statement As StatementSyntax, prevContext As BlockContext)
26Return New MethodBlockContext(SyntaxKind.AddHandlerAccessorBlock, DirectCast(node, StatementSyntax), Me)
29Return New MethodBlockContext(SyntaxKind.RemoveHandlerAccessorBlock, DirectCast(node, StatementSyntax), Me)
32Return New MethodBlockContext(SyntaxKind.RaiseEventAccessorBlock, DirectCast(node, StatementSyntax), Me)
80Friend Overrides Function CreateBlockSyntax(statement As StatementSyntax) As VisualBasicSyntaxNode
Parser\BlockContexts\InterfaceDeclarationBlockContext.vb (6)
17Friend Sub New(statement As StatementSyntax, prevContext As BlockContext)
91Return New EnumDeclarationBlockContext(DirectCast(node, StatementSyntax), Me)
94Return New TypeBlockContext(SyntaxKind.ClassBlock, DirectCast(node, StatementSyntax), Me)
97Return New TypeBlockContext(SyntaxKind.StructureBlock, DirectCast(node, StatementSyntax), Me)
100Return New InterfaceDeclarationBlockContext(DirectCast(node, StatementSyntax), Me)
194Friend Overrides Function RecoverFromMismatchedEnd(statement As StatementSyntax) As BlockContext