forked from ClearFoundry/ClearScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHostItemCollateral.cs
More file actions
55 lines (39 loc) · 1.91 KB
/
HostItemCollateral.cs
File metadata and controls
55 lines (39 loc) · 1.91 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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using System.Collections;
using System.Collections.Generic;
using System.Dynamic;
using Microsoft.ClearScript.Util;
namespace Microsoft.ClearScript
{
internal sealed class HostItemCollateral
{
#region special targets
public readonly CollateralObject<IDynamic> TargetDynamic = new CollateralObject<IDynamic>();
public readonly CollateralObject<IPropertyBag> TargetPropertyBag = new CollateralObject<IPropertyBag>();
public readonly CollateralObject<IHostList> TargetList = new CollateralObject<IHostList>();
public readonly CollateralObject<DynamicMetaObject> TargetDynamicMetaObject = new CollateralObject<DynamicMetaObject>();
public readonly CollateralObject<IEnumerator> TargetEnumerator = new CollateralObject<IEnumerator>();
#endregion
#region dynamic collateral
public readonly CollateralObject<HashSet<string>> ExpandoMemberNames = new CollateralObject<HashSet<string>>();
public readonly CollateralObject<ListDataFields> ListData = new CollateralObject<ListDataFields>();
#endregion
#region tear-off member cache
public readonly CollateralObject<Dictionary<string, HostMethod>> HostMethodMap = new CollateralObject<Dictionary<string, HostMethod>>();
public readonly CollateralObject<Dictionary<string, HostIndexedProperty>> HostIndexedPropertyMap = new CollateralObject<Dictionary<string, HostIndexedProperty>>();
#endregion
#region Nested type: CollateralObject<T>
public class CollateralObject<T> : CollateralObject<HostItem, T> where T : class
{
}
#endregion
#region Nested type: ListDataFields
public class ListDataFields
{
public int[] PropertyIndices;
public int CachedCount;
}
#endregion
}
}