gherkin-ast
Version:
JS model for Gherkin feature files
32 lines (31 loc) • 1.02 kB
TypeScript
import { GherkinCommentHandler } from "../common";
import { GherkinRule } from "../gherkinObject";
import { Comment } from "./comment";
import { Element } from "./element";
import { Tag } from "./tag";
import { UniqueObject } from "./uniqueObject";
/**
* Model for Rule
*/
export declare class Rule extends UniqueObject {
static parse(obj: GherkinRule, comments?: GherkinCommentHandler): Rule;
/** Keyword of the Rule */
keyword: "Rule" | string;
/** Name of the Rule */
name: string;
/** Descrition of the Rule */
description: string;
/** Elements of the Rule */
elements: Element[];
/** Tags of the Rule */
tags: Tag[];
/** Comment before the tags */
tagComment: Comment;
/** Comment before the Rule */
precedingComment: Comment;
/** Comment after the description of the Rul */
descriptionComment: Comment;
constructor(keyword: string, name: string, description: string);
clone(): Rule;
replace(key: RegExp | string, value: string): void;
}