BadScript 2
Loading...
Searching...
No Matches
BadScopeFlags.cs
Go to the documentation of this file.
1namespace BadScript2.Runtime;
2
6[Flags]
7public enum BadScopeFlags
8{
12 None = 0,
13
17 AllowReturn = 1,
18
22 AllowBreak = 2,
23
27 AllowContinue = 4,
28
32 AllowThrow = 8,
33
34
38 CaptureReturn = 16,
39
43 CaptureBreak = 32,
44
48 CaptureContinue = 64,
49
53 CaptureThrow = 128,
54
59
64
69
74
79}
Contains the Runtime Implementation.
BadScopeFlags
Defines Different Behaviours for the Current Scope.
@ Returnable
Shorthand for AllowReturn | CaptureReturn.
@ RootScope
Shorthand for Root Scope.
@ CaptureBreak
Indicates that the current scope should capture the break and should not pass it to the parent scope.
@ Continuable
Shorthand for AllowContinue | CaptureContinue.
@ Breakable
Shorthand for AllowBreak | CaptureBreak.
@ None
No Special Behaviour.
@ AllowReturn
Allows the usage of the Return Keyword.
@ CaptureReturn
Indicates that the current scope should capture the return and should not pass it to the parent scope...
@ AllowBreak
Allows the usage of the Break Keyword.
@ AllowContinue
Allows the usage of the Continue Keyword.
@ CaptureThrow
Indicates that the current scope should capture the throw and should not pass it to the parent scope.
@ AllowThrow
Allows the usage of the Throw Keyword.
@ Throwable
Shorthand for AllowThrow.
@ CaptureContinue
Indicates that the current scope should capture the continue and should not pass it to the parent sco...