Пример #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;
     }
 }
Пример #3
0
 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;
     }
 }
Пример #12
0
 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);
     }
 }
Пример #18
0
 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);
 }
Пример #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();
        }
Пример #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);
 }
Пример #30
0
 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();
 }