public static IEnumerable <Tag> GetTags(this IGherkinDocumentContext context) { return(context.GetNodes <IHasTags>().SelectMany(ht => ht.Tags)); }
public static IEnumerable <T> GetNodes <T>(this IGherkinDocumentContext context) => context.GetNodes().OfType <T>();