forked from microsoft/TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypescript-internal.d.ts
More file actions
29 lines (26 loc) · 1.18 KB
/
Copy pathtypescript-internal.d.ts
File metadata and controls
29 lines (26 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/// <reference path="../lib/typescript.d.ts" />
import { SourceFile, Node, Map, Symbol } from "typescript";
export * from "typescript";
export interface EmitTextWriter {
write(s: string): void;
writeTextOfNode(sourceFile: SourceFile, node: Node): void;
writeLine(): void;
increaseIndent(): void;
decreaseIndent(): void;
getText(): string;
rawWrite(s: string): void;
writeLiteral(s: string): void;
getTextPos(): number;
getLine(): number;
getColumn(): number;
getIndent(): number;
}
export declare function computeLineStarts(text: string): number[];
export declare function createTextWriter(newLine: String): EmitTextWriter;
export declare function getSourceTextOfNodeFromSourceFile(sourceFile: SourceFile, node: Node): string;
export declare function combinePaths(path1: string, path2: string): string;
export declare function map<T, U>(array: T[], f: (x: T) => U): U[];
export declare function hasProperty<T>(map: Map<T>, key: string): boolean;
export declare function getProperty<T>(map: Map<T>, key: string): T;
export declare function getNodeId(node: Node): number;
export declare function getSymbolId(symbol: Symbol): number;