Exemple #1
0
        public PatternUst VisitPatternTryCatchStatement(DslParser.PatternTryCatchStatementContext context)
        {
            IEnumerable <PatternUst> exceptionTypes = ProcessLiteralsOrPatternIds(context.literalOrPatternId());
            bool isCatchBodyEmpty = context.Ellipsis() == null;
            var  result           = new PatternTryCatchStatement(exceptionTypes, isCatchBodyEmpty, context.GetTextSpan());

            return(result);
        }
Exemple #2
0
 public virtual T Visit(PatternTryCatchStatement patternTryCatchStatement)
 {
     return(VisitChildren(patternTryCatchStatement));
 }
Exemple #3
0
        public UstNode VisitPatternTryCatchStatement(DslParser.PatternTryCatchStatementContext context)
        {
            var result = new PatternTryCatchStatement(context.GetTextSpan(), null);

            return(result);
        }
Exemple #4
0
 public virtual void Exit(PatternTryCatchStatement patternTryCatchStatement)
 {
 }