예제 #1
0
        public override object VisitParameter([NotNull] ParameterContext context)
        {
            var p  = new Parameter();
            var id = (Result)Visit(context.id());

            p.id         = id.text;
            p.permission = id.permission;
            if (context.annotationSupport() != null)
            {
                p.annotation = (string)Visit(context.annotationSupport());
            }
            if (context.expression() != null)
            {
                p.value = "=" + (Visit(context.expression()) as Result).text;
            }
            p.type = (string)Visit(context.type());
            return(p);
        }