public List<object> GetNodeList(Block block) { List<object> nodeList; if (!NodeLists.TryGetValue(block, out nodeList)) nodeList = block.NodeList; return nodeList; }
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); } }
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; } }
public BlockDrop(Block block, TextWriter result) { _block = block; _result = result; }
public BlockDrop(Block block) { _block = block; }