-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathPrecompiledScript.cs
More file actions
60 lines (55 loc) · 1.28 KB
/
Copy pathPrecompiledScript.cs
File metadata and controls
60 lines (55 loc) · 1.28 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
59
60
namespace MsieJavaScriptEngine
{
/// <summary>
/// Represents a pre-compiled script that can be executed by different instances of the MSIE JS engine
/// </summary>
public sealed class PrecompiledScript
{
/// <summary>
/// Gets a name of JS engine mode
/// </summary>
public string EngineMode
{
get;
private set;
}
/// <summary>
/// Gets a source code of the script
/// </summary>
internal string Code
{
get;
private set;
}
/// <summary>
/// Gets a cached data for accelerated recompilation
/// </summary>
internal byte[] CachedBytes
{
get;
private set;
}
/// <summary>
/// Gets a document name
/// </summary>
internal string DocumentName
{
get;
private set;
}
/// <summary>
/// Constructs an instance of pre-compiled script
/// </summary>
/// <param name="engineMode">Name of JS engine mode</param>
/// <param name="code">The source code of the script</param>
/// <param name="cachedBytes">Cached data for accelerated recompilation</param>
/// <param name="documentName">Document name</param>
internal PrecompiledScript(string engineMode, string code, byte[] cachedBytes, string documentName)
{
EngineMode = engineMode;
Code = code;
CachedBytes = cachedBytes;
DocumentName = documentName;
}
}
}