Comparing version 0.29.0 to 0.30.0
{ | ||
"name": "tsickle", | ||
"version": "0.29.0", | ||
"version": "0.30.0", | ||
"description": "Transpile TypeScript code to JavaScript with Closure annotations.", | ||
@@ -15,2 +15,3 @@ "main": "src/tsickle.js", | ||
"dependencies": { | ||
"jasmine-diff": "^0.1.3", | ||
"minimist": "^1.2.0", | ||
@@ -25,6 +26,4 @@ "mkdirp": "^0.5.1", | ||
"devDependencies": { | ||
"@types/chai": "4.1.2", | ||
"@types/diff": "3.2.2", | ||
"@types/glob": "5.0.35", | ||
"@types/google-closure-compiler": "0.0.18", | ||
"@types/jasmine": "2.8.6", | ||
@@ -34,6 +33,4 @@ "@types/minimatch": "3.0.3", | ||
"@types/mkdirp": "0.5.2", | ||
"@types/node": "6.0.102", | ||
"@types/node": "^10.3.3", | ||
"@types/source-map-support": "0.4.0", | ||
"chai": "4.1.2", | ||
"chai-diff": "1.0.1", | ||
"clang-format": "1.2.2", | ||
@@ -50,3 +47,4 @@ "diff": "3.5.0", | ||
"tslint": "5.9.1", | ||
"typescript": "2.8.3" | ||
"tsutils": "^2.27.1", | ||
"typescript": "2.9.2" | ||
}, | ||
@@ -53,0 +51,0 @@ "scripts": { |
/// <amd-module name="tsickle/src/cli_support" /> | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
/// <amd-module name="tsickle/src/cli_support" /> | ||
export declare function pathToModuleName(rootModulePath: string, context: string, fileName: string): string; |
/// <amd-module name="tsickle/src/decorator_downlevel_transformer" /> | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
/// <amd-module name="tsickle/src/decorator_downlevel_transformer" /> | ||
import * as ts from './typescript'; | ||
@@ -3,0 +11,0 @@ /** |
@@ -9,2 +9,3 @@ /// <amd-module name="tsickle/src/decorators" /> | ||
*/ | ||
/// <amd-module name="tsickle/src/decorators" /> | ||
import * as ts from './typescript'; | ||
@@ -11,0 +12,0 @@ /** |
@@ -68,2 +68,3 @@ /** | ||
return getDecoratorDeclarations(decorator, typeChecker).some(function (declaration) { | ||
var e_1, _a; | ||
var range = ts.getLeadingCommentRanges(declaration.getFullText(), 0); | ||
@@ -75,3 +76,3 @@ if (!range) { | ||
for (var range_1 = __values(range), range_1_1 = range_1.next(); !range_1_1.done; range_1_1 = range_1.next()) { | ||
var _a = range_1_1.value, pos = _a.pos, end = _a.end; | ||
var _b = range_1_1.value, pos = _b.pos, end = _b.end; | ||
if (/@ExportDecoratedItems\b/.test(declaration.getFullText().substring(pos, end))) { | ||
@@ -85,3 +86,3 @@ return true; | ||
try { | ||
if (range_1_1 && !range_1_1.done && (_b = range_1.return)) _b.call(range_1); | ||
if (range_1_1 && !range_1_1.done && (_a = range_1.return)) _a.call(range_1); | ||
} | ||
@@ -91,6 +92,5 @@ finally { if (e_1) throw e_1.error; } | ||
return false; | ||
var e_1, _b; | ||
}); | ||
} | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVjb3JhdG9ycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9kZWNvcmF0b3JzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztJQUVILDJDQUFtQztJQUVuQzs7T0FFRztJQUNILGtDQUNJLFNBQXVCLEVBQUUsV0FBMkI7UUFDdEQsNkVBQTZFO1FBQzdFLElBQUksSUFBSSxHQUFZLFNBQVMsQ0FBQztRQUM5QixPQUFPLElBQUksQ0FBQyxJQUFJLEtBQUssRUFBRSxDQUFDLFVBQVUsQ0FBQyxVQUFVLEVBQUU7WUFDN0MsSUFBS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RpcmVjdGl2ZSBpbiBpdHMgSlNEb2MuXG4gKi9cbmZ1bmN0aW9uIGlzRXhwb3J0aW5nRGVjb3JhdG9yKGRlY29yYXRvcjogdHMuRGVjb3JhdG9yLCB0eXBlQ2hlY2tlcjogdHMuVHlwZUNoZWNrZXIpIHtcbiAgcmV0dXJuIGdldERlY29yYXRvckRlY2xhcmF0aW9ucyhkZWNvcmF0b3IsIHR5cGVDaGVja2VyKS5zb21lKGRlY2xhcmF0aW9uID0+IHtcbiAgICBjb25zdCByYW5nZSA9IHRzLmdldExlYWRpbmdDb21tZW50UmFuZ2VzKGRlY2xhcmF0aW9uLmdldEZ1bGxUZXh0KCksIDApO1xuICAgIGlmICghcmFuZ2UpIHtcbiAgICAgIHJldHVybiBmYWxzZTtcbiAgICB9XG4gICAgZm9yIChjb25zdCB7cG9zLCBlbmR9IG9mIHJhbmdlKSB7XG4gICAgICBpZiAoL0BFeHBvcnREZWNvcmF0ZWRJdGVtc1xcYi8udGVzdChkZWNsYXJhdGlvbi5nZXRGdWxsVGV4dCgpLnN1YnN0cmluZyhwb3MsIGVuZCkpKSB7XG4gICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgfVxuICAgIH1cbiAgICByZXR1cm4gZmFsc2U7XG4gIH0pO1xufVxuIl19 |
/// <amd-module name="tsickle/src/fileoverview_comment_transformer" /> | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
/// <amd-module name="tsickle/src/fileoverview_comment_transformer" /> | ||
import * as ts from './typescript'; | ||
@@ -3,0 +11,0 @@ /** |
/// <amd-module name="tsickle/src/googmodule" /> | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
/// <amd-module name="tsickle/src/googmodule" /> | ||
import { ModulesManifest } from './modules_manifest'; | ||
@@ -37,6 +45,6 @@ import * as ts from './typescript'; | ||
*/ | ||
export declare function resolveIndexShorthand(host: { | ||
export declare function resolveIndexShorthand({ options, host }: { | ||
options: ts.CompilerOptions; | ||
host: ts.ModuleResolutionHost; | ||
}, fileName: string, imported: string): string; | ||
}, pathOfImportingFile: string, imported: string): string; | ||
/** | ||
@@ -43,0 +51,0 @@ * commonJsToGoogmoduleTransformer returns a transformer factory that converts TypeScript's CommonJS |
/// <amd-module name="tsickle/src/jsdoc" /> | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
/// <amd-module name="tsickle/src/jsdoc" /> | ||
/** | ||
* TypeScript has an API for JSDoc already, but it's not exposed. | ||
@@ -61,2 +69,4 @@ * https://github.com/Microsoft/TypeScript/issues/7393 | ||
} | null; | ||
/** Tags that conflict with \@type in Closure Compiler (e.g. \@param). */ | ||
export declare const TAGS_CONFLICTING_WITH_TYPE: Set<string>; | ||
/** Serializes a Comment out to a string, but does not include the start and end comment tokens. */ | ||
@@ -63,0 +73,0 @@ export declare function toStringWithoutStartEnd(tags: Tag[], escapeExtraTags?: Set<string>): string; |
@@ -141,2 +141,3 @@ /** | ||
function parseContents(commentText) { | ||
var e_1, _a, _b, _c; | ||
// Make sure we have proper line endings before parsing on Windows. | ||
@@ -154,3 +155,3 @@ commentText = util_1.normalizeLineEndings(commentText); | ||
if (match) { | ||
var _a = __read(match, 3), _ = _a[0], tagName = _a[1], text = _a[2]; | ||
var _d = __read(match, 3), _ = _d[0], tagName = _d[1], text = _d[2]; | ||
if (tagName === 'returns') { | ||
@@ -215,3 +216,3 @@ // A synonym for 'return'. | ||
try { | ||
if (lines_1_1 && !lines_1_1.done && (_d = lines_1.return)) _d.call(lines_1); | ||
if (lines_1_1 && !lines_1_1.done && (_a = lines_1.return)) _a.call(lines_1); | ||
} | ||
@@ -224,3 +225,2 @@ finally { if (e_1) throw e_1.error; } | ||
return { tags: tags }; | ||
var e_1, _d, _b, _c; | ||
} | ||
@@ -275,2 +275,4 @@ exports.parseContents = parseContents; | ||
var SINGLETON_TAGS = new Set(['deprecated']); | ||
/** Tags that conflict with \@type in Closure Compiler (e.g. \@param). */ | ||
exports.TAGS_CONFLICTING_WITH_TYPE = new Set(['param', 'return']); | ||
/** Serializes a Comment out to a string, but does not include the start and end comment tokens. */ | ||
@@ -290,2 +292,3 @@ function toStringWithoutStartEnd(tags, escapeExtraTags) { | ||
if (escapeExtraTags === void 0) { escapeExtraTags = new Set(); } | ||
var e_2, _a; | ||
if (tags.length === 0) | ||
@@ -327,6 +330,6 @@ return ''; | ||
return out; | ||
var e_2, _a; | ||
} | ||
/** Merges multiple tags (of the same tagName type) into a single unified tag. */ | ||
function merge(tags) { | ||
var e_3, _a; | ||
var tagNames = new Set(); | ||
@@ -380,6 +383,5 @@ var parameterNames = new Set(); | ||
return tag; | ||
var e_3, _a; | ||
} | ||
exports.merge = merge; | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoianNkb2MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvanNkb2MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztJQUVILHlDQUE0QztJQXNDNUM7Ozs7OztPQU1HO0lBQ0gsSUFBTSxvQkFBb0IsR0FBRyxJQUFJLEdBQUcsQ0FBQztRQUNuQyxVQUFVLEVBQU8sVUFBVTtRQUMzQixRQUFRLEVBQVMsdUJBQXVCO1FBQ3hDLE9BQU8sRUFBVSxVQUFVO1FBQzNCLGFBQWEsRUFBSSxXQUFXO1FBQzVCLFFBQVEsRUFBUyxZQUFZO1FBQzdCLE1BQU0sR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ICAnaWRHZW5lcmF0b3InLCAgICdpZ25vcmUnLFxuICAnaW1wbGVtZW50cycsICAgICdpbXBsaWNpdENhc3QnLFxuICAnaW5oZXJpdERvYycsICAgICdpbnRlcmZhY2UnLFxuICAnamFnZ2VySW5qZWN0JywgICdqYWdnZXJNb2R1bGUnLFxuICAnamFnZ2VyUHJvdmlkZScsICdqYWdnZXJQcm92aWRlUHJvbWlzZScsXG4gICdsZW5kcycsICAgICAgICAgJ2xpY2Vuc2UnLFxuICAnbGluaycsICAgICAgICAgICdtZWFuaW5nJyxcbiAgJ21vZGlmaWVzJywgICAgICAnbW9kTmFtZScsXG4gICdtb2RzJywgICAgICAgICAgJ25nSW5qZWN0JyxcbiAgJ25vYWxpYXMnLCAgICAgICAnbm9jb2xsYXBzZScsXG4gICdub2NvbXBpbGUnLCAgICAgJ25vc2lkZWVmZmVjdHMnLFxuICAnb3ZlcnJpZGUnLCAgICAgICdvd25lcicsXG4gICdwYWNrYWdlJywgICAgICAgJ3BhcmFtJyxcbiAgJ3BpbnRvbW9kdWxlJywgICAncG9seW1lckJlaGF2aW9yJyxcbiAgJ3ByZXNlcnZlJywgICAgICAncHJlc2VydmVUcnknLFxuICAncHJpdmF0ZScsICAgICAgICdwcm90ZWN0ZWQnLFxuICAncHVibGljJywgICAgICAgICdyZWNvcmQnLFxuICAncmVxdWlyZWNzcycsICAgICdyZXF1aXJlcycsXG4gICdyZXR1cm4nLCAgICAgICAgJ3JldHVybnMnLFxuICAnc2VlJywgICAgICAgICAgICdzdGFibGVJZEdlbmVyYXRvcicsXG4gICdzdHJ1Y3QnLCAgICAgICAgJ3N1cHByZXNzJyxcbiAgJ3RlbXBsYXRlJywgICAgICAndGhpcycsXG4gICd0aHJvd3MnLCAgICAgICAgJ3R5cGUnLFxuICAndHlwZWRlZicsICAgICAgICd1bnJlc3RyaWN0ZWQnLFxuICAndmVyc2lvbicsICAgICAgICd3aXphY3Rpb24nLFxuICAnd2l6bW9kdWxlJyxcbl0pO1xuXG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GEgcGFyYW0gY2FuIGVpdGhlciBiZSBvcHRpb25hbCBvciBhIHJlc3QgcGFyYW07IGlmIHdlIG1lcmdlZCBhblxuICAvLyBvcHRpb25hbCBhbmQgcmVzdCBwYXJhbSB0b2dldGhlciwgcHJlZmVyIG1hcmtpbmcgaXQgYXMgYSByZXN0IHBhcmFtLlxuICBpZiAocmVzdFBhcmFtKSB7XG4gICAgdGFnLnJlc3RQYXJhbSA9IHRydWU7XG4gIH0gZWxzZSBpZiAob3B0aW9uYWwpIHtcbiAgICB0YWcub3B0aW9uYWwgPSB0cnVlO1xuICB9XG4gIHJldHVybiB0YWc7XG59XG4iXX0= |
/// <amd-module name="tsickle/src/main" /> | ||
#!/usr/bin/env node | ||
/// <amd-module name="tsickle/src/main" /> | ||
import * as ts from './typescript'; | ||
@@ -3,0 +5,0 @@ import * as tsickle from './tsickle'; |
@@ -40,7 +40,8 @@ #!/usr/bin/env node | ||
function loadSettingsFromArgs(args) { | ||
var e_1, _a; | ||
var settings = {}; | ||
var parsedArgs = minimist(args); | ||
try { | ||
for (var _a = __values(Object.keys(parsedArgs)), _b = _a.next(); !_b.done; _b = _a.next()) { | ||
var flag = _b.value; | ||
for (var _b = __values(Object.keys(parsedArgs)), _c = _b.next(); !_c.done; _c = _b.next()) { | ||
var flag = _c.value; | ||
switch (flag) { | ||
@@ -77,3 +78,3 @@ case 'h': | ||
try { | ||
if (_b && !_b.done && (_c = _a.return)) _c.call(_a); | ||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b); | ||
} | ||
@@ -85,3 +86,2 @@ finally { if (e_1) throw e_1.error; } | ||
return { settings: settings, tscArgs: tscArgs }; | ||
var e_1, _c; | ||
} | ||
@@ -96,4 +96,5 @@ /** | ||
function loadTscConfig(args) { | ||
var _a; | ||
// Gather tsc options/input files from command line. | ||
var _a = ts.parseCommandLine(args), options = _a.options, fileNames = _a.fileNames, errors = _a.errors; | ||
var _b = ts.parseCommandLine(args), options = _b.options, fileNames = _b.fileNames, errors = _b.errors; | ||
if (errors.length > 0) { | ||
@@ -107,7 +108,7 @@ return { options: {}, fileNames: [], errors: errors }; | ||
var configFileName = path.join(projectDir, 'tsconfig.json'); | ||
var _b = ts.readConfigFile(configFileName, function (path) { return fs.readFileSync(path, 'utf-8'); }), json = _b.config, error = _b.error; | ||
var _c = ts.readConfigFile(configFileName, function (path) { return fs.readFileSync(path, 'utf-8'); }), json = _c.config, error = _c.error; | ||
if (error) { | ||
return { options: {}, fileNames: [], errors: [error] }; | ||
} | ||
(_c = ts.parseJsonConfigFileContent(json, ts.sys, projectDir, options, configFileName), options = _c.options, fileNames = _c.fileNames, errors = _c.errors); | ||
(_a = ts.parseJsonConfigFileContent(json, ts.sys, projectDir, options, configFileName), options = _a.options, fileNames = _a.fileNames, errors = _a.errors); | ||
if (errors.length > 0) { | ||
@@ -119,3 +120,2 @@ return { options: {}, fileNames: [], errors: errors }; | ||
return { options: options, fileNames: fileNames, errors: [] }; | ||
var _c; | ||
} | ||
@@ -147,3 +147,3 @@ /** | ||
untyped: false, | ||
logWarning: function (warning) { return console.error(tsickle.formatDiagnostics([warning])); }, | ||
logWarning: function (warning) { return console.error(ts.formatDiagnostics([warning], compilerHost)); }, | ||
options: options, | ||
@@ -169,3 +169,3 @@ host: compilerHost, | ||
if (config.errors.length) { | ||
console.error(tsickle.formatDiagnostics(config.errors)); | ||
console.error(ts.formatDiagnostics(config.errors, ts.createCompilerHost(config.options))); | ||
return 1; | ||
@@ -186,3 +186,3 @@ } | ||
if (result.diagnostics.length) { | ||
console.error(tsickle.formatDiagnostics(result.diagnostics)); | ||
console.error(ts.formatDiagnostics(result.diagnostics, ts.createCompilerHost(config.options))); | ||
return 1; | ||
@@ -201,2 +201,2 @@ } | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9tYWluLnRzI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lckhvc3QoY29uZmlnLm9wdGlvbnMpKSk7XG4gICAgcmV0dXJuIDE7XG4gIH1cblxuICBpZiAoc2V0dGluZ3MuZXh0ZXJuc1BhdGgpIHtcbiAgICBta2RpcnAuc3luYyhwYXRoLmRpcm5hbWUoc2V0dGluZ3MuZXh0ZXJuc1BhdGgpKTtcbiAgICBmcy53cml0ZUZpbGVTeW5jKHNldHRpbmdzLmV4dGVybnNQYXRoLCB0c2lja2xlLmdldEdlbmVyYXRlZEV4dGVybnMocmVzdWx0LmV4dGVybnMpKTtcbiAgfVxuICByZXR1cm4gMDtcbn1cblxuLy8gQ0xJIGVudHJ5IHBvaW50XG5pZiAocmVxdWlyZS5tYWluID09PSBtb2R1bGUpIHtcbiAgcHJvY2Vzcy5leGl0KG1haW4ocHJvY2Vzcy5hcmd2LnNwbGljZSgyKSkpO1xufVxuIl19 |
@@ -9,2 +9,3 @@ /// <amd-module name="tsickle/src/modules_manifest" /> | ||
*/ | ||
/// <amd-module name="tsickle/src/modules_manifest" /> | ||
export interface FileMap<T> { | ||
@@ -11,0 +12,0 @@ [fileName: string]: T; |
/// <amd-module name="tsickle/src/rewriter" /> | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
/// <amd-module name="tsickle/src/rewriter" /> | ||
import { SourceMapper } from './source_map_utils'; | ||
@@ -53,2 +61,9 @@ import * as ts from './typescript'; | ||
/** | ||
* Start a source mapping for the given node. This allows adding source mappings for statements | ||
* that are not yet finished, and whose total length is unknown. Does not add recursive mappings | ||
* for child nodes. | ||
* @return a handler to finish the mapping. | ||
*/ | ||
startSourceMapping(node: ts.Node): () => void; | ||
/** | ||
* Write a span of the input file as expressed by absolute offsets. | ||
@@ -55,0 +70,0 @@ * These offsets are found in attributes like node.getFullStart() and |
@@ -59,2 +59,3 @@ /** | ||
Rewriter.prototype.getOutput = function (prefix) { | ||
var e_1, _a; | ||
if (this.indent !== 0) { | ||
@@ -70,4 +71,4 @@ throw new Error('visit() failed to track nesting'); | ||
try { | ||
for (var _a = __values(ts.getLeadingCommentRanges(out, 0) || []), _b = _a.next(); !_b.done; _b = _a.next()) { | ||
var cr = _b.value; | ||
for (var _b = __values(ts.getLeadingCommentRanges(out, 0) || []), _c = _b.next(); !_c.done; _c = _b.next()) { | ||
var cr = _c.value; | ||
if (fileoverview_comment_transformer_1.isClosureFileoverviewComment(out.substring(cr.pos, cr.end))) { | ||
@@ -85,3 +86,3 @@ insertionIdx = cr.end; | ||
try { | ||
if (_b && !_b.done && (_c = _a.return)) _c.call(_a); | ||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b); | ||
} | ||
@@ -97,3 +98,2 @@ finally { if (e_1) throw e_1.error; } | ||
}; | ||
var e_1, _c; | ||
}; | ||
@@ -178,2 +178,15 @@ /** | ||
/** | ||
* Start a source mapping for the given node. This allows adding source mappings for statements | ||
* that are not yet finished, and whose total length is unknown. Does not add recursive mappings | ||
* for child nodes. | ||
* @return a handler to finish the mapping. | ||
*/ | ||
Rewriter.prototype.startSourceMapping = function (node) { | ||
var _this = this; | ||
var startPos = this.position.position; | ||
return function () { | ||
_this.sourceMapper.addMappingForRange(node, startPos, _this.position.position); | ||
}; | ||
}; | ||
/** | ||
* Write a span of the input file as expressed by absolute offsets. | ||
@@ -207,2 +220,3 @@ * These offsets are found in attributes like node.getFullStart() and | ||
Rewriter.prototype.emit = function (str) { | ||
var e_2, _a; | ||
this.output.push(str); | ||
@@ -227,3 +241,2 @@ try { | ||
this.position.position += str.length; | ||
var e_2, _a; | ||
}; | ||
@@ -288,2 +301,2 @@ /** Removes comment metacharacters from a string, to make it safe to embed in a comment. */ | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmV3cml0ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcm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WRlbnRpZmllclRleHQobmFtZSk7XG4gIH1cbiAgcmV0dXJuIGdldEVudGl0eU5hbWVUZXh0KG5hbWUubGVmdCkgKyAnLicgKyBnZXRJZGVudGlmaWVyVGV4dChuYW1lLnJpZ2h0KTtcbn1cblxuLyoqXG4gKiBDb252ZXJ0cyBhbiBlc2NhcGVkIFR5cGVTY3JpcHQgbmFtZSBpbnRvIHRoZSBvcmlnaW5hbCBzb3VyY2UgbmFtZS5cbiAqIFByZWZlciBnZXRJZGVudGlmaWVyVGV4dCgpIGluc3RlYWQgaWYgcG9zc2libGUuXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiB1bmVzY2FwZU5hbWUobmFtZTogc3RyaW5nKTogc3RyaW5nIHtcbiAgLy8gU2VlIHRoZSBwcml2YXRlIGZ1bmN0aW9uIHVuZXNjYXBlSWRlbnRpZmllciBpbiBUeXBlU2NyaXB0J3MgdXRpbGl0aWVzLnRzLlxuICBpZiAobmFtZS5tYXRjaCgvXl9fXy8pKSByZXR1cm4gbmFtZS5zdWJzdHIoMSk7XG4gIHJldHVybiBuYW1lO1xufVxuIl19 |
@@ -9,2 +9,3 @@ /// <amd-module name="tsickle/src/source_map_utils" /> | ||
*/ | ||
/// <amd-module name="tsickle/src/source_map_utils" /> | ||
import { RawSourceMap, SourceMapConsumer, SourceMapGenerator } from 'source-map'; | ||
@@ -78,3 +79,10 @@ import * as ts from './typescript'; | ||
addMapping(originalNode: ts.Node, original: SourcePosition, generated: SourcePosition, length: number): void; | ||
/** | ||
* Adds a mapping from `startPosition` to `endPosition` in the generated output. Contrary to | ||
* addMapping, this method does not attempt to add mappings for child nodes, nor does it always | ||
* emit a mapping for the given `originalNode`. It also does not adjust original positions for any | ||
* leading comments. | ||
*/ | ||
addMappingForRange(originalNode: ts.Node, startPosition: number, endPosition: number): void; | ||
} | ||
export declare const NOOP_SOURCE_MAPPER: SourceMapper; |
@@ -122,4 +122,5 @@ /** | ||
addMapping: function () { }, | ||
addMappingForRange: function () { }, |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BpbmdzIGZvciBjaGlsZCBub2Rlcywgbm9yIGRvZXMgaXQgYWx3YXlzXG4gICAqIGVtaXQgYSBtYXBwaW5nIGZvciB0aGUgZ2l2ZW4gYG9yaWdpbmFsTm9kZWAuIEl0IGFsc28gZG9lcyBub3QgYWRqdXN0IG9yaWdpbmFsIHBvc2l0aW9ucyBmb3IgYW55XG4gICAqIGxlYWRpbmcgY29tbWVudHMuXG4gICAqL1xuICBhZGRNYXBwaW5nRm9yUmFuZ2Uob3JpZ2luYWxOb2RlOiB0cy5Ob2RlLCBzdGFydFBvc2l0aW9uOiBudW1iZXIsIGVuZFBvc2l0aW9uOiBudW1iZXIpOiB2b2lkO1xufVxuXG5leHBvcnQgY29uc3QgTk9PUF9TT1VSQ0VfTUFQUEVSOiBTb3VyY2VNYXBwZXIgPSB7XG4gIHNoaWZ0QnlPZmZzZXQoKSB7Lyogbm8tb3AgKi99LFxuICBhZGRNYXBwaW5nKCkgey8qIG5vLW9wICovfSxcbiAgYWRkTWFwcGluZ0ZvclJhbmdlKCkgey8qIG5vLW9wICovfSxcbn07XG4iXX0= |
@@ -9,2 +9,3 @@ /// <amd-module name="tsickle/src/transformer_sourcemap" /> | ||
*/ | ||
/// <amd-module name="tsickle/src/transformer_sourcemap" /> | ||
import { SourceMapper } from './source_map_utils'; | ||
@@ -11,0 +12,0 @@ import * as ts from './typescript'; |
@@ -129,2 +129,10 @@ /** | ||
} | ||
/** | ||
* Recursively adds a source mapping for node and each of its children, mapping ranges from the | ||
* generated start position plus the child nodes offset up to its length. | ||
* | ||
* This is a useful catch all that works for most nodes, as long as their distance from the parent | ||
* does not change during emit and their own length does not change during emit (e.g. there are no | ||
* comments added inside them, no rewrites happening). | ||
*/ | ||
NodeSourceMapper.prototype.addFullNodeRange = function (node, genStartPos) { | ||
@@ -138,2 +146,14 @@ var _this = this; | ||
}; | ||
/** | ||
* Adds a mapping for the specific start/end range in the generated output back to the | ||
* originalNode. | ||
*/ | ||
NodeSourceMapper.prototype.addMappingForRange = function (originalNode, startPos, endPos) { | ||
// TODO(martinprobst): This glaringly duplicates addMapping below. However attempting to unify | ||
// these causes failures around exported variable nodes. Additionally, inspecting this code | ||
// longer suggests that it really only barely works by accident, and should much rather be | ||
// replaced by proper transformers :-( | ||
var cc = this.nodeCacheKey(originalNode.kind, startPos, endPos); | ||
this.originalNodeByGeneratedRange.set(cc, originalNode); | ||
}; | ||
NodeSourceMapper.prototype.addMapping = function (originalNode, original, generated, length) { | ||
@@ -154,3 +174,4 @@ var _this = this; | ||
if (originalStartPos + length === originalNode.getEnd()) { | ||
this.originalNodeByGeneratedRange.set(this.nodeCacheKey(originalNode.kind, this.genStartPositions.get(originalNode), genStartPos + length), originalNode); | ||
var cc = this.nodeCacheKey(originalNode.kind, this.genStartPositions.get(originalNode), genStartPos + length); | ||
this.originalNodeByGeneratedRange.set(cc, originalNode); | ||
} | ||
@@ -202,2 +223,2 @@ originalNode.forEachChild(function (child) { | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNmb3JtZXJfc291cmNlbWFwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3RyYW5zZm9ybWVyX3NvdXJjZW1hcC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7Ozs7Ozs7Ozs7OztJQUdILGlFQUEwRztJQUMxRywyQ0FBbUM7SUFFbkM7Ozs7Ozs7Ozs7O09BV0c7SUFDSCx3Q0FDSSxzQkFDVTtRQUNaLE9BQU8sVUFBQyxPQUFPLElBQUssT0FBQSxVQUFDLFVBQVU7WUFDN0IsSUFBTSxZQUFZLEdBQUcsSUFBSSxnQkFBZ0IsRUFBRSxDQUFDO1lBQzVDLElBQU0scUJBQXFCLEdBQUcsc0JBQXNCLENBQUMsVUFBVSxFQUFFLFlBQVksQ0FBQyxDQUFDO1lBQy9FLElBQU0sT0FB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kxhc3RUb2tlbjtcbn1cblxuLy8gQ29waWVkIGZyb20gVHlwZVNjcmlwdFxuZnVuY3Rpb24gaXNMaXRlcmFsS2luZChraW5kOiB0cy5TeW50YXhLaW5kKSB7XG4gIHJldHVybiB0cy5TeW50YXhLaW5kLkZpcnN0TGl0ZXJhbFRva2VuIDw9IGtpbmQgJiYga2luZCA8PSB0cy5TeW50YXhLaW5kLkxhc3RMaXRlcmFsVG9rZW47XG59XG4iXX0= |
@@ -9,2 +9,3 @@ /// <amd-module name="tsickle/src/transformer_util" /> | ||
*/ | ||
/// <amd-module name="tsickle/src/transformer_util" /> | ||
import * as ts from './typescript'; | ||
@@ -64,1 +65,6 @@ /** | ||
export declare function isTypeNodeKind(kind: ts.SyntaxKind): boolean; | ||
/** | ||
* Creates a string literal that uses single quotes. Purely cosmetic, but increases fidelity to the | ||
* existing test suite. | ||
*/ | ||
export declare function createSingleQuoteStringLiteral(text: string): ts.StringLiteral; |
/// <amd-module name="tsickle/src/tsickle" /> | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
/// <amd-module name="tsickle/src/tsickle" /> | ||
import * as googmodule from './googmodule'; | ||
@@ -43,5 +51,2 @@ import { ModulesManifest } from './modules_manifest'; | ||
export declare let closureExternsBlacklist: string[]; | ||
export declare function formatDiagnostics(diags: ReadonlyArray<ts.Diagnostic>): string; | ||
/** Returns a fileName:line:column string for the given position in the file. */ | ||
export declare function formatLocation(sf: ts.SourceFile, start: number | undefined): string; | ||
export declare function annotate(typeChecker: ts.TypeChecker, file: ts.SourceFile, host: AnnotatorHost, tsHost: ts.ModuleResolutionHost, tsOpts: ts.CompilerOptions, sourceMapper?: SourceMapper): { | ||
@@ -48,0 +53,0 @@ output: string; |
/// <amd-module name="tsickle/src/type-translator" /> | ||
import * as ts from 'typescript'; | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
/// <amd-module name="tsickle/src/type-translator" /> | ||
import * as ts from './typescript'; | ||
/** | ||
* Determines if fileName refers to a builtin lib.d.ts file. | ||
@@ -14,3 +22,3 @@ * This is a terrible hack but it mirrors a similar thing done in Clutz. | ||
private readonly node; | ||
private readonly pathBlackList; | ||
private readonly pathBlackList?; | ||
private readonly symbolsToAliasedNames; | ||
@@ -50,7 +58,7 @@ private readonly ensureSymbolDeclared; | ||
symbolToString(sym: ts.Symbol, useFqn: boolean): string; | ||
private stripClutzNamespace(name); | ||
private stripClutzNamespace; | ||
translate(type: ts.Type, resolveAlias?: boolean): string; | ||
private translateUnion(type); | ||
private translateEnumLiteral(type); | ||
private translateObject(type); | ||
private translateUnion; | ||
private translateEnumLiteral; | ||
private translateObject; | ||
/** | ||
@@ -64,5 +72,5 @@ * translateAnonymousType translates a ts.TypeFlags.ObjectType that is also | ||
*/ | ||
private translateAnonymousType(type); | ||
private translateAnonymousType; | ||
/** Converts a ts.Signature (function signature) to a Closure function type. */ | ||
private signatureToClosure(sig); | ||
private signatureToClosure; | ||
/** | ||
@@ -73,3 +81,3 @@ * Converts parameters for the given signature. Takes parameter declarations as those might not | ||
*/ | ||
private convertParams(sig, paramDecls); | ||
private convertParams; | ||
warn(msg: string): void; | ||
@@ -76,0 +84,0 @@ /** @return true if sym should always have type {?}. */ |
@@ -9,2 +9,3 @@ /// <amd-module name="tsickle/src/typescript" /> | ||
*/ | ||
/// <amd-module name="tsickle/src/typescript" /> | ||
/** | ||
@@ -18,4 +19,5 @@ * @fileoverview Abstraction over the TypeScript API that makes multiple | ||
import * as ts from 'typescript'; | ||
export { __String, addSyntheticTrailingComment, AssertionExpression, BinaryExpression, Block, CallExpression, CancellationToken, ClassDeclaration, ClassElement, ClassLikeDeclaration, CommentRange, CompilerHost, CompilerOptions, ConstructorDeclaration, createArrayLiteral, createArrayTypeNode, createArrowFunction, createAssignment, createBinary, createCall, createCompilerHost, createFunctionTypeNode, createIdentifier, createIndexSignature, createKeywordTypeNode, createLiteral, createLiteralTypeNode, createNodeArray, createNotEmittedStatement, createNull, createObjectLiteral, createParameter, createProgram, createProperty, createPropertyAccess, createPropertyAssignment, createPropertySignature, createSourceFile, createStatement, createToken, createTypeLiteralNode, createTypeReferenceNode, createUnionTypeNode, createVariableDeclaration, createVariableDeclarationList, createVariableStatement, CustomTransformers, Declaration, DeclarationStatement, DeclarationWithTypeParameters, Decorator, Diagnostic, DiagnosticCategory, ElementAccessExpression, EmitFlags, EmitResult, EntityName, EnumDeclaration, EnumMember, ExportDeclaration, ExportSpecifier, Expression, ExpressionStatement, flattenDiagnosticMessageText, forEachChild, FunctionDeclaration, FunctionLikeDeclaration, GetAccessorDeclaration, getCombinedModifierFlags, getLeadingCommentRanges, getLineAndCharacterOfPosition, getMutableClone, getOriginalNode, getPreEmitDiagnostics, getSyntheticLeadingComments, getSyntheticTrailingComments, getTrailingCommentRanges, Identifier, ImportDeclaration, ImportEqualsDeclaration, ImportSpecifier, InterfaceDeclaration, isArrowFunction, isBinaryExpression, isCallExpression, isExportDeclaration, isExpressionStatement, isIdentifier, isImportDeclaration, isLiteralExpression, isLiteralTypeNode, isObjectLiteralExpression, isPropertyAccessExpression, isPropertyAssignment, isQualifiedName, isStringLiteral, isTypeReferenceNode, isVariableStatement, MethodDeclaration, ModifierFlags, ModuleBlock, ModuleDeclaration, ModuleKind, ModuleResolutionHost, NamedDeclaration, NamedImports, Node, NodeArray, NodeFlags, NonNullExpression, NotEmittedStatement, ObjectLiteralElementLike, ObjectLiteralExpression, ParameterDeclaration, parseCommandLine, parseJsonConfigFileContent, Program, PropertyAccessExpression, PropertyAssignment, PropertyDeclaration, PropertyName, PropertySignature, QualifiedName, readConfigFile, resolveModuleName, ScriptTarget, SetAccessorDeclaration, setCommentRange, setEmitFlags, setOriginalNode, setSourceMapRange, setSyntheticLeadingComments, setSyntheticTrailingComments, setTextRange, SignatureDeclaration, SourceFile, Statement, StringLiteral, Symbol, SymbolFlags, SyntaxKind, SynthesizedComment, sys, Token, TransformationContext, Transformer, TransformerFactory, Type, TypeAliasDeclaration, TypeChecker, TypeElement, TypeFlags, TypeNode, TypeReference, TypeReferenceNode, UnionType, updateBlock, updateConstructor, updateGetAccessor, updateMethod, updateParameter, updateSetAccessor, updateSourceFileNode, VariableDeclaration, VariableStatement, visitEachChild, visitFunctionBody, visitLexicalEnvironment, visitNode, Visitor, visitParameterList, WriteFileCallback } from 'typescript'; | ||
export { __String, addSyntheticTrailingComment, AssertionExpression, BinaryExpression, Block, CallExpression, CancellationToken, ClassDeclaration, ClassElement, ClassLikeDeclaration, CommentRange, CompilerHost, CompilerOptions, ConstructorDeclaration, createArrayLiteral, createArrayTypeNode, createArrowFunction, createAssignment, createBinary, createCall, createCompilerHost, createFunctionTypeNode, createIdentifier, createIndexSignature, createKeywordTypeNode, createLiteral, createLiteralTypeNode, createNodeArray, createNotEmittedStatement, createNull, createObjectLiteral, createParameter, createProgram, createProperty, createPropertyAccess, createPropertyAssignment, createPropertySignature, createSourceFile, createStatement, createToken, createTypeLiteralNode, createTypeReferenceNode, createUnionTypeNode, createVariableDeclaration, createVariableDeclarationList, createVariableStatement, CustomTransformers, Declaration, DeclarationStatement, DeclarationWithTypeParameters, Decorator, Diagnostic, DiagnosticCategory, ElementAccessExpression, EmitFlags, EmitResult, EntityName, EnumDeclaration, EnumMember, ExportDeclaration, ExportSpecifier, Expression, ExpressionStatement, flattenDiagnosticMessageText, forEachChild, formatDiagnostics, FormatDiagnosticsHost, FunctionDeclaration, FunctionLikeDeclaration, GetAccessorDeclaration, getCombinedModifierFlags, getLeadingCommentRanges, getLineAndCharacterOfPosition, getMutableClone, getOriginalNode, getPreEmitDiagnostics, getSyntheticLeadingComments, getSyntheticTrailingComments, getTrailingCommentRanges, Identifier, ImportDeclaration, ImportEqualsDeclaration, ImportSpecifier, IndexKind, InterfaceDeclaration, isArrowFunction, isBinaryExpression, isCallExpression, isExportDeclaration, isExpressionStatement, isExternalModule, isIdentifier, isImportDeclaration, isLiteralExpression, isLiteralTypeNode, isObjectLiteralExpression, isPropertyAccessExpression, isPropertyAssignment, isQualifiedName, isStringLiteral, isTypeReferenceNode, isVariableStatement, MethodDeclaration, ModifierFlags, ModuleBlock, ModuleDeclaration, ModuleKind, ModuleResolutionHost, NamedDeclaration, NamedImports, Node, NodeArray, NodeFlags, NonNullExpression, NotEmittedStatement, ObjectFlags, ObjectLiteralElementLike, ObjectLiteralExpression, ObjectType, ParameterDeclaration, parseCommandLine, parseJsonConfigFileContent, Program, PropertyAccessExpression, PropertyAssignment, PropertyDeclaration, PropertyName, PropertySignature, QualifiedName, readConfigFile, resolveModuleName, ScriptTarget, SetAccessorDeclaration, setCommentRange, setEmitFlags, setOriginalNode, setSourceMapRange, setSyntheticLeadingComments, setSyntheticTrailingComments, setTextRange, Signature, SignatureDeclaration, SignatureKind, SourceFile, Statement, StringLiteral, Symbol, SymbolFlags, SymbolWriter, SyntaxKind, SynthesizedComment, sys, Token, TransformationContext, Transformer, TransformerFactory, Type, TypeAliasDeclaration, TypeChecker, TypeElement, TypeFlags, TypeNode, TypeParameterDeclaration, TypeReference, TypeReferenceNode, UnionType, updateBlock, updateConstructor, updateGetAccessor, updateMethod, updateParameter, updateSetAccessor, updateSourceFileNode, VariableDeclaration, VariableStatement, visitEachChild, visitFunctionBody, visitLexicalEnvironment, visitNode, Visitor, visitParameterList, WriteFileCallback } from 'typescript'; | ||
export declare const SyntaxKindJSDocSignature: ts.SyntaxKind; | ||
export declare function getEmitFlags(node: ts.Node): ts.EmitFlags | undefined; | ||
export declare let updateProperty: typeof ts.updateProperty; |
@@ -82,2 +82,3 @@ /** | ||
exports.forEachChild = typescript_1.forEachChild; | ||
exports.formatDiagnostics = typescript_1.formatDiagnostics; | ||
exports.getCombinedModifierFlags = typescript_1.getCombinedModifierFlags; | ||
@@ -92,2 +93,3 @@ exports.getLeadingCommentRanges = typescript_1.getLeadingCommentRanges; | ||
exports.getTrailingCommentRanges = typescript_1.getTrailingCommentRanges; | ||
exports.IndexKind = typescript_1.IndexKind; | ||
exports.isArrowFunction = typescript_1.isArrowFunction; | ||
@@ -98,2 +100,3 @@ exports.isBinaryExpression = typescript_1.isBinaryExpression; | ||
exports.isExpressionStatement = typescript_1.isExpressionStatement; | ||
exports.isExternalModule = typescript_1.isExternalModule; | ||
exports.isIdentifier = typescript_1.isIdentifier; | ||
@@ -113,2 +116,3 @@ exports.isImportDeclaration = typescript_1.isImportDeclaration; | ||
exports.NodeFlags = typescript_1.NodeFlags; | ||
exports.ObjectFlags = typescript_1.ObjectFlags; | ||
exports.parseCommandLine = typescript_1.parseCommandLine; | ||
@@ -126,2 +130,3 @@ exports.parseJsonConfigFileContent = typescript_1.parseJsonConfigFileContent; | ||
exports.setTextRange = typescript_1.setTextRange; | ||
exports.SignatureKind = typescript_1.SignatureKind; | ||
exports.SymbolFlags = typescript_1.SymbolFlags; | ||
@@ -143,2 +148,4 @@ exports.SyntaxKind = typescript_1.SyntaxKind; | ||
exports.visitParameterList = typescript_1.visitParameterList; | ||
// tslint:disable-next-line:variable-name Re-exporting JSDocSignature for backwards compat. | ||
exports.SyntaxKindJSDocSignature = ts.SyntaxKind.JSDocSignature; | ||
// getEmitFlags is now private starting in TS 2.5. | ||
@@ -162,2 +169,2 @@ // So we define our own method that calls through to TypeScript to defeat the | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXNjcmlwdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy90eXBlc2NyaXB0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztJQUVIOzs7Ozs7T0FNRztJQUVILCtFQUErRTtJQUUvRSw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Qcm9wZXJ0eTtcblxuY29uc3QgW21ham9yLCBtaW5vcl0gPSB0cy52ZXJzaW9uLnNwbGl0KCcuJyk7XG5pZiAobWFqb3IgPT09ICcyJyAmJiBtaW5vciA9PT0gJzQnKSB7XG4gIGNvbnN0IHVwZGF0ZVByb3BlcnR5MjQgPSB0cy51cGRhdGVQcm9wZXJ0eSBhcyBhbnkgYXMgdHlwZW9mIHRzMjQudXBkYXRlUHJvcGVydHk7XG4gIHVwZGF0ZVByb3BlcnR5ID0gKG5vZGU6IHRzLlByb3BlcnR5RGVjbGFyYXRpb24sIGRlY29yYXRvcnM6IFJlYWRvbmx5QXJyYXk8dHMuRGVjb3JhdG9yPnx1bmRlZmluZWQsXG4gICAgICAgICAgICAgICAgICAgIG1vZGlmaWVyczogUmVhZG9ubHlBcnJheTx0cy5Nb2RpZmllcj58dW5kZWZpbmVkLCBuYW1lOiBzdHJpbmd8dHMuUHJvcGVydHlOYW1lLFxuICAgICAgICAgICAgICAgICAgICBxdWVzdGlvblRva2VuOiB0cy5RdWVzdGlvblRva2VufHVuZGVmaW5lZCwgdHlwZTogdHMuVHlwZU5vZGV8dW5kZWZpbmVkLFxuICAgICAgICAgICAgICAgICAgICBpbml0aWFsaXplcjogdHMuRXhwcmVzc2lvbnx1bmRlZmluZWQpOiB0cy5Qcm9wZXJ0eURlY2xhcmF0aW9uID0+IHtcbiAgICByZXR1cm4gdXBkYXRlUHJvcGVydHkyNChcbiAgICAgICAgICAgICAgIG5vZGUgYXMgYW55IGFzIHRzMjQuUHJvcGVydHlEZWNsYXJhdGlvbiwgZGVjb3JhdG9ycyBhcyBhbnkgYXMgdHMyNC5EZWNvcmF0b3JbXSxcbiAgICAgICAgICAgICAgIG1vZGlmaWVycyBhcyBhbnksIG5hbWUgYXMgYW55LCB0eXBlIGFzIGFueSzCoGluaXRpYWxpemVyIGFzIGFueSkgYXMgYW55O1xuICB9O1xufVxuIl19 |
/// <amd-module name="tsickle/src/util" /> | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
/// <amd-module name="tsickle/src/util" /> | ||
import * as ts from 'typescript'; | ||
@@ -3,0 +11,0 @@ /** |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1235146
21
39
12294
6
+ Addedjasmine-diff@^0.1.3
+ Addeddiff@3.5.0(transitive)
+ Addedjasmine-diff@0.1.3(transitive)