Пример #1
0
        public override object VisitTypenameAndVoid([NotNull] ClepsParser.TypenameAndVoidContext context)
        {
            if (context.typename() != null)
            {
                return(Visit(context.typename()));
            }

            var ret = VoidType.GetVoidType();

            return(ret);
        }
Пример #2
0
        public static ClepsType GetBasicOrVoidType(ClepsParser.TypenameAndVoidContext typenameAndVoidContext)
        {
            if (typenameAndVoidContext.VOID() != null)
            {
                return(GetVoidType());
            }

            return(GetBasicType(typenameAndVoidContext.typename()));
        }