-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExecType.cs
More file actions
71 lines (51 loc) · 1.77 KB
/
Copy pathExecType.cs
File metadata and controls
71 lines (51 loc) · 1.77 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
61
62
63
64
65
66
67
68
69
70
71
namespace NodeDev.Core.Types
{
public class ExecType : TypeBase
{
public override string Name => "Exec";
public override string FullName => "__Exec__";
public override bool IsClass => false;
public override bool IsExec => true;
public override TypeBase[] Generics => [];
public override string FriendlyName => "Exec";
public override TypeBase? BaseType => throw new NotImplementedException();
public override TypeBase[] Interfaces => throw new NotImplementedException();
public override bool IsArray => false;
public override TypeBase ArrayInnerType => throw new Exception("Can't call ArrayInnerType on ExecType");
public override TypeBase ArrayType => throw new Exception("Can't call ArrayType on ExecType");
public override IEnumerable<IMemberInfo> GetMembers() => throw new NotImplementedException();
public override IEnumerable<IMethodInfo> GetMethods() => [];
public override IEnumerable<IMethodInfo> GetMethods(string name) => [];
public override TypeBase CloneWithGenerics(TypeBase[] newGenerics)
{
if (newGenerics.Length != 0)
throw new Exception("ExecType does not have generics");
return this;
}
internal protected override string Serialize()
{
return "";
}
public static ExecType Deserialize(TypeFactory typeFactory, string serialized)
{
return typeFactory.ExecType;
}
public override Type MakeRealType()
{
throw new Exception("Unable to make real type with ExecType");
}
public override bool IsSameBackend(TypeBase typeBase)
{
return typeBase == this;
}
//public override bool IsAssignableTo(TypeBase other)
//{
// throw new NotImplementedException();
//}
//
//public override bool IsSame(TypeBase other, bool ignoreGenerics)
//{
// throw new NotImplementedException();
//}
}
}