Пример #1
0
        public override object VisitTextB(MFSHParser.TextBContext context)
        {
            const String fcn = "VisitTextB";

            this.TraceMsg(context, fcn);

            String line = context.GetText();
            MIText t    = new MIText(this.SourceName, context.Start.Line)
            {
                Line = context.GetText()
            };

            this.Current.Items.Add(t);
            return(null);
        }
Пример #2
0
        public override object VisitTickText(MFSHParser.TickTextContext context)
        {
            const String fcn = "VisitTickText";

            this.TraceMsg(context, fcn);

            String line      = context.GetText();
            Int32  tickIndex = line.IndexOf('`');

            line = line.Substring(tickIndex + 1);
            MIText t = new MIText(this.SourceName, context.Start.Line)
            {
                Line = line
            };

            this.Current.Items.Add(t);
            return(null);
        }