75 references to _unstructuredExceptionHandling
Microsoft.CodeAnalysis.VisualBasic (75)
Lowering\LocalRewriter\LocalRewriter_Try.vb (1)
16
Debug.Assert(
_unstructuredExceptionHandling
.Context Is Nothing)
Lowering\LocalRewriter\LocalRewriter_UnstructuredExceptionHandling.vb (74)
67
Debug.Assert(
_unstructuredExceptionHandling
.Context Is Nothing)
68
Debug.Assert(
_unstructuredExceptionHandling
.ExceptionHandlers Is Nothing)
69
Debug.Assert(
_unstructuredExceptionHandling
.ResumeTargets Is Nothing)
70
Debug.Assert(
_unstructuredExceptionHandling
.OnErrorResumeNextCount = 0)
71
Debug.Assert(
_unstructuredExceptionHandling
.ActiveHandlerTemporary Is Nothing)
72
Debug.Assert(
_unstructuredExceptionHandling
.ResumeTargetTemporary Is Nothing)
73
Debug.Assert(
_unstructuredExceptionHandling
.CurrentStatementTemporary Is Nothing)
74
Debug.Assert(
_unstructuredExceptionHandling
.ResumeNextLabel Is Nothing)
75
Debug.Assert(
_unstructuredExceptionHandling
.ResumeLabel Is Nothing)
139
_unstructuredExceptionHandling
.Context = node
140
_unstructuredExceptionHandling
.ExceptionHandlers = ArrayBuilder(Of BoundGotoStatement).GetInstance()
141
_unstructuredExceptionHandling
.OnErrorResumeNextCount = 0
147
_unstructuredExceptionHandling
.ActiveHandlerTemporary = New SynthesizedLocal(_topMethod, int32, SynthesizedLocalKind.OnErrorActiveHandler, DirectCast(nodeFactory.Syntax, StatementSyntax))
148
locals.Add(
_unstructuredExceptionHandling
.ActiveHandlerTemporary)
149
_unstructuredExceptionHandling
.ResumeTargetTemporary = New SynthesizedLocal(_topMethod, int32, SynthesizedLocalKind.OnErrorResumeTarget, DirectCast(nodeFactory.Syntax, StatementSyntax))
150
locals.Add(
_unstructuredExceptionHandling
.ResumeTargetTemporary)
153
_unstructuredExceptionHandling
.CurrentStatementTemporary = New SynthesizedLocal(_topMethod, int32, SynthesizedLocalKind.OnErrorCurrentStatement, DirectCast(nodeFactory.Syntax, StatementSyntax))
154
locals.Add(
_unstructuredExceptionHandling
.CurrentStatementTemporary)
155
_unstructuredExceptionHandling
.ResumeNextLabel = New GeneratedLabelSymbol("$VB$UnstructuredExceptionHandling_ResumeNext")
156
_unstructuredExceptionHandling
.ResumeLabel = New GeneratedLabelSymbol("$VB$UnstructuredExceptionHandling_Resume")
157
_unstructuredExceptionHandling
.ResumeTargets = ArrayBuilder(Of BoundGotoStatement).GetInstance()
170
If
_unstructuredExceptionHandling
.CurrentStatementTemporary IsNot Nothing Then
181
Dim resumeSwitchJumps(1 +
_unstructuredExceptionHandling
.ResumeTargets.Count - 1) As BoundGotoStatement
187
For i As Integer = 0 To
_unstructuredExceptionHandling
.ResumeTargets.Count - 1
188
resumeSwitchJumps(i + 1) =
_unstructuredExceptionHandling
.ResumeTargets(i)
192
nodeFactory.Local(
_unstructuredExceptionHandling
.ResumeTargetTemporary, isLValue:=False),
193
nodeFactory.Label(
_unstructuredExceptionHandling
.ResumeLabel),
194
nodeFactory.Label(
_unstructuredExceptionHandling
.ResumeNextLabel),
213
statements.Add(nodeFactory.AssignmentExpression(nodeFactory.Local(
_unstructuredExceptionHandling
.ResumeTargetTemporary, isLValue:=True),
214
If(
_unstructuredExceptionHandling
.CurrentStatementTemporary Is Nothing,
216
nodeFactory.Local(
_unstructuredExceptionHandling
.CurrentStatementTemporary, isLValue:=False))).ToStatement())
220
Dim onErrorSwitchJumps(2 +
_unstructuredExceptionHandling
.ExceptionHandlers.Count - 1) As BoundGotoStatement
224
_unstructuredExceptionHandling
.ResumeNextLabel,
227
For i As Integer = 0 To
_unstructuredExceptionHandling
.ExceptionHandlers.Count - 1
228
onErrorSwitchJumps(s_activeHandler_FirstNonReservedOnErrorGotoIndex + i) =
_unstructuredExceptionHandling
.ExceptionHandlers(i)
238
nodeFactory.Local(
_unstructuredExceptionHandling
.ActiveHandlerTemporary, isLValue:=False),
240
nodeFactory.Local(
_unstructuredExceptionHandling
.ActiveHandlerTemporary, isLValue:=False),
243
DirectCast(nodeFactory.Local(
_unstructuredExceptionHandling
.ActiveHandlerTemporary, isLValue:=False), BoundExpression)),
267
nodeFactory.Local(
_unstructuredExceptionHandling
.ActiveHandlerTemporary, isLValue:=False),
268
nodeFactory.Local(
_unstructuredExceptionHandling
.ResumeTargetTemporary, isLValue:=False),
299
nodeFactory.Local(
_unstructuredExceptionHandling
.ResumeTargetTemporary, isLValue:=False),
306
_unstructuredExceptionHandling
.Context = Nothing
307
_unstructuredExceptionHandling
.ExceptionHandlers.Free()
308
_unstructuredExceptionHandling
.ExceptionHandlers = Nothing
310
If
_unstructuredExceptionHandling
.ResumeTargets IsNot Nothing Then
311
_unstructuredExceptionHandling
.ResumeTargets.Free()
312
_unstructuredExceptionHandling
.ResumeTargets = Nothing
315
_unstructuredExceptionHandling
.ActiveHandlerTemporary = Nothing
316
_unstructuredExceptionHandling
.ResumeTargetTemporary = Nothing
317
_unstructuredExceptionHandling
.CurrentStatementTemporary = Nothing
318
_unstructuredExceptionHandling
.ResumeNextLabel = Nothing
319
_unstructuredExceptionHandling
.ResumeLabel = Nothing
320
_unstructuredExceptionHandling
.OnErrorResumeNextCount = 0
348
statements.Add(nodeFactory.AssignmentExpression(nodeFactory.Local(
_unstructuredExceptionHandling
.ResumeTargetTemporary, isLValue:=True),
353
newErrorHandlerIndex = s_activeHandler_FirstNonReservedOnErrorGotoIndex +
_unstructuredExceptionHandling
.ExceptionHandlers.Count
354
_unstructuredExceptionHandling
.ExceptionHandlers.Add(nodeFactory.Goto(node.LabelOpt, setWasCompilerGenerated:=False))
358
newErrorHandlerIndex = s_activeHandler_FirstOnErrorResumeNextIndex -
_unstructuredExceptionHandling
.OnErrorResumeNextCount
363
_unstructuredExceptionHandling
.OnErrorResumeNextCount += 1
370
statements.Add(nodeFactory.AssignmentExpression(nodeFactory.Local(
_unstructuredExceptionHandling
.ActiveHandlerTemporary, isLValue:=True),
409
nodeFactory.Local(
_unstructuredExceptionHandling
.ResumeTargetTemporary, isLValue:=False),
422
statements.Add(nodeFactory.AssignmentExpression(nodeFactory.Local(
_unstructuredExceptionHandling
.ResumeTargetTemporary, isLValue:=True),
432
statements.Add(nodeFactory.Goto(
_unstructuredExceptionHandling
.ResumeNextLabel))
436
statements.Add(nodeFactory.Goto(
_unstructuredExceptionHandling
.ResumeLabel))
451
Dim targetResumeLabel = New GeneratedUnstructuredExceptionHandlingResumeLabel(
_unstructuredExceptionHandling
.Context.ResumeWithoutLabelOpt)
453
_unstructuredExceptionHandling
.ResumeTargets.Add(New BoundGotoStatement(syntax, targetResumeLabel, Nothing))
463
statements.Add(nodeFactory.AssignmentExpression(nodeFactory.Local(
_unstructuredExceptionHandling
.CurrentStatementTemporary, isLValue:=True),
464
nodeFactory.Literal(
_unstructuredExceptionHandling
.ResumeTargets.Count)).ToStatement())
573
result.Context =
_unstructuredExceptionHandling
.Context
574
_unstructuredExceptionHandling
.Context = Nothing
586
_unstructuredExceptionHandling
.Context = saved.Context
590
Return
_unstructuredExceptionHandling
.Context IsNot Nothing AndAlso
591
_unstructuredExceptionHandling
.CurrentStatementTemporary IsNot Nothing AndAlso _currentMethodOrLambda Is _topMethod
595
Return _currentMethodOrLambda Is _topMethod AndAlso
_unstructuredExceptionHandling
.Context IsNot Nothing AndAlso
_unstructuredExceptionHandling
.Context.ContainsOnError