[]previous and next page

PluginRange

A span of PluginContext.source: a PluginNode, or any object with start and end.

A span of PluginContext.source: a PluginNode, or any object with start and end.

Import#

ts
import type { PluginRange } from "@shadow-js/compiler";

Signature#

ts
interface PluginRange {
  /** Offset of the first code unit of the span. */
  readonly start: number;
  /** Offset just after the last code unit of the span. */
  readonly end: number;
}

Members#

Name Type Description
start readonly start: number Offset of the first code unit of the span.
end readonly end: number Offset just after the last code unit of the span.