示例#1
0
 public void Replace(CNode child, CNode newchild)
 {
     if (child == expression)
     {
         Expression = (CExpression)newchild;
     }
 }
示例#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;
 }
示例#4
0
 void INodeParent.Replace(CNode child, CNode newchild)
 {
     if (child == group)
     {
         group = (CExpression)newchild;
     }
     newchild.Parent = this;
 }
示例#5
0
 void INodeParent.Replace(CNode child, CNode newchild)
 {
     if (child == access)
     {
         access          = (CAccess)newchild;
         newchild.Parent = this;
     }
 }
示例#6
0
 void INodeParent.Replace(CNode child, CNode newchild)
 {
     if (child == _object)
     {
         _object = (CAccess)newchild;
     }
     newchild.Parent = this;
 }
示例#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;
     }
 }
示例#9
0
 void INodeParent.Replace(CNode child, CNode newchild)
 {
     if (child == condition)
     {
         condition = (CExpression)newchild;
     }
     newchild.Parent = this;
 }
示例#10
0
 void INodeParent.Replace(CNode child, CNode newchild)
 {
     if (child == m_value)
     {
         m_value = (CExpression)newchild;
     }
     newchild.Parent = this;
 }
示例#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;
 }
示例#13
0
 void INodeParent.Replace(CNode child, CNode newchild)
 {
     if (lhs == child)
         lhs = (CExpression)newchild;
     if (rhs == child)
         rhs = (CExpression)newchild;
     newchild.Parent = this;
 }
示例#14
0
 void INodeParent.Replace(CNode child, CNode newchild)
 {
     if (child == expr)
     {
         expr = (CExpression)newchild;
     }
     newchild.Parent = this;
 }
示例#15
0
 void INodeParent.Replace(CNode child, CNode newchild)
 {
     if (child == pivot)
     {
         pivot = (CExpression)newchild;
     }
     newchild.Parent = this;
 }
示例#16
0
 void INodeParent.Replace(CNode child, CNode newchild)
 {
     if (child == m_targetAccess)
     {
         m_targetAccess = (CAccess)newchild;
     }
     newchild.Parent = this;
     m_targetAccess.IsCallExplicit = true;
 }
示例#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;
 }
示例#19
0
 public CTypeRef(CNode owner, CClass type)
     : this(owner)
 {
     InternalLoad(type);
 }
示例#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();
        }
示例#22
0
 internal void add(String name, CNode node)
 {
     // TODO add previous existance check
     nodes[name] = node;
 }
示例#23
0
 public CTypeRef(CNode owner, string name)
     : this(owner)
 {
     InternalLoad(CToken.Identifer(null, name));
 }
示例#24
0
 void INodeParent.Replace(CNode child, CNode newchild)
 {
     if (child == condition)
         condition = (CExpression)newchild;
     newchild.Parent = this;
 }
示例#25
0
 public void Replace(CNode child, CNode newchild)
 {
     throw new NotImplementedException();
 }
示例#26
0
 void INodeParent.Replace(CNode child, CNode newchild)
 {
     if (child == group)
         group = (CExpression)newchild;
     newchild.Parent = this;
 }
示例#27
0
 void INodeParent.Replace(CNode child, CNode newchild)
 {
     if (child == _object)
         _object = (CAccess)newchild;
     newchild.Parent = this;
 }
示例#28
0
 internal void add(String name, CNode node)
 {
     // TODO add previous existance check
     nodes[name] = node;
 }
示例#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;
 }
示例#31
0
 void INodeParent.Replace(CNode child, CNode newchild)
 {
     if (child == pivot)
         pivot = (CExpression)newchild;
     newchild.Parent = this;
 }
示例#32
0
 void INodeParent.Replace(CNode child, CNode newchild)
 {
     if (child == m_value)
         m_value = (CExpression)newchild;
     newchild.Parent = this;
 }
示例#33
0
 public CTypeRef(CNode owner)
 {
     this.owner = owner;
     name = null;
     type = null;
 }
示例#34
0
 public CTypeRef(CNode owner, CClass type)
     : this(owner)
 {
     InternalLoad(type);
 }
示例#35
0
 public void Replace(CNode child, CNode newchild)
 {
     if (child == expression)
         Expression = (CExpression)newchild;
 }
示例#36
0
 public CTypeRef(CNode owner, CTypeRef tref)
     : this(owner)
 {
     InternalLoad(tref);
 }
示例#37
0
 void INodeParent.Replace(CNode child, CNode newchild)
 {
     if (child == Initializer)
         Initializer = (CExpression)newchild;
 }
示例#38
0
 public CTypeRef(CNode owner)
 {
     this.owner = owner;
     name       = null;
     type       = null;
 }
示例#39
0
 public CTypeRef(CNode owner, CTypeRef tref)
     : this(owner)
 {
     InternalLoad(tref);
 }
示例#40
0
 public void setNode(String name, CNode node)
 {
     if (nodes.ContainsKey(name))
         nodes[name] = node;
     else
         parent.setNode(name, node);
 }
示例#41
0
 public CParameters(CParameters @params)
 {
     parent        = @params.parent;
     unnamedParams = new ParameterList(this, @params.unnamedParams);
     namedParams   = new NamedParameterList(this, @params.namedParams);
 }
示例#42
0
 public CTypeRef(CNode owner, string name) : this(owner)
 {
     InternalLoad(CToken.Identifer(null, name));
 }
示例#43
0
 public void Replace(CNode child, CNode newchild)
 {
     namedParams.Replace(child, newchild);
     unnamedParams.Replace(child, newchild);
 }
示例#44
0
 public void Replace(CNode child, CNode newchild)
 {
     throw new NotImplementedException();
 }