forked from IronLanguages/ironpython3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModuleOptions.cs
More file actions
58 lines (56 loc) · 2.09 KB
/
ModuleOptions.cs
File metadata and controls
58 lines (56 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Text;
namespace IronPython.Runtime {
[Flags]
public enum ModuleOptions {
None = 0,
/// <summary>
/// Indicates that .NET methods such as .ToString should be available on Python objects.
/// </summary>
ShowClsMethods = 0x0002,
/// <summary>
/// Indicates that the module should be generated in an optimal form which will result
/// in it being uncollectable.
/// </summary>
Optimized = 0x0004,
/// <summary>
/// Indicates when the module should be executed immedatiately upon creation.
/// </summary>
Initialize = 0x0008,
/// <summary>
/// Indiciates that __builtins__ should not be set in the module
/// </summary>
NoBuiltins = 0x0040,
/// <summary>
/// Indiciates that when the module is initialized it should set __builtins__ to the __builtin__ module
/// instead of the __builtin__ dictionary.
/// </summary>
ModuleBuiltins = 0x0080,
/// <summary>
/// Marks code as being created for exec, eval. Code generated this way will
/// be capable of running against different scopes and will do lookups at runtime
/// for free global variables.
/// </summary>
ExecOrEvalCode = 0x0100,
/// <summary>
/// Indiciates that the first line of code should be skipped.
/// </summary>
SkipFirstLine = 0x0200,
/// <summary>
/// Forces the code to be interpreted rather than compiled
/// </summary>
Interpret = 0x1000,
/// <summary>
/// Include comments in the parse tree
/// </summary>
Verbatim = 0x4000,
/// <summary>
/// Generated code should support light exceptions
/// </summary>
LightThrow = 0x8000
}
}