public void CalcInjectionPoints(CPClassLayout cpInjPoints, CP.Code.IModel model)
 {
     foreach (var lPnts in linePoints)
     {
         lPnts.CalcInjectionPoints(cpInjPoints, model);
     }
 }
Beispiel #2
0
        public ProjectChartPoints(string _projName)
        {
            data = CP.Utils.IClassFactory.GetInstance().CreateProjCPsData(_projName);
            DTE2    dte2 = (DTE2)Globals.dte;
            Events2 evs2 = (Events2)dte2.Events;

            cpCodeModel = new CP.Code.Model(data.projName, evs2);
        }
 public void CalcInjectionPoints(CPClassLayout cpInjPoints, CP.Code.IModel model)
 {
     foreach (IChartPoint cp in chartPoints)
     {
         bool needDeclare = false;
         if (cp.data.enabled)
         {
             IClassElement codeClass = codeClassMethod.GetClass();
             CPTraceVar    traceVar  = cp.CalcInjectionPoints(cpInjPoints, codeClass.name, out needDeclare);
             codeClass.CalcInjectionPoints(cpInjPoints, traceVar, needDeclare);
             model.CalcInjectionPoints(cpInjPoints, traceVar);
         }
     }
 }