public List <DMASTNode> GetNode(DMASTNode node) { if (nodes.TryGetValue(Hash((dynamic)node), out List <DMASTNode> rval)) { return(rval); } else { return(null); } }
public void HashDefine(DMASTNode node) { var h = Hash((dynamic)node); if (nodes.ContainsKey(h)) { nodes[h].Add(node); } else { nodes.Add(h, new List <DMASTNode> { node }); } }
public void SimplifyAST(DMASTNode ast) { ast.Visit(this); }
public List <DMASTNode> GetNode(DMASTNode node) { return(nodes[Hash((dynamic)node)]); }