Пример #1
0
 public List<object> GetNodeList(Block block)
 {
     List<object> nodeList;
     if (!NodeLists.TryGetValue(block, out nodeList))
         nodeList = block.NodeList;
     return nodeList;
 }
Пример #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);
     }
 }
Пример #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;
     }
 }
Пример #4
0
 public BlockDrop(Block block, TextWriter result)
 {
     _block = block;
     _result = result;
 }
Пример #5
0
 public BlockDrop(Block block)
 {
     _block = block;
 }