Ejemplo n.º 1
0
 public List<object> GetNodeList(Block block)
 {
     List<object> nodeList;
     if (!NodeLists.TryGetValue(block, out nodeList))
         nodeList = block.NodeList;
     return nodeList;
 }
Ejemplo n.º 2
0
 public void AddParent(List<object> nodeList)
 {
     if (Parent != null)
     {
         Parent.AddParent(nodeList);
     }
     else
     {
         Parent = new Block();
         Parent.Initialize(TagName, BlockName, null);
         Parent.NodeList = new List<object>(nodeList);
     }
 }
Ejemplo n.º 3
0
 public void AddParent(Dictionary<Block, Block> parents, List<object> nodeList)
 {
     Block parent;
     if(parents.TryGetValue(this, out parent))
     {
         parent.AddParent(parents, nodeList);
     }
     else
     {
         parent = new Block();
         parent.Initialize(TagName, BlockName, null);
         parent.NodeList = new List<object>(nodeList);
         parents[this] = parent;
     }
 }
Ejemplo n.º 4
0
 public BlockDrop(Block block, TextWriter result)
 {
     _block = block;
     _result = result;
 }
Ejemplo n.º 5
0
 public BlockDrop(Block block)
 {
     _block = block;
 }