Beispiel #1
0
        public override object VisitClassListShownName([NotNull] classlist_langParser.ClassListShownNameContext context)
        {
            if (currentClassList != null)
            {
                string stringConst = context.GetText();
                currentClassList.ShownName = Config.GetStringConstByName(stringConst);
            }

            return(base.VisitClassListShownName(context));
        }
Beispiel #2
0
        public override object VisitClassListShownName([NotNull] classlist_langParser.ClassListShownNameContext context)
        {
            string stringConst = context.GetText();

            if (Config.GetStringConstByName(stringConst) == null)
            {
                Errors.Add(new ErrorDescriptor($"String const '{stringConst}' does not exist.", context.Start.Line, context.Start.Column, context.Start.StartIndex, context.Start.StopIndex));
            }

            return(base.VisitClassListShownName(context));
        }