public void Replace(CNode child, CNode newchild) { if (child == expression) { Expression = (CExpression)newchild; } }
void INodeParent.Replace(CNode child, CNode newchild) { if (child == Initializer) { Initializer = (CExpression)newchild; } }
void INodeParent.Replace(CNode child, CNode newchild) { if (child == m_targetAccess) m_targetAccess = (CAccess)newchild; newchild.Parent = this; m_targetAccess.IsCallExplicit = true; }
void INodeParent.Replace(CNode child, CNode newchild) { if (child == group) { group = (CExpression)newchild; } newchild.Parent = this; }
void INodeParent.Replace(CNode child, CNode newchild) { if (child == access) { access = (CAccess)newchild; newchild.Parent = this; } }
void INodeParent.Replace(CNode child, CNode newchild) { if (child == _object) { _object = (CAccess)newchild; } newchild.Parent = this; }
void INodeParent.Replace(CNode child, CNode newchild) { if (withObj == child) { withObj = (CExpression)newchild; newchild.Parent = this; } }
void INodeParent.Replace(CNode child, CNode newchild) { if (child == condition) { condition = (CExpression)newchild; } newchild.Parent = this; }
void INodeParent.Replace(CNode child, CNode newchild) { if (child == m_value) { m_value = (CExpression)newchild; } newchild.Parent = this; }
void INodeParent.Replace(CNode child, CNode newchild) { if (inner == child) { inner = (CExpression)newchild; } newchild.Parent = this; }
void INodeParent.Replace(CNode child, CNode newchild) { if (lhs == child) lhs = (CExpression)newchild; if (rhs == child) rhs = (CExpression)newchild; newchild.Parent = this; }
void INodeParent.Replace(CNode child, CNode newchild) { if (child == expr) { expr = (CExpression)newchild; } newchild.Parent = this; }
void INodeParent.Replace(CNode child, CNode newchild) { if (child == pivot) { pivot = (CExpression)newchild; } newchild.Parent = this; }
void INodeParent.Replace(CNode child, CNode newchild) { if (child == m_targetAccess) { m_targetAccess = (CAccess)newchild; } newchild.Parent = this; m_targetAccess.IsCallExplicit = true; }
public void setNode(String name, CNode node) { if (nodes.ContainsKey(name)) { nodes[name] = node; } else { parent.setNode(name, node); } }
void INodeParent.Replace(CNode child, CNode newchild) { if (lhs == child) { lhs = (CExpression)newchild; } if (rhs == child) { rhs = (CExpression)newchild; } newchild.Parent = this; }
public CTypeRef(CNode owner, CClass type) : this(owner) { InternalLoad(type); }
public CTypeRef(CNode owner, CToken name) : this(owner) { InternalLoad(name); }
private void InstrumentNode(CNode node) { if (!instrument || node.Token == null || node.Token.Filename.ToUpper() == "ccodecoverage.asp".ToUpper() || node.Token.Filename.ToUpper() == "codecoveragereport.asp".ToUpper()) return; int num = instrumentnumber.intValue(); instrumentnumber.increment(); visitor.InstrumentNode(node, num); instrumentdb.Write(node.Token.Filename + "," + classname + "," + funcname + "," + node.Token.LineNumber + "," + num + ","); bool printeddb = false; if ((dbtype & DbMsSql) != 0) { instrumentdb.Write("DbMsSql"); printeddb = true; } if ((dbtype & DbAccess) != 0) { if (printeddb) instrumentdb.Write("|"); instrumentdb.Write("DbAccess"); printeddb = true; } if ((dbtype & DbMySql) != 0) { if (printeddb) instrumentdb.Write("|"); instrumentdb.Write("DbMySql"); printeddb = true; } instrumentdb.WriteLine(); }
internal void add(String name, CNode node) { // TODO add previous existance check nodes[name] = node; }
public CTypeRef(CNode owner, string name) : this(owner) { InternalLoad(CToken.Identifer(null, name)); }
void INodeParent.Replace(CNode child, CNode newchild) { if (child == condition) condition = (CExpression)newchild; newchild.Parent = this; }
public void Replace(CNode child, CNode newchild) { throw new NotImplementedException(); }
void INodeParent.Replace(CNode child, CNode newchild) { if (child == group) group = (CExpression)newchild; newchild.Parent = this; }
void INodeParent.Replace(CNode child, CNode newchild) { if (child == _object) _object = (CAccess)newchild; newchild.Parent = this; }
void INodeParent.Replace(CNode child, CNode newchild) { if (inner == child) inner = (CExpression)newchild; newchild.Parent = this; }
void INodeParent.Replace(CNode child, CNode newchild) { if (child == pivot) pivot = (CExpression)newchild; newchild.Parent = this; }
void INodeParent.Replace(CNode child, CNode newchild) { if (child == m_value) m_value = (CExpression)newchild; newchild.Parent = this; }
public CTypeRef(CNode owner) { this.owner = owner; name = null; type = null; }
public void Replace(CNode child, CNode newchild) { if (child == expression) Expression = (CExpression)newchild; }
public CTypeRef(CNode owner, CTypeRef tref) : this(owner) { InternalLoad(tref); }
void INodeParent.Replace(CNode child, CNode newchild) { if (child == Initializer) Initializer = (CExpression)newchild; }
public void setNode(String name, CNode node) { if (nodes.ContainsKey(name)) nodes[name] = node; else parent.setNode(name, node); }
public CParameters(CParameters @params) { parent = @params.parent; unnamedParams = new ParameterList(this, @params.unnamedParams); namedParams = new NamedParameterList(this, @params.namedParams); }
public void Replace(CNode child, CNode newchild) { namedParams.Replace(child, newchild); unnamedParams.Replace(child, newchild); }