Comparing version 0.24.0 to 0.24.1
@@ -34,7 +34,2 @@ /** | ||
/** | ||
* A version of ts.getMutableClone that does not always set the synthesized flag. | ||
* @param node | ||
*/ | ||
export declare function getMutableClone<T extends ts.Node>(node: T): T; | ||
/** | ||
* This is a version of `ts.visitEachChild` that does not visit children of types, | ||
@@ -41,0 +36,0 @@ * as this leads to errors in TypeScript < 2.4.0 and as types are not emitted anyways. |
@@ -296,3 +296,3 @@ "use strict"; | ||
// as the parsed SourceFiles could be cached! | ||
node = getMutableClone(node); | ||
node = ts.getMutableClone(node); | ||
} | ||
@@ -560,3 +560,3 @@ var textRange = { pos: node.pos, end: node.end }; | ||
// as otherwise TS fails when resolving types for decorators. | ||
sf = getMutableClone(sf); | ||
sf = ts.getMutableClone(sf); | ||
sf.statements = statements; | ||
@@ -567,14 +567,2 @@ return sf; | ||
/** | ||
* A version of ts.getMutableClone that does not always set the synthesized flag. | ||
* @param node | ||
*/ | ||
function getMutableClone(node) { | ||
var clone = ts.getMutableClone(node); | ||
if (!(node.flags & ts.NodeFlags.Synthesized)) { | ||
clone.flags &= ~ts.NodeFlags.Synthesized; | ||
} | ||
return clone; | ||
} | ||
exports.getMutableClone = getMutableClone; | ||
/** | ||
* This is a version of `ts.visitEachChild` that does not visit children of types, | ||
@@ -581,0 +569,0 @@ * as this leads to errors in TypeScript < 2.4.0 and as types are not emitted anyways. |
{ | ||
"name": "tsickle", | ||
"version": "0.24.0", | ||
"version": "0.24.1", | ||
"description": "Transpile TypeScript code to JavaScript with Closure annotations.", | ||
@@ -5,0 +5,0 @@ "main": "built/src/tsickle.js", |
@@ -322,3 +322,3 @@ /** | ||
// as the parsed SourceFiles could be cached! | ||
node = getMutableClone(node); | ||
node = ts.getMutableClone(node); | ||
} | ||
@@ -604,3 +604,3 @@ const textRange = {pos: node.pos, end: node.end}; | ||
// as otherwise TS fails when resolving types for decorators. | ||
sf = getMutableClone(sf); | ||
sf = ts.getMutableClone(sf); | ||
sf.statements = statements; | ||
@@ -611,14 +611,2 @@ return sf; | ||
/** | ||
* A version of ts.getMutableClone that does not always set the synthesized flag. | ||
* @param node | ||
*/ | ||
export function getMutableClone<T extends ts.Node>(node: T): T { | ||
const clone = ts.getMutableClone(node); | ||
if (!(node.flags & ts.NodeFlags.Synthesized)) { | ||
clone.flags &= ~ts.NodeFlags.Synthesized; | ||
} | ||
return clone; | ||
} | ||
/** | ||
* This is a version of `ts.visitEachChild` that does not visit children of types, | ||
@@ -625,0 +613,0 @@ * as this leads to errors in TypeScript < 2.4.0 and as types are not emitted anyways. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
824441
77
12336