aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/CrowIDE/src/Editors/CodeBuffer/Node.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-05-13 10:09:01 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-05-13 10:09:01 +0200
commit74d1288c9990bb251b7097b225891bafdc6758af (patch)
tree8173afa55887a46e9ef44076498be725c5b33ad1 /Samples/CrowIDE/src/Editors/CodeBuffer/Node.cs
parenta73c8383e6ea636672a3bdb07e084260538fc68a (diff)
removed splitted CrowIDE
Diffstat (limited to 'Samples/CrowIDE/src/Editors/CodeBuffer/Node.cs')
-rw-r--r--Samples/CrowIDE/src/Editors/CodeBuffer/Node.cs36
1 files changed, 0 insertions, 36 deletions
diff --git a/Samples/CrowIDE/src/Editors/CodeBuffer/Node.cs b/Samples/CrowIDE/src/Editors/CodeBuffer/Node.cs
deleted file mode 100644
index 9db55428..00000000
--- a/Samples/CrowIDE/src/Editors/CodeBuffer/Node.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-namespace Crow.Coding
-{
- public class Node
- {
- public Node Parent;
- public string Name;
- public string Type;
- public CodeLine StartLine;
- public CodeLine EndLine;
- public Dictionary<string,string> Attributes = new Dictionary<string, string> ();
-
- public List<Node> Children = new List<Node>();
-
- public Node ()
- {
- }
-
- public void AddChild (Node child) {
- child.Parent = this;
- Children.Add (child);
- }
-
- public int Level {
- get { return Parent == null ? 1 : Parent.Level + 1; }
- }
-
- public override string ToString ()
- {
- return string.Format ("Name:{0}, Type:{1}\n\tparent:{2}", Name, Type, Parent);
- }
- }
-}
-