forked from DynamoDS/designscript-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AST.cs
41 lines (38 loc) · 1.16 KB
/
AST.cs
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
namespace ProtoCore.AST
{
public abstract class Node
{
private static int sID;
public int line { get; set; }
public int col { get; set; }
public int endLine { get; set; }
public int endCol { get; set; }
public string Name { get; set; }
public int ID { get; private set; }
public bool skipMe { get; set; }
public Node()
{
ID = ++sID;
line = ProtoCore.DSASM.Constants.kInvalidIndex;
col = ProtoCore.DSASM.Constants.kInvalidIndex;
endLine = ProtoCore.DSASM.Constants.kInvalidIndex;
endCol = ProtoCore.DSASM.Constants.kInvalidIndex;
skipMe = false;
Name = string.Empty;
}
public Node(Node rhs)
{
ID = ++sID;
line = rhs.line;
col = rhs.col;
endLine = rhs.endLine;
endCol = rhs.endCol;
Name = rhs.Name;
skipMe = rhs.skipMe;
}
public virtual bool Compare(Node other)
{
throw new System.NotImplementedException();
}
}
}