Skip to main content
Module

x/deno2node/src/deps.deno.ts>RegularExpressionLiteral

Compile your Deno project to run on Node.js.
Go to Latest
class RegularExpressionLiteral
extends RegularExpressionLiteralBase<ts.RegularExpressionLiteral>
import { RegularExpressionLiteral } from "https://deno.land/x/deno2node@v1.7.1/src/deps.deno.ts";

Methods

getLiteralValue(): RegExp

Gets the literal value.

getParent(): NodeParentType<ts.RegularExpressionLiteral>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.RegularExpressionLiteral>>
setLiteralValue(pattern: string, flags?: string): this

Sets the literal value according to a pattern and some flags.

setLiteralValue(regExp: RegExp): this

Sets the literal value according to a regular expression object.