//TODO: Crysl JSON schema needs to be changed to support the below condition

        /*public override object VisitWithPropertiesOnly(CryslGrammarParser.WithPropertiesOnlyContext context)
         * {
         *  if (_cryslJsonModel.EventValueSig == null)
         *  {
         *      _cryslJsonModel.EventsValue.Add(
         *          new Dictionary<object, object>
         *          {
         *              {"crypto_signature", _cryslJsonModel.EventSigValues = new List<Dictionary<object, object>>()}
         *          });
         *  }
         *  foreach (var varName in context.VARNAME())
         *  {
         *      //Check for crypto signature identifiers
         *      if (varName.Symbol.TokenIndex < context.COLON().Symbol.TokenIndex)
         *      {
         *          _cryslJsonModel.EventSigValues.Add(
         *              new Dictionary<object, object>
         *              {
         *                  {"event_var_name", varName.GetText() }
         *              });
         *      }
         *      //Check for crypto signature methods
         *      else if (varName.Symbol.TokenIndex > context.COLON().Symbol.TokenIndex && )
         *      {
         *          _cryslJsonModel.EventSigValues.Add(
         *              new Dictionary<object, object>
         *              {
         *                  {"method_name", varName.GetText() }
         *
         *              });
         *      }
         *  }
         *  return 0;
         * }*/

        //TODO: Crysl JSON schema needs to be changed to support the below condition

        /*public override int VisitSngEventNoArguments(CryslGrammarParser.SngEventNoArgumentsContext context)
         * {
         *  return base.VisitSngEventNoArguments(context);
         * }*/

        //TODO: Crysl JSON schema needs to be changed to support the below condition

        /*public override int VisitSngEventWithoutArguments(CryslGrammarParser.SngEventWithoutArgumentsContext context)
         * {
         *  return base.VisitSngEventWithoutArguments(context);
         * }*/

        //TODO: Crysl JSON schema needs to be changed to support the below condition

        /*public override int VisitSngEventWithArgumentsUnscore(CryslGrammarParser.SngEventWithArgumentsUnscoreContext context)
         * {
         *  return base.VisitSngEventWithArgumentsUnscore(context);
         * }*/

        //TODO: Crysl JSON schema needs to be changed to support the below condition

        /*public override int VisitSngEventWithArgumentsVarname(CryslGrammarParser.SngEventWithArgumentsVarnameContext context)
         * {
         *  return base.VisitSngEventWithArgumentsVarname(context);
         * }*/
        #endregion
        #endregion

        #region ORDER SECTION
        public override object VisitOrderssection(CryslGrammarParser.OrderssectionContext context)
        {
            SectionOrder orderSection = new SectionOrder();
            string       sectionName  = context.ORDERSSECTIONNAME().GetText();

            orderSection.Crysl_Section = sectionName;

            List <EventOrder> eventOrder = (List <EventOrder>)Visit(context.orderlist());

            orderSection.Event_Order = eventOrder;

            cryslModel.Order_Section = orderSection;

            return(0);
        }
Beispiel #2
0
            public override ListViewItem GetListViewItem()
            {
                ListViewItem m = new ListViewItem("");

                m.SubItems.Add(StartIndex.ToString());
                m.SubItems.Add(Length.ToString());

                m.SubItems.Add(GoesTo[0].ToString());
                m.SubItems.Add(GoesTo[1].ToString());
                m.SubItems.Add(GoesTo[2].ToString());

                m.SubItems.Add(ComesFrom[0].ToString());
                m.SubItems.Add(ComesFrom[1].ToString());
                m.SubItems.Add(ComesFrom[2].ToString());

                m.SubItems.Add(SectionOrder.ToString());
                return(m);
            }
 public HelpSectionAttribute(string sectionName, SectionOrder order, params string[] lines)
 {
     Name  = sectionName;
     Order = order;
     Text  = lines.JoinLines();
 }