Пример #1
0
 public static bool HasDescendantOfType <TChild>(this ParserRuleContext ctx) where TChild : ParserRuleContext
 {
     return(ctx is TChild || ctx.FindDescendantOfType <TChild>() != null);
 }