interface RegExpLiteral {
    leadingComments?: Comment[];
    loc?: null | SourceLocation;
    range?: [number, number];
    raw?: string;
    regex: {
        flags: string;
        pattern: string;
    };
    trailingComments?: Comment[];
    type: "Literal";
    value?: null | RegExp;
}

Hierarchy (view full)

Properties

leadingComments?: Comment[]
loc?: null | SourceLocation
range?: [number, number]
raw?: string
regex: {
    flags: string;
    pattern: string;
}

Type declaration

  • flags: string
  • pattern: string
trailingComments?: Comment[]
type: "Literal"
value?: null | RegExp