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

            return(base.VisitClassShownName(context));
        }
Beispiel #2
0
        public override object VisitClassShownName([NotNull] classlist_langParser.ClassShownNameContext 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.VisitClassShownName(context));
        }