decaffeinate-coffeescript
Advanced tools
Comparing version
@@ -59,2 +59,2 @@ import SourceMap, { V3SourceMap } from './sourcemap'; | ||
*/ | ||
export function run(code: string, options?: RunOptions); | ||
export function run(code: string, options?: RunOptions): void; |
@@ -106,4 +106,4 @@ import Scope from './scope'; | ||
*/ | ||
eachChild(func: (child: Base) => boolean | undefined); | ||
traverseChildren(crossScope: boolean, func: (child: Base) => boolean | undefined); | ||
eachChild(func: (child: Base) => boolean | undefined): this; | ||
traverseChildren(crossScope: boolean, func: (child: Base) => boolean | undefined): this; | ||
inverted: boolean; | ||
@@ -135,3 +135,3 @@ invert(): Base; | ||
*/ | ||
updateLocationDataIfMissing(locationData: LocationData); | ||
updateLocationDataIfMissing(locationData: LocationData): this; | ||
@@ -141,3 +141,3 @@ /** | ||
*/ | ||
error(message: string); | ||
error(message: string): void; | ||
makeCode(code: string): CodeFragment; | ||
@@ -307,3 +307,3 @@ wrapInBraces(fragments: Array<CodeFragment>): Array<CodeFragment>; | ||
*/ | ||
superReference(o: CompileContext); | ||
superReference(o: CompileContext): string; | ||
@@ -313,3 +313,3 @@ /** | ||
*/ | ||
superThis(o: CompileContext); | ||
superThis(o: CompileContext): string; | ||
@@ -324,3 +324,3 @@ /** | ||
*/ | ||
compileSplat(o: CompileContext, splatArgs: Array<CodeFragment>); | ||
compileSplat(o: CompileContext, splatArgs: Array<CodeFragment>): Array<CodeFragment>; | ||
} | ||
@@ -377,3 +377,3 @@ | ||
*/ | ||
compileVariables(o: CompileContext); | ||
compileVariables(o: CompileContext): void; | ||
} | ||
@@ -433,3 +433,3 @@ | ||
*/ | ||
setContext(name: string); | ||
setContext(name: string): void; | ||
@@ -440,3 +440,3 @@ /** | ||
*/ | ||
addBoundFunctions(o: CompileContext); | ||
addBoundFunctions(o: CompileContext): void; | ||
@@ -453,3 +453,3 @@ /** | ||
*/ | ||
walkBody(name: string, o: CompileContext); | ||
walkBody(name: string, o: CompileContext): this; | ||
@@ -461,3 +461,3 @@ /** | ||
*/ | ||
hoistDirectivePrologue(); | ||
hoistDirectivePrologue(): void; | ||
@@ -468,3 +468,3 @@ /** | ||
*/ | ||
ensureConstructor(name: string); | ||
ensureConstructor(name: string): void; | ||
} | ||
@@ -521,3 +521,3 @@ | ||
asReference(o: CompileContext); | ||
asReference(o: CompileContext): Base; | ||
} | ||
@@ -538,3 +538,4 @@ | ||
*/ | ||
static compileSplattedArray(o: CompileContext, list: Array<Base>, apply: boolean); | ||
static compileSplattedArray( | ||
o: CompileContext, list: Array<Base>, apply: boolean): Array<CodeFragment>; | ||
} | ||
@@ -541,0 +542,0 @@ |
export default class Scope { | ||
freeVariable(name: string, options?: { single?: boolean }); | ||
freeVariable(name: string, options?: { single?: boolean }): string; | ||
} |
@@ -11,3 +11,3 @@ { | ||
"author": "Jeremy Ashkenas", | ||
"version": "1.10.0-patch24", | ||
"version": "1.10.0-patch25", | ||
"license": "MIT", | ||
@@ -14,0 +14,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
38
2.7%8757
0.02%414200
-11.12%