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