4 types derived from ExceptionClause
ILAssembler (4)
GrammarVisitor.cs (4)
4686internal sealed record Catch(EntityRegistry.TypeEntity Type, LabelHandle Start, LabelHandle End) : ExceptionClause(Start, End); 4688internal sealed record Filter(LabelHandle FilterStart, LabelHandle Start, LabelHandle End) : ExceptionClause(Start, End); 4690internal sealed record Finally(LabelHandle Start, LabelHandle End) : ExceptionClause(Start, End); 4692internal sealed record Fault(LabelHandle Start, LabelHandle End) : ExceptionClause(Start, End);
11 references to ExceptionClause
ILAssembler (11)
GrammarVisitor.cs (11)
4698foreach (var clause in VisitSehClauses(context.sehClauses()).Value) 4702case ExceptionClause.Finally finallyClause: 4705case ExceptionClause.Fault faultClause: 4708case ExceptionClause.Catch catchClause: 4711case ExceptionClause.Filter filterClause: 4721public GrammarResult.Literal<ExceptionClause> VisitSehClause(CILParser.SehClauseContext context) 4727return new(new ExceptionClause.Finally(start, end)); 4731return new(new ExceptionClause.Fault(start, end)); 4735return new(new ExceptionClause.Catch(VisitCatchClause(catchClause).Value, start, end)); 4739return new(new ExceptionClause.Filter(VisitFilterClause(filterClause).Value, start, end)); 4746public GrammarResult.Sequence<ExceptionClause> VisitSehClauses(CILParser.SehClausesContext context) => new(context.sehClause().Select(clause => VisitSehClause(clause).Value).ToImmutableArray());