forked from SciSharp/Numpy.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDeclaration.cs
More file actions
55 lines (44 loc) · 1.49 KB
/
Declaration.cs
File metadata and controls
55 lines (44 loc) · 1.49 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
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
namespace CodeMinion.Core.Models
{
public class Declaration
{
/// <summary>
/// Function name
/// </summary>
public string Name { get; set; }
/// <summary>
/// Class name is the name of the containing API class (i.e. "numpy").
/// If it is a nested class the class name contains all nesting levels (i.e. "numpy.core.records")
/// </summary>
public string ClassName { get; set; }
public string GeneratedClassName { get; set; }
public List<Argument> Returns { get; set; } = new List<Argument>();
public bool IsDeprecated { get; set; }
public bool ManualOverride { get; set; }
public bool CommentOut { get; set; }
public string SharpOnlyPostfix { get; set; }
/// <summary>
/// Do not generate if true
/// </summary>
public bool Ignore { get; set; }
/// <summary>
/// Break into the Debugger when generating this declaration
/// </summary>
public bool DebuggerBreak { get; set; }
public string Description { get; set; }
public virtual Declaration Clone()
{
return Clone<Declaration>();
}
public virtual T Clone<T>()
{
return JObject.FromObject(this).ToObject<T>();
}
public string Tag { get; set; }
public virtual void Sanitize()
{
}
}
}