Beispiel #1
0
 public void Replace(CNode child, CNode newchild)
 {
     if (child == expression)
     {
         Expression = (CExpression)newchild;
     }
 }
Beispiel #2
0
 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;
 }
Beispiel #4
0
 void INodeParent.Replace(CNode child, CNode newchild)
 {
     if (child == group)
     {
         group = (CExpression)newchild;
     }
     newchild.Parent = this;
 }
Beispiel #5
0
 void INodeParent.Replace(CNode child, CNode newchild)
 {
     if (child == access)
     {
         access          = (CAccess)newchild;
         newchild.Parent = this;
     }
 }
Beispiel #6
0
 void INodeParent.Replace(CNode child, CNode newchild)
 {
     if (child == _object)
     {
         _object = (CAccess)newchild;
     }
     newchild.Parent = this;
 }
Beispiel #7
0
 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 == access)
     {
         access = (CAccess)newchild;
         newchild.Parent = this;
     }
 }
Beispiel #9
0
 void INodeParent.Replace(CNode child, CNode newchild)
 {
     if (child == condition)
     {
         condition = (CExpression)newchild;
     }
     newchild.Parent = this;
 }
Beispiel #10
0
 void INodeParent.Replace(CNode child, CNode newchild)
 {
     if (child == m_value)
     {
         m_value = (CExpression)newchild;
     }
     newchild.Parent = this;
 }
Beispiel #11
0
 void INodeParent.Replace(CNode child, CNode newchild)
 {
     if (withObj == child)
     {
         withObj         = (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;
 }
Beispiel #14
0
 void INodeParent.Replace(CNode child, CNode newchild)
 {
     if (child == expr)
     {
         expr = (CExpression)newchild;
     }
     newchild.Parent = this;
 }
Beispiel #15
0
 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;
 }
Beispiel #17
0
 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;
 }
Beispiel #19
0
 public CTypeRef(CNode owner, CClass type)
     : this(owner)
 {
     InternalLoad(type);
 }
Beispiel #20
0
 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();
        }
Beispiel #22
0
 internal void add(String name, CNode node)
 {
     // TODO add previous existance check
     nodes[name] = node;
 }
Beispiel #23
0
 public CTypeRef(CNode owner, string name)
     : this(owner)
 {
     InternalLoad(CToken.Identifer(null, name));
 }
Beispiel #24
0
 void INodeParent.Replace(CNode child, CNode newchild)
 {
     if (child == condition)
         condition = (CExpression)newchild;
     newchild.Parent = this;
 }
Beispiel #25
0
 public void Replace(CNode child, CNode newchild)
 {
     throw new NotImplementedException();
 }
Beispiel #26
0
 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;
 }
Beispiel #28
0
 internal void add(String name, CNode node)
 {
     // TODO add previous existance check
     nodes[name] = node;
 }
Beispiel #29
0
 public CTypeRef(CNode owner, CToken name)
     : this(owner)
 {
     InternalLoad(name);
 }
 void INodeParent.Replace(CNode child, CNode newchild)
 {
     if (inner == child)
         inner = (CExpression)newchild;
     newchild.Parent = this;
 }
Beispiel #31
0
 void INodeParent.Replace(CNode child, CNode newchild)
 {
     if (child == pivot)
         pivot = (CExpression)newchild;
     newchild.Parent = this;
 }
Beispiel #32
0
 void INodeParent.Replace(CNode child, CNode newchild)
 {
     if (child == m_value)
         m_value = (CExpression)newchild;
     newchild.Parent = this;
 }
Beispiel #33
0
 public CTypeRef(CNode owner)
 {
     this.owner = owner;
     name = null;
     type = null;
 }
Beispiel #34
0
 public CTypeRef(CNode owner, CClass type)
     : this(owner)
 {
     InternalLoad(type);
 }
Beispiel #35
0
 public void Replace(CNode child, CNode newchild)
 {
     if (child == expression)
         Expression = (CExpression)newchild;
 }
Beispiel #36
0
 public CTypeRef(CNode owner, CTypeRef tref)
     : this(owner)
 {
     InternalLoad(tref);
 }
Beispiel #37
0
 void INodeParent.Replace(CNode child, CNode newchild)
 {
     if (child == Initializer)
         Initializer = (CExpression)newchild;
 }
Beispiel #38
0
 public CTypeRef(CNode owner)
 {
     this.owner = owner;
     name       = null;
     type       = null;
 }
Beispiel #39
0
 public CTypeRef(CNode owner, CTypeRef tref)
     : this(owner)
 {
     InternalLoad(tref);
 }
Beispiel #40
0
 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);
 }
Beispiel #42
0
 public CTypeRef(CNode owner, string name) : this(owner)
 {
     InternalLoad(CToken.Identifer(null, name));
 }
 public void Replace(CNode child, CNode newchild)
 {
     namedParams.Replace(child, newchild);
     unnamedParams.Replace(child, newchild);
 }
Beispiel #44
0
 public void Replace(CNode child, CNode newchild)
 {
     throw new NotImplementedException();
 }