Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/windmill/node_modules/source-map/source-map.d.ts>SourceNode

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
class SourceNode
import { SourceNode } from "https://deno.land/x/windmill@v1.373.0/node_modules/source-map/source-map.d.ts";

Constructors

new
SourceNode()
new
SourceNode(
line: number,
column: number,
source: string,
)
new
SourceNode(
line: number,
column: number,
source: string,
chunk?: string,
name?: string,
)

Methods

add(chunk: string): void
join(sep: string): SourceNode
prepend(chunk: string): void
replaceRight(pattern: string, replacement: string): SourceNode
setSourceContent(sourceFile: string, sourceContent: string): void
toString(): string
walk(fn: (chunk: string, mapping: MappedPosition) => void): void
walkSourceContents(fn: (file: string, content: string) => void): void

Static Methods

fromStringWithSourceMap(
code: string,
sourceMapConsumer: SourceMapConsumer,
relativePath?: string,
): SourceNode