1 | import { Replacement, SourceAndMapMixin } from '.';
|
2 | import Source = require('./Source');
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | declare class ReplaceSource extends Source implements SourceAndMapMixin {
|
9 | replacements: Replacement[];
|
10 |
|
11 | |
12 |
|
13 |
|
14 |
|
15 | constructor(source: Source, name?: string);
|
16 |
|
17 | /**
|
18 | * Replaces chars from start (0-indexed, inclusive) to end (0-indexed, inclusive) with replacement.
|
19 | */
|
20 | replace(start: number, end: number, newValue: string, name?: string): void;
|
21 |
|
22 | /**
|
23 | * Inserts the insertion before char pos (0-indexed).
|
24 | */
|
25 | insert(pos: number, newValue: string, name?: string): void;
|
26 |
|
27 | /**
|
28 | * Get decorated Source.
|
29 | */
|
30 | original(): Source;
|
31 |
|
32 | source(): string;
|
33 | }
|
34 |
|
35 | export = ReplaceSource;
|