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)(SyntaxList.List(CType(_statements, SyntaxListBuilder).ToArray))
264Private Shared Function IsLargeEnoughNonEmptyStatementList(statements As SyntaxListBuilder(Of StatementSyntax)) As Boolean
287Friend MustOverride Function Parse() As StatementSyntax
291Friend MustOverride Function CreateBlockSyntax(statement As StatementSyntax) As VisualBasicSyntaxNode
293Friend MustOverride Function EndBlock(statement As StatementSyntax) As BlockContext
295Friend MustOverride Function RecoverFromMismatchedEnd(statement As StatementSyntax) As BlockContext
297Friend Overridable Function ResyncAndProcessStatementTerminator(statement As StatementSyntax, lambdaContext As BlockContext) As BlockContext
313Private Sub HandleAnyUnexpectedTokens(currentStmt As StatementSyntax, unexpected As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of SyntaxToken))
319Dim stmt As StatementSyntax
385Return context.EndBlock(DirectCast(node, StatementSyntax))
397Return RecoverFromMismatchedEnd(DirectCast(node, StatementSyntax))
417Dim statement = TryCast(node, StatementSyntax)
465Return New DoLoopBlockContext(DirectCast(node, StatementSyntax), Me)
468Return New ForBlockContext(DirectCast(node, StatementSyntax), Me)
471Return New SelectBlockContext(DirectCast(node, StatementSyntax), Me)
486Return New StatementBlockContext(SyntaxKind.WhileBlock, DirectCast(node, StatementSyntax), Me)
489Return New StatementBlockContext(SyntaxKind.WithBlock, DirectCast(node, StatementSyntax), Me)
492Return New StatementBlockContext(SyntaxKind.SyncLockBlock, DirectCast(node, StatementSyntax), Me)
495Return New StatementBlockContext(SyntaxKind.UsingBlock, DirectCast(node, StatementSyntax), Me)
498Return New TryBlockContext(DirectCast(node, StatementSyntax), Me)
504Return context.ProcessSyntax(DirectCast(node, StatementSyntax))
596Private Function CreateMissingEnd(ByRef errorId As ERRID) As StatementSyntax
600Private Function CreateMissingEnd(kind As SyntaxKind, ByRef errorId As ERRID) As StatementSyntax
601Dim 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