Comparing version 0.33.0 to 0.33.1
{ | ||
"name": "tsickle", | ||
"version": "0.33.0", | ||
"version": "0.33.1", | ||
"description": "Transpile TypeScript code to JavaScript with Closure annotations.", | ||
@@ -20,3 +20,3 @@ "main": "src/tsickle.js", | ||
"peerDependencies": { | ||
"typescript": "git://github.com/mprobst/TypeScript.git#5456479a4a" | ||
"typescript": "3.1.3" | ||
}, | ||
@@ -38,3 +38,3 @@ "devDependencies": { | ||
"tslint": "5.11.0", | ||
"typescript": "git://github.com/mprobst/TypeScript.git#5456479a4a" | ||
"typescript": "3.1.3" | ||
}, | ||
@@ -41,0 +41,0 @@ "scripts": { |
@@ -9,2 +9,13 @@ /** | ||
/// <amd-module name="tsickle/src/cli_support" /> | ||
/** | ||
* asserts that the given fileName is an absolute path. | ||
* | ||
* The TypeScript API works in absolute paths, so we must be careful to resolve | ||
* paths before handing them over to TypeScript. | ||
*/ | ||
export declare function assertAbsolute(fileName: string): void; | ||
/** | ||
* Takes a context (ts.SourceFile.fileName of the current file) and the import URL of an ES6 | ||
* import and generates a googmodule module name for the imported module. | ||
*/ | ||
export declare function pathToModuleName(rootModulePath: string, context: string, fileName: string): string; |
@@ -14,3 +14,3 @@ /** | ||
else if (typeof define === "function" && define.amd) { | ||
define("tsickle/src/cli_support", ["require", "exports", "path"], factory); | ||
define("tsickle/src/cli_support", ["require", "exports", "assert", "path"], factory); | ||
} | ||
@@ -20,6 +20,20 @@ })(function (require, exports) { | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var assert = require("assert"); | ||
var path = require("path"); | ||
// Postprocess generated JS. | ||
/** | ||
* asserts that the given fileName is an absolute path. | ||
* | ||
* The TypeScript API works in absolute paths, so we must be careful to resolve | ||
* paths before handing them over to TypeScript. | ||
*/ | ||
function assertAbsolute(fileName) { | ||
assert(path.isAbsolute(fileName), "expected " + JSON.stringify(fileName) + " to be absolute"); | ||
} | ||
exports.assertAbsolute = assertAbsolute; | ||
/** | ||
* Takes a context (ts.SourceFile.fileName of the current file) and the import URL of an ES6 | ||
* import and generates a googmodule module name for the imported module. | ||
*/ | ||
function pathToModuleName(rootModulePath, context, fileName) { | ||
fileName = fileName.replace(/\.[tj]s$/, ''); | ||
fileName = fileName.replace(/(\.d)?\.[tj]s$/, ''); | ||
if (fileName[0] === '.') { | ||
@@ -30,4 +44,11 @@ // './foo' or '../foo'. | ||
} | ||
// Ensure consistency by naming all modules after their absolute paths | ||
fileName = path.resolve(fileName); | ||
// TODO(evanm): various tests assume they can import relative paths like | ||
// 'foo/bar' and have them interpreted as root-relative; preserve that here. | ||
// Fix this by removing the next line. | ||
if (!path.isAbsolute(fileName)) | ||
fileName = path.join(rootModulePath, fileName); | ||
// TODO(evanm): various tests assume they can pass in a 'fileName' like | ||
// 'goog:foo.bar' and have this function do something reasonable. | ||
// For correctness, the above must have produced an absolute path. | ||
// assertAbsolute(fileName); | ||
if (rootModulePath) { | ||
@@ -42,2 +63,2 @@ fileName = path.relative(rootModulePath, fileName); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xpX3N1cHBvcnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY2xpX3N1cHBvcnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HOzs7Ozs7Ozs7Ozs7SUFFSCwyQkFBNkI7SUFFN0IsNEJBQTRCO0lBQzVCLDBCQUNJLGNBQXNCLEVBQUUsT0FBZSxFQUFFLFFBQWdCO1FBQzNELFFBQVEsR0FBRyxRQUFRLENBQUMsT0FBTyxDQUFDLFVBQVUsRUFBRSxFQUFFLENBQUMsQ0FBQztRQUU1QyxJQUFJLFFBQVEsQ0FBQyxDQUFDLENBQUMsS0FBSyxHQUFHLEVBQUU7WUFDdkIsdUJBQXVCO1lBQ3ZCLDhEQUE4RDtZQUM5RCxRQUFRLEdBQUcsSUFBSSxDQUFDLElBQUksQ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leHQgbGluZS5cbiAgaWYgKCFwYXRoLmlzQWJzb2x1dGUoZmlsZU5hbWUpKSBmaWxlTmFtZSA9IHBhdGguam9pbihyb290TW9kdWxlUGF0aCwgZmlsZU5hbWUpO1xuXG4gIC8vIFRPRE8oZXZhbm0pOiB2YXJpb3VzIHRlc3RzIGFzc3VtZSB0aGV5IGNhbiBwYXNzIGluIGEgJ2ZpbGVOYW1lJyBsaWtlXG4gIC8vICdnb29nOmZvby5iYXInIGFuZCBoYXZlIHRoaXMgZnVuY3Rpb24gZG8gc29tZXRoaW5nIHJlYXNvbmFibGUuXG5cbiAgLy8gRm9yIGNvcnJlY3RuZXNzLCB0aGUgYWJvdmUgbXVzdCBoYXZlIHByb2R1Y2VkIGFuIGFic29sdXRlIHBhdGguXG4gIC8vIGFzc2VydEFic29sdXRlKGZpbGVOYW1lKTtcblxuICBpZiAocm9vdE1vZHVsZVBhdGgpIHtcbiAgICBmaWxlTmFtZSA9IHBhdGgucmVsYXRpdmUocm9vdE1vZHVsZVBhdGgsIGZpbGVOYW1lKTtcbiAgfVxuXG4gIC8vIFJlcGxhY2UgY2hhcmFjdGVycyBub3Qgc3VwcG9ydGVkIGJ5IGdvb2cubW9kdWxlLlxuICBjb25zdCBtb2R1bGVOYW1lID1cbiAgICAgIGZpbGVOYW1lLnJlcGxhY2UoL1xcL3xcXFxcL2csICcuJykucmVwbGFjZSgvXlteYS16QS1aXyRdLywgJ18nKS5yZXBsYWNlKC9bXmEtekEtWjAtOS5fJF0vZywgJ18nKTtcblxuICByZXR1cm4gbW9kdWxlTmFtZTtcbn1cbiJdfQ== |
@@ -80,1 +80,11 @@ /** | ||
var SymbolConstructor; | ||
/** | ||
* This type is used as a marker in locations where TypeScript knows the type | ||
* but we cannot express that type in the Closure system. | ||
* | ||
* It's used in 'implements' clauses so that a person debugging the emitted JS | ||
* can see that tsickle saw the type but ignored it. | ||
* @record | ||
*/ | ||
class InexpressibleType {} |
@@ -23,4 +23,9 @@ /** | ||
/** | ||
* getEnumType computes the Closure type of an enum, by iterating through the members and gathering | ||
* their types. | ||
*/ | ||
export declare function getEnumType(typeChecker: ts.TypeChecker, enumDecl: ts.EnumDeclaration): 'number' | 'string' | '?'; | ||
/** | ||
* Transformer factory for the enum transformer. See fileoverview for details. | ||
*/ | ||
export declare function enumTransformer(typeChecker: ts.TypeChecker, diagnostics: ts.Diagnostic[]): (context: ts.TransformationContext) => ts.Transformer<ts.SourceFile>; |
@@ -24,3 +24,3 @@ /** | ||
else if (typeof define === "function" && define.amd) { | ||
define("tsickle/src/enum_transformer", ["require", "exports", "typescript", "tsickle/src/transformer_util"], factory); | ||
define("tsickle/src/enum_transformer", ["require", "exports", "typescript", "tsickle/src/jsdoc_transformer", "tsickle/src/transformer_util"], factory); | ||
} | ||
@@ -43,2 +43,3 @@ })(function (require, exports) { | ||
var ts = require("typescript"); | ||
var jsdoc_transformer_1 = require("tsickle/src/jsdoc_transformer"); | ||
var transformer_util_1 = require("tsickle/src/transformer_util"); | ||
@@ -120,2 +121,3 @@ /** isInNamespace returns true if any of node's ancestors is a namespace (ModuleDeclaration). */ | ||
} | ||
exports.getEnumType = getEnumType; | ||
/** | ||
@@ -136,2 +138,6 @@ * Transformer factory for the enum transformer. See fileoverview for details. | ||
return ts.visitEachChild(node, visitor, context); | ||
// TypeScript does not emit any code for ambient enums, so early exit here to prevent the code | ||
// below from producing runtime values for an ambient structure. | ||
if (jsdoc_transformer_1.isAmbient(node)) | ||
return ts.visitEachChild(node, visitor, context); | ||
var name = node.name.getText(); | ||
@@ -252,2 +258,2 @@ var isExported = transformer_util_1.hasModifierFlag(node, ts.ModifierFlags.Export); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW51bV90cmFuc2Zvcm1lci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9lbnVtX3RyYW5zZm9ybWVyLnRzIl0sIm5hbWVzIj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mFtZTtcbiAgICAgICAgICBtZW1iZXJBY2Nlc3MgPSB0cy5jcmVhdGVFbGVtZW50QWNjZXNzKHRzLmNyZWF0ZUlkZW50aWZpZXIobmFtZSksIG5hbWVFeHByKTtcbiAgICAgICAgfVxuICAgICAgICByZXN1bHROb2Rlcy5wdXNoKHRzLmNyZWF0ZVN0YXRlbWVudCh0cy5jcmVhdGVBc3NpZ25tZW50KFxuICAgICAgICAgICAgdHMuY3JlYXRlRWxlbWVudEFjY2Vzcyh0cy5jcmVhdGVJZGVudGlmaWVyKG5hbWUpLCBtZW1iZXJBY2Nlc3MpLCBuYW1lRXhwcikpKTtcbiAgICAgIH1cbiAgICAgIHJldHVybiByZXN1bHROb2RlcztcbiAgICB9XG5cbiAgICByZXR1cm4gKHNmOiB0cy5Tb3VyY2VGaWxlKSA9PiB2aXNpdG9yKHNmKSBhcyB0cy5Tb3VyY2VGaWxlO1xuICB9O1xufVxuIl19 |
@@ -14,6 +14,9 @@ /** | ||
* header. | ||
* | ||
* @param rootDir Project root. Emitted comments will reference paths relative to this root. | ||
* This param is effectively required, but made optional here until Angular is fixed. | ||
*/ | ||
export declare function getGeneratedExterns(externs: { | ||
[fileName: string]: string; | ||
}): string; | ||
}, rootDir?: string): string; | ||
/** | ||
@@ -24,7 +27,4 @@ * Returns a mangled version of the module name (resolved file name) for source file. | ||
* prefix to scope symbols in externs file (see code below). | ||
* | ||
* @param contextFileName if given is used as the context file path to resolve the source file's | ||
* name against. | ||
*/ | ||
export declare function moduleNameAsIdentifier(host: AnnotatorHost, fileName: string, contextFileName?: string): string; | ||
export declare function moduleNameAsIdentifier(host: AnnotatorHost, fileName: string): string; | ||
/** | ||
@@ -31,0 +31,0 @@ * generateExterns generates extern definitions for all ambient declarations in the given source |
@@ -91,2 +91,6 @@ /** | ||
suppressions.add('uselessCode'); | ||
// 4) Suppress missingReturn. If the TS compiler's exhaustiveness analysis | ||
// concludes that all possible branches return a value, then we don't want | ||
// Closure to second-guess this decision. | ||
suppressions.add('missingReturn'); | ||
suppressTag.type = Array.from(suppressions.values()).sort().join(','); | ||
@@ -202,2 +206,2 @@ return tags; | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZW92ZXJ2aWV3X2NvbW1lbnRfdHJhbnNmb3JtZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvZmlsZW92ZXJ2aWV3X2NvbW1lbnRfdHJhbnNmb3JtZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7SUFFSCx5Q0FBaUM7SUFDakMsaUVBQThIO0lBQzlILDJDQUFtQztJQUVuQzs7O09BR0c7SUFDSCxJQUFNLDRCQUE0QixHQUM5QixJQUFJLEdBQUcsQ0FBQyxDQUFDLGNBQWMsRUFBRSxTQUFTLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBRSxhQUFhLENBQUMsQ0FBQyxDQUFDO0lBRTNFOzs7OztPQUtHO0lBQ0gscUNBQXFDLElBQWlCO1FBQ3BELHdDQUF3QztRQUN4QyxJQUFJLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxVQUFBLENBQUMsSUFBSSxPQUFBLENBQUMsQ0FBQyxPQUFPLEtBQUssY0FBYyxFQUE1QixDQUE0QixDQUFDLEVBQUU7WUFDakQsSUFBSSxDQUFDLE1BQU0sQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUMsT0FBTyxFQUFFLGNBQWMsRUFBRSxJQUFJLEVBQUUsa0JBQWtCLEVBQUMsQ0FBQyxDQUFDO1NBQ3hFO1FBRUQsa0NBQWtDO1FBQ2xDLDBGQUEwRjtRQUMxRixrQ0FBa0M7UUFDbEMsSUFBSSxXQUFXLEdBQUcsSUFBSSxDQU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lsaW5nQ29tbWVudChcbiAgICAgIHN5bnRoZXRpY0ZpcnN0U3RhdGVtZW50LCB0cy5TeW50YXhLaW5kLk11bHRpTGluZUNvbW1lbnRUcml2aWEsIGNvbW1lbnRUZXh0LCB0cnVlKTtcbiAgcmV0dXJuIHVwZGF0ZVNvdXJjZUZpbGVOb2RlKHNmLCB0cy5jcmVhdGVOb2RlQXJyYXkoW3N5bnRoZXRpY0ZpcnN0U3RhdGVtZW50LCAuLi5zZi5zdGF0ZW1lbnRzXSkpO1xufVxuIl19 |
121
src/jsdoc.js
@@ -62,40 +62,79 @@ /** | ||
var JSDOC_TAGS_WHITELIST = new Set([ | ||
'abstract', 'argument', | ||
'author', 'consistentIdGenerator', | ||
'const', 'constant', | ||
'constructor', 'copyright', | ||
'define', 'deprecated', | ||
'desc', 'dict', | ||
'disposes', 'enhance', | ||
'enhanceable', 'enum', | ||
'export', 'expose', | ||
'extends', 'externs', | ||
'fileoverview', 'final', | ||
'hassoydelcall', 'hassoydeltemplate', | ||
'hidden', 'id', | ||
'idGenerator', 'ignore', | ||
'implements', 'implicitCast', | ||
'inheritDoc', 'interface', | ||
'jaggerInject', 'jaggerModule', | ||
'jaggerProvide', 'jaggerProvidePromise', | ||
'lends', 'license', | ||
'link', 'meaning', | ||
'modifies', 'modName', | ||
'mods', 'ngInject', | ||
'noalias', 'nocollapse', | ||
'nocompile', 'nosideeffects', | ||
'override', 'owner', | ||
'package', 'param', | ||
'pintomodule', 'polymerBehavior', | ||
'preserve', 'preserveTry', | ||
'private', 'protected', | ||
'public', 'record', | ||
'requirecss', 'requires', | ||
'return', 'returns', | ||
'see', 'stableIdGenerator', | ||
'struct', 'suppress', | ||
'template', 'this', | ||
'throws', 'type', | ||
'typedef', 'unrestricted', | ||
'version', 'wizaction', | ||
'abstract', | ||
'argument', | ||
'author', | ||
'consistentIdGenerator', | ||
'const', | ||
'constant', | ||
'constructor', | ||
'copyright', | ||
'define', | ||
'deprecated', | ||
'desc', | ||
'dict', | ||
'disposes', | ||
'enhance', | ||
'enhanceable', | ||
'enum', | ||
'export', | ||
'expose', | ||
'extends', | ||
'externs', | ||
'fileoverview', | ||
'final', | ||
'hassoydelcall', | ||
'hassoydeltemplate', | ||
'hidden', | ||
'id', | ||
'idGenerator', | ||
'ignore', | ||
'implements', | ||
'implicitCast', | ||
'inheritDoc', | ||
'interface', | ||
'jaggerInject', | ||
'jaggerModule', | ||
'jaggerProvide', | ||
'jaggerProvidePromise', | ||
'lends', | ||
'license', | ||
'link', | ||
'meaning', | ||
'modifies', | ||
'modName', | ||
'mods', | ||
'ngInject', | ||
'noalias', | ||
'nocollapse', | ||
'nocompile', | ||
'nosideeffects', | ||
'override', | ||
'owner', | ||
'package', | ||
'param', | ||
'pintomodule', | ||
'polymer', | ||
'polymerBehavior', | ||
'preserve', | ||
'preserveTry', | ||
'private', | ||
'protected', | ||
'public', | ||
'record', | ||
'requirecss', | ||
'requires', | ||
'return', | ||
'returns', | ||
'see', | ||
'stableIdGenerator', | ||
'struct', | ||
'suppress', | ||
'template', | ||
'this', | ||
'throws', | ||
'type', | ||
'typedef', | ||
'unrestricted', | ||
'version', | ||
'wizaction', | ||
'wizmodule', | ||
@@ -453,3 +492,5 @@ ]); | ||
var type = types.size > 0 ? Array.from(types).join('|') : undefined; | ||
var text = texts.size > 0 ? Array.from(texts).join(' / ') : undefined; | ||
// @template uses text (not type!) to declare its type parameters, with ','-separated text. | ||
var isTemplateTag = tagName === 'template'; | ||
var text = texts.size > 0 ? Array.from(texts).join(isTemplateTag ? ',' : ' / ') : undefined; | ||
var tag = { tagName: tagName, parameterName: parameterName, type: type, text: text }; | ||
@@ -468,2 +509,2 @@ // Note: a param can either be optional or a rest param; if we merged an | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoianNkb2MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvanNkb2MudHMiXSwibmFtZXMiO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gICdlbmhhbmNlJyxcbiAgJ2VuaGFuY2VhYmxlJywgICAnZW51bScsXG4gICdleHBvcnQnLCAgICAgICAgJ2V4cG9zZScsXG4gICdleHRlbmRzJywgICAgICAgJ2V4dGVybnMnLFxuICAnZmlsZW92ZXJ2aWV3JywgICdmaW5hbCcsXG4gICdoYXNzb3lkZWxjYWxsJywgJ2hhc3NveWRlbHRlbXBsYXRlJyxcbiAgJ2hpZGRlbicsICAgICAgICAnaWQnLFxuICAnaWRHZW5lcmF0b3InLCAgICdpZ25vcmUnLFxuICAnaW1wbGVtZW50cycsICAgICdpbXBsaWNpdENhc3QnLFxuICAnaW5oZXJpdERvYycsICAgICdpbnRlcmZhY2UnLFxuICAnamFnZ2VySW5qZWN0JywgICdqYWdnZXJNb2R1bGUnLFxuICAnamFnZ2VyUHJvdmlkZScsICdqYWdnZXJQcm92aWRlUHJvbWlzZScsXG4gICdsZW5kcycsICAgICAgICAgJ2xpY2Vuc2UnLFxuICAnbGluaycsICAgICAgICAgICdtZWFuaW5nJyxcbiAgJ21vZGlmaWVzJywgICAgICAnbW9kTmFtZScsXG4gICdtb2RzJywgICAgICAgICAgJ25nSW5qZWN0JyxcbiAgJ25vYWxpYXMnLCAgICAgICAnbm9jb2xsYXBzZScsXG4gICdub2NvbXBpbGUnLCAgICAgJ25vc2lkZWVmZmVjdHMnLFxuICAnb3ZlcnJpZGUnLCAgICAgICdvd25lcicsXG4gICdwYWNrYWdlJywgICAgICAgJ3BhcmFtJyxcbiAgJ3BpbnRvbW9kdWxlJywgICAncG9seW1lckJlaGF2aW9yJyxcbiAgJ3ByZXNlcnZlJywgICAgICAncHJlc2VydmVUcnknLFxuICAncHJpdmF0ZScsICAgICAgICdwcm90ZWN0ZWQnLFxuICAncHVibGljJywgICAgICAgICdyZWNvcmQnLFxuICAncmVxdWlyZWNzcycsICAgICdyZXF1aXJlcycsXG4gICdyZXR1cm4nLCAgICAgICAgJ3JldHVybnMnLFxuICAnc2VlJywgICAgICAgICAgICd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+IDAgPyBBcnJheS5mcm9tKHR5cGVzKS5qb2luKCd8JykgOiB1bmRlZmluZWQ7XG4gIC8vIEB0ZW1wbGF0ZSB1c2VzIHRleHQgKG5vdCB0eXBlISkgdG8gZGVjbGFyZSBpdHMgdHlwZSBwYXJhbWV0ZXJzLCB3aXRoICcsJy1zZXBhcmF0ZWQgdGV4dC5cbiAgY29uc3QgaXNUZW1wbGF0ZVRhZyA9IHRhZ05hbWUgPT09ICd0ZW1wbGF0ZSc7XG4gIGNvbnN0IHRleHQgPSB0ZXh0cy5zaXplID4gMCA/IEFycmF5LmZyb20odGV4dHMpLmpvaW4oaXNUZW1wbGF0ZVRhZyA/ICcsJyA6ICcgLyAnKSA6IHVuZGVmaW5lZDtcbiAgY29uc3QgdGFnOiBUYWcgPSB7dGFnTmFtZSwgcGFyYW1ldGVyTmFtZSwgdHlwZSwgdGV4dH07XG4gIC8vIE5vdGU6IGEgcGFyYW0gY2FuIGVpdGhlciBiZSBvcHRpb25hbCBvciBhIHJlc3QgcGFyYW07IGlmIHdlIG1lcmdlZCBhblxuICAvLyBvcHRpb25hbCBhbmQgcmVzdCBwYXJhbSB0b2dldGhlciwgcHJlZmVyIG1hcmtpbmcgaXQgYXMgYSByZXN0IHBhcmFtLlxuICBpZiAocmVzdFBhcmFtKSB7XG4gICAgdGFnLnJlc3RQYXJhbSA9IHRydWU7XG4gIH0gZWxzZSBpZiAob3B0aW9uYWwpIHtcbiAgICB0YWcub3B0aW9uYWwgPSB0cnVlO1xuICB9XG4gIHJldHVybiB0YWc7XG59XG4iXX0= |
@@ -145,3 +145,3 @@ #!/usr/bin/env node | ||
var compilerHost = ts.createCompilerHost(options); | ||
var program = ts.createProgram(fileNames, options, compilerHost); | ||
var program = ts.createProgram(absoluteFileNames, options, compilerHost); | ||
var filesToProcess = new Set(absoluteFileNames); | ||
@@ -154,3 +154,5 @@ var rootModulePath = options.rootDir || getCommonParentDirectory(absoluteFileNames); | ||
shouldIgnoreWarningsForPath: function (fileName) { return false; }, | ||
pathToModuleName: cliSupport.pathToModuleName.bind(null, rootModulePath), | ||
pathToModuleName: function (context, fileName) { | ||
return cliSupport.pathToModuleName(rootModulePath, context, fileName); | ||
}, | ||
fileNameToModuleId: function (fileName) { return path.relative(rootModulePath, fileName); }, | ||
@@ -206,3 +208,3 @@ es5Mode: true, | ||
mkdirp.sync(path.dirname(settings.externsPath)); | ||
fs.writeFileSync(settings.externsPath, tsickle.getGeneratedExterns(result.externs)); | ||
fs.writeFileSync(settings.externsPath, tsickle.getGeneratedExterns(result.externs, config.options.rootDir || '')); | ||
} | ||
@@ -216,2 +218,2 @@ return 0; | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9tYWluLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7SUFVQSx1QkFBeUI7SUFDekIsbUNBQXFDO0lBQ3JDLCtCQUFpQztJQUNqQywyQkFBNkI7SUFDN0IsMkNBQW1DO0lBRW5DLG9EQUE0QztJQUM1Qyw2Q0FBcUM7SUFDckMsK0NBQTBDO0lBaUIxQztRQUNFLE9BQU8sQ0FBQyxLQUFLLENBQUMseVhBU2YsQ0FBQyxDQUFDO0lBQ0gsQ0FBQztJQUVEOzs7T0FHRztJQUNILDhCQUE4QixJQUFjOztRQUMxQyxJQUFNLFFBQVEsR0FBYSxFQUFFLENBQUM7UUFDOUIsSUFBTSxVQUFVLEdBQUcsUUFBUSxDQUFDLElBQUksQ0FBQyxDQUFDOztZQUNsQyxLQUFtQixJQUFBLEtBQUEsU0FBQSxNQUFNLENBQUMsSUFBSSxDQUFDLFVBQVUsQ0FBQyxDQUFBLGdCQUFBLDRCQUFFO2dCQUF2QyxJQUFNLElBQUksV0FBQTtnQkFDYixRQUFRLElBQUks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HQuZXh0ZXJucywgY29uZmlnLm9wdGlvbnMucm9vdERpciB8fCAnJykpO1xuICB9XG4gIHJldHVybiAwO1xufVxuXG4vLyBDTEkgZW50cnkgcG9pbnRcbmlmIChyZXF1aXJlLm1haW4gPT09IG1vZHVsZSkge1xuICBwcm9jZXNzLmV4aXQobWFpbihwcm9jZXNzLmFyZ3Yuc3BsaWNlKDIpKSk7XG59XG4iXX0= |
@@ -107,3 +107,7 @@ /** | ||
*/ | ||
getFunctionTypeJSDoc(fnDecls: ts.SignatureDeclaration[], extraTags?: jsdoc.Tag[]): [jsdoc.Tag[], string[]]; | ||
getFunctionTypeJSDoc(fnDecls: ts.SignatureDeclaration[], extraTags?: jsdoc.Tag[]): { | ||
tags: jsdoc.Tag[]; | ||
parameterNames: string[]; | ||
thisReturnType: ts.Type | null; | ||
}; | ||
} |
@@ -11,3 +11,3 @@ /** | ||
/** @return true if node has the specified modifier flag set. */ | ||
export declare function hasModifierFlag(node: ts.Node, flag: ts.ModifierFlags): boolean; | ||
export declare function hasModifierFlag(declaration: ts.Declaration, flag: ts.ModifierFlags): boolean; | ||
/** Returns true if fileName is a .d.ts file. */ | ||
@@ -14,0 +14,0 @@ export declare function isDtsFileName(fileName: string): boolean; |
@@ -49,4 +49,4 @@ /** | ||
/** @return true if node has the specified modifier flag set. */ | ||
function hasModifierFlag(node, flag) { | ||
return (ts.getCombinedModifierFlags(node) & flag) !== 0; | ||
function hasModifierFlag(declaration, flag) { | ||
return (ts.getCombinedModifierFlags(declaration) & flag) !== 0; | ||
} | ||
@@ -290,2 +290,2 @@ exports.hasModifierFlag = hasModifierFlag; | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNmb3JtZXJfdXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy90cmFuc2Zvcm1lcl91dGlsLnRzIl0sIm5hbWVzIjpbXSwibWFw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yBvbiB0aGUgZ2l2ZW4gbm9kZSwgd2l0aCB0aGVpciB0ZXh0IGluY2x1ZGVkLiBUaGUgcmV0dXJuZWQgY29tbWVudHMgbXVzdFxuICogbm90IGJlIG11dGF0ZWQsIGFzIHRoZWlyIGNvbnRlbnQgbWlnaHQgb3IgbWlnaHQgbm90IGJlIHJlZmxlY3RlZCBiYWNrIGludG8gdGhlIEFTVC5cbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGdldEFsbExlYWRpbmdDb21tZW50cyhub2RlOiB0cy5Ob2RlKTpcbiAgICBSZWFkb25seUFycmF5PFJlYWRvbmx5PHRzLkNvbW1lbnRSYW5nZSZ7dGV4dDogc3RyaW5nfT4+IHtcbiAgY29uc3QgYWxsUmFuZ2VzOiBBcnJheTxSZWFkb25seTx0cy5Db21tZW50UmFuZ2Ume3RleHQ6IHN0cmluZ30+PiA9IFtdO1xuICBjb25zdCBub2RlVGV4dCA9IG5vZGUuZ2V0RnVsbFRleHQoKTtcbiAgY29uc3QgY3IgPSB0cy5nZXRMZWFkaW5nQ29tbWVudFJhbmdlcyhub2RlVGV4dCwgMCk7XG4gIGlmIChjcikgYWxsUmFuZ2VzLnB1c2goLi4uY3IubWFwKGMgPT4gKHsuLi5jLCB0ZXh0OiBub2RlVGV4dC5zdWJzdHJpbmcoYy5wb3MsIGMuZW5kKX0pKSk7XG4gIGNvbnN0IHN5bnRoZXRpYyA9IHRzLmdldFN5bnRoZXRpY0xlYWRpbmdDb21tZW50cyhub2RlKTtcbiAgaWYgKHN5bnRoZXRpYykgYWxsUmFuZ2VzLnB1c2goLi4uc3ludGhldGljKTtcbiAgcmV0dXJuIGFsbFJhbmdlcztcbn1cbiJdfQ== |
@@ -54,6 +54,11 @@ /** | ||
export interface EmitTransformers { | ||
/** Custom transformers to evaluate before Tsickle .js transformations. */ | ||
beforeTsickle?: Array<ts.TransformerFactory<ts.SourceFile>>; | ||
/** Custom transformers to evaluate before built-in .js transformations. */ | ||
beforeTs?: Array<ts.TransformerFactory<ts.SourceFile>>; | ||
/** Custom transformers to evaluate after built-in .js transformations. */ | ||
afterTs?: Array<ts.TransformerFactory<ts.SourceFile>>; | ||
/** Custom transformers to evaluate after built-in .d.ts transformations. */ | ||
afterDeclarations?: Array<ts.TransformerFactory<ts.Bundle | ts.SourceFile>>; | ||
} | ||
export declare function emitWithTsickle(program: ts.Program, host: TsickleHost, tsHost: ts.CompilerHost, tsOptions: ts.CompilerOptions, targetSourceFile?: ts.SourceFile, writeFile?: ts.WriteFileCallback, cancellationToken?: ts.CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: EmitTransformers): EmitResult; |
@@ -44,3 +44,3 @@ /** | ||
else if (typeof define === "function" && define.amd) { | ||
define("tsickle/src/tsickle", ["require", "exports", "tsickle/src/decorator_downlevel_transformer", "tsickle/src/enum_transformer", "tsickle/src/externs", "tsickle/src/fileoverview_comment_transformer", "tsickle/src/googmodule", "tsickle/src/jsdoc_transformer", "tsickle/src/modules_manifest", "tsickle/src/quoting_transformer", "tsickle/src/transformer_util", "tsickle/src/typescript", "tsickle/src/externs", "tsickle/src/modules_manifest"], factory); | ||
define("tsickle/src/tsickle", ["require", "exports", "tsickle/src/cli_support", "tsickle/src/decorator_downlevel_transformer", "tsickle/src/enum_transformer", "tsickle/src/externs", "tsickle/src/fileoverview_comment_transformer", "tsickle/src/googmodule", "tsickle/src/jsdoc_transformer", "tsickle/src/modules_manifest", "tsickle/src/quoting_transformer", "tsickle/src/transformer_util", "tsickle/src/typescript", "tsickle/src/externs", "tsickle/src/modules_manifest"], factory); | ||
} | ||
@@ -50,2 +50,3 @@ })(function (require, exports) { | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var cli_support_1 = require("tsickle/src/cli_support"); | ||
var decorator_downlevel_transformer_1 = require("tsickle/src/decorator_downlevel_transformer"); | ||
@@ -95,3 +96,16 @@ var enum_transformer_1 = require("tsickle/src/enum_transformer"); | ||
if (customTransformers === void 0) { customTransformers = {}; } | ||
var e_2, _a; | ||
var e_2, _a, e_3, _b; | ||
try { | ||
for (var _c = __values(program.getSourceFiles()), _d = _c.next(); !_d.done; _d = _c.next()) { | ||
var sf = _d.value; | ||
cli_support_1.assertAbsolute(sf.fileName); | ||
} | ||
} | ||
catch (e_2_1) { e_2 = { error: e_2_1 }; } | ||
finally { | ||
try { | ||
if (_d && !_d.done && (_a = _c.return)) _a.call(_c); | ||
} | ||
finally { if (e_2) throw e_2.error; } | ||
} | ||
var tsickleDiagnostics = []; | ||
@@ -117,3 +131,4 @@ var typeChecker = program.getTypeChecker(); | ||
before: __spread((customTransformers.beforeTsickle || []), (tsickleTransformers.before || []).map(function (tf) { return skipTransformForSourceFileIfNeeded(host, tf); }), (customTransformers.beforeTs || [])), | ||
after: __spread((customTransformers.afterTs || []), (tsickleTransformers.after || []).map(function (tf) { return skipTransformForSourceFileIfNeeded(host, tf); })) | ||
after: __spread((customTransformers.afterTs || []), (tsickleTransformers.after || []).map(function (tf) { return skipTransformForSourceFileIfNeeded(host, tf); })), | ||
afterDeclarations: customTransformers.afterDeclarations, | ||
}; | ||
@@ -129,2 +144,3 @@ if (host.transformTypesToClosure) { | ||
var writeFileImpl = function (fileName, content, writeByteOrderMark, onError, sourceFiles) { | ||
cli_support_1.assertAbsolute(fileName); | ||
if (host.addDtsClutzAliases && transformer_util_1.isDtsFileName(fileName) && sourceFiles) { | ||
@@ -142,3 +158,3 @@ // Only bundle emits pass more than one source file for .d.ts writes. Bundle emits however | ||
}; | ||
var _b = program.emit(targetSourceFile, writeFileImpl, cancellationToken, emitOnlyDtsFiles, tsTransformers), tsDiagnostics = _b.diagnostics, emitSkipped = _b.emitSkipped, emittedFiles = _b.emittedFiles; | ||
var _e = program.emit(targetSourceFile, writeFileImpl, cancellationToken, emitOnlyDtsFiles, tsTransformers), tsDiagnostics = _e.diagnostics, emitSkipped = _e.emitSkipped, emittedFiles = _e.emittedFiles; | ||
var externs = {}; | ||
@@ -154,10 +170,5 @@ if (host.transformTypesToClosure) { | ||
} | ||
// fileName might be absolute, which would cause emits different by checkout location or | ||
// non-deterministic output for build systems that use hashed work directories (bazel). | ||
// fileNameToModuleId gives the logical, base path relative ID for the given fileName, which | ||
// avoids this issue. | ||
var moduleId = host.fileNameToModuleId(sourceFile.fileName); | ||
var _c = externs_1.generateExterns(typeChecker, sourceFile, host, /* moduleResolutionHost */ host.host, tsOptions), output = _c.output, diagnostics = _c.diagnostics; | ||
var _f = externs_1.generateExterns(typeChecker, sourceFile, host, /* moduleResolutionHost */ host.host, tsOptions), output = _f.output, diagnostics = _f.diagnostics; | ||
if (output) { | ||
externs[moduleId] = output; | ||
externs[sourceFile.fileName] = output; | ||
} | ||
@@ -169,8 +180,8 @@ if (diagnostics) { | ||
} | ||
catch (e_2_1) { e_2 = { error: e_2_1 }; } | ||
catch (e_3_1) { e_3 = { error: e_3_1 }; } | ||
finally { | ||
try { | ||
if (sourceFiles_1_1 && !sourceFiles_1_1.done && (_a = sourceFiles_1.return)) _a.call(sourceFiles_1); | ||
if (sourceFiles_1_1 && !sourceFiles_1_1.done && (_b = sourceFiles_1.return)) _b.call(sourceFiles_1); | ||
} | ||
finally { if (e_2) throw e_2.error; } | ||
finally { if (e_3) throw e_3.error; } | ||
} | ||
@@ -208,3 +219,3 @@ } | ||
function addClutzAliases(fileName, dtsFileContent, sourceFile, typeChecker, host) { | ||
var e_3, _a; | ||
var e_4, _a; | ||
var moduleSymbol = typeChecker.getSymbolAtLocation(sourceFile); | ||
@@ -261,3 +272,3 @@ var moduleExports = moduleSymbol && typeChecker.getExportsOfModule(moduleSymbol); | ||
} | ||
catch (e_3_1) { e_3 = { error: e_3_1 }; } | ||
catch (e_4_1) { e_4 = { error: e_4_1 }; } | ||
finally { | ||
@@ -267,3 +278,3 @@ try { | ||
} | ||
finally { if (e_3) throw e_3.error; } | ||
finally { if (e_4) throw e_4.error; } | ||
} | ||
@@ -292,2 +303,2 @@ dtsFileContent += 'declare global {\n'; | ||
}); | ||
//# sourceMappingURL=data:application/json;base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b3N0LFxuICAgIGRlbGVnYXRlRmFjdG9yeTogdHMuVHJhbnNmb3JtZXJGYWN0b3J5PHRzLlNvdXJjZUZpbGU+KTogdHMuVHJhbnNmb3JtZXJGYWN0b3J5PHRzLlNvdXJjZUZpbGU+IHtcbiAgcmV0dXJuIChjb250ZXh0OiB0cy5UcmFuc2Zvcm1hdGlvbkNvbnRleHQpID0+IHtcbiAgICBjb25zdCBkZWxlZ2F0ZSA9IGRlbGVnYXRlRmFjdG9yeShjb250ZXh0KTtcbiAgICByZXR1cm4gKHNvdXJjZUZpbGU6IHRzLlNvdXJjZUZpbGUpID0+IHtcbiAgICAgIGlmIChob3N0LnNob3VsZFNraXBUc2lja2xlUHJvY2Vzc2luZyhzb3VyY2VGaWxlLmZpbGVOYW1lKSkge1xuICAgICAgICByZXR1cm4gc291cmNlRmlsZTtcbiAgICAgIH1cbiAgICAgIHJldHVybiBkZWxlZ2F0ZShzb3VyY2VGaWxlKTtcbiAgICB9O1xuICB9O1xufVxuIl19 |
@@ -62,12 +62,7 @@ /** | ||
/** | ||
* Converts a ts.Symbol to a string. | ||
* Other approaches that don't work: | ||
* - TypeChecker.typeToString translates Array as T[]. | ||
* - TypeChecker.symbolToString emits types without their namespace, | ||
* and doesn't let you pass the flag to control that. | ||
* @param useFqn whether to scope the name using its fully qualified name. Closure's template | ||
* arguments are always scoped to the class containing them, where TypeScript's template args | ||
* would be fully qualified. I.e. this flag is false for generic types. | ||
* Converts a ts.Symbol to a string, applying aliases and ensuring symbols are imported. | ||
* @return a string representation of the symbol as a valid Closure type name, or `undefined` if | ||
* the type cannot be expressed (e.g. for anonymous types). | ||
*/ | ||
symbolToString(sym: ts.Symbol, useFqn: boolean): string; | ||
symbolToString(sym: ts.Symbol): string | undefined; | ||
/** | ||
@@ -74,0 +69,0 @@ * Returns the mangled name prefix for symbol, or an empty string if not applicable. |
@@ -17,5 +17,5 @@ /** | ||
import * as ts from 'typescript'; | ||
export { __String, addSyntheticLeadingComment, addSyntheticTrailingComment, AsExpression, AssertionExpression, BinaryExpression, Block, CallExpression, CancellationToken, ClassDeclaration, ClassElement, ClassLikeDeclaration, CommentRange, CompilerHost, CompilerOptions, ConstructorDeclaration, createArrayLiteral, createArrayTypeNode, createArrowFunction, createAssignment, createBinary, createBlock, createCall, createCompilerHost, createElementAccess, createExportSpecifier, createFunctionDeclaration, createFunctionExpression, createFunctionTypeNode, createIdentifier, createIf, createIndexSignature, createKeywordTypeNode, createLiteral, createLiteralTypeNode, createNamedExports, createNodeArray, createNotEmittedStatement, createNull, createObjectLiteral, createParameter, createParen, 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, getCombinedNodeFlags, getLeadingCommentRanges, getLineAndCharacterOfPosition, getMutableClone, getOriginalNode, getPreEmitDiagnostics, getSyntheticLeadingComments, getSyntheticTrailingComments, getTrailingCommentRanges, HeritageClause, Identifier, IfStatement, ImportDeclaration, ImportEqualsDeclaration, ImportSpecifier, IndexKind, InterfaceDeclaration, isArrowFunction, isAssertionExpression, isBinaryExpression, isCallExpression, isExportAssignment, isExportDeclaration, isExpressionStatement, isExternalModule, isExternalModuleReference, isFunctionDeclaration, isIdentifier, isImportDeclaration, isImportEqualsDeclaration, isInterfaceDeclaration, isLiteralExpression, isLiteralTypeNode, isMethodSignature, isModuleBlock, isModuleDeclaration, isNamedImports, isNamespaceExportDeclaration, isNamespaceImport, isNonNullExpression, isObjectLiteralExpression, isParenthesizedExpression, isPropertyAccessExpression, isPropertyAssignment, isPropertyDeclaration, isPropertySignature, isQualifiedName, isSourceFile, isStringLiteral, isTypeReferenceNode, isVariableDeclaration, isVariableStatement, MethodDeclaration, Modifier, ModifierFlags, ModuleBlock, ModuleDeclaration, ModuleKind, ModuleResolutionHost, NamedDeclaration, NamedImports, NamespaceExportDeclaration, 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, SymbolFormatFlags, SymbolWriter, SyntaxKind, SynthesizedComment, sys, TextRange, Token, TransformationContext, Transformer, TransformerFactory, Type, TypeAliasDeclaration, TypeAssertion, TypeChecker, TypeElement, TypeFlags, TypeNode, TypeParameterDeclaration, TypeReference, TypeReferenceNode, UnionType, updateAsExpression, updateBlock, updateConstructor, updateExportDeclaration, updateExpressionWithTypeArguments, updateGetAccessor, updateHeritageClause, updateMethod, updateNamedExports, updateNonNullExpression, updateParameter, updateSetAccessor, updateSourceFileNode, updateTypeAssertion, VariableDeclaration, VariableStatement, visitEachChild, visitFunctionBody, visitLexicalEnvironment, visitNode, Visitor, visitParameterList, WriteFileCallback } from 'typescript'; | ||
export { __String, addSyntheticLeadingComment, addSyntheticTrailingComment, AsExpression, AssertionExpression, BinaryExpression, Block, Bundle, CallExpression, CancellationToken, ClassDeclaration, ClassElement, ClassLikeDeclaration, CommentRange, CompilerHost, CompilerOptions, ConstructorDeclaration, createArrayLiteral, createArrayTypeNode, createArrowFunction, createAssignment, createBinary, createBlock, createCall, createCompilerHost, createElementAccess, createExportSpecifier, createFunctionDeclaration, createFunctionExpression, createFunctionTypeNode, createIdentifier, createIf, createIndexSignature, createKeywordTypeNode, createLiteral, createLiteralTypeNode, createNamedExports, createNodeArray, createNotEmittedStatement, createNull, createObjectLiteral, createParameter, createParen, 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, ExpressionWithTypeArguments, flattenDiagnosticMessageText, forEachChild, formatDiagnostics, FormatDiagnosticsHost, FunctionDeclaration, FunctionLikeDeclaration, GetAccessorDeclaration, getCombinedModifierFlags, getCombinedNodeFlags, getLeadingCommentRanges, getLineAndCharacterOfPosition, getMutableClone, getOriginalNode, getPreEmitDiagnostics, getSyntheticLeadingComments, getSyntheticTrailingComments, getTrailingCommentRanges, HeritageClause, Identifier, IfStatement, ImportDeclaration, ImportEqualsDeclaration, ImportSpecifier, IndexKind, InterfaceDeclaration, isArrowFunction, isAssertionExpression, isBinaryExpression, isCallExpression, isExportAssignment, isExportDeclaration, isExpressionStatement, isExternalModule, isExternalModuleReference, isFunctionDeclaration, isIdentifier, isImportDeclaration, isImportEqualsDeclaration, isInterfaceDeclaration, isLiteralExpression, isLiteralTypeNode, isMethodSignature, isModuleBlock, isModuleDeclaration, isNamedImports, isNamespaceExportDeclaration, isNamespaceImport, isNonNullExpression, isObjectLiteralExpression, isParenthesizedExpression, isPropertyAccessExpression, isPropertyAssignment, isPropertyDeclaration, isPropertySignature, isQualifiedName, isSourceFile, isStringLiteral, isTypeReferenceNode, isVariableDeclaration, isVariableStatement, MethodDeclaration, Modifier, ModifierFlags, ModuleBlock, ModuleDeclaration, ModuleKind, ModuleResolutionHost, NamedDeclaration, NamedImports, NamespaceExportDeclaration, Node, NodeArray, NodeBuilderFlags, 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, SymbolFormatFlags, SyntaxKind, SynthesizedComment, sys, TextRange, ThisExpression, Token, TransformationContext, Transformer, TransformerFactory, Type, TypeAliasDeclaration, TypeAssertion, TypeChecker, TypeElement, TypeFlags, TypeNode, TypeParameterDeclaration, TypeReference, TypeReferenceNode, UnionType, updateAsExpression, updateBlock, updateConstructor, updateExportDeclaration, updateExpressionWithTypeArguments, updateGetAccessor, updateHeritageClause, updateMethod, updateNamedExports, updateNonNullExpression, updateParameter, updatePropertyAccess, updateSetAccessor, updateSourceFileNode, updateTypeAssertion, 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; |
@@ -140,2 +140,3 @@ /** | ||
exports.ModuleKind = typescript_1.ModuleKind; | ||
exports.NodeBuilderFlags = typescript_1.NodeBuilderFlags; | ||
exports.NodeFlags = typescript_1.NodeFlags; | ||
@@ -172,2 +173,3 @@ exports.ObjectFlags = typescript_1.ObjectFlags; | ||
exports.updateParameter = typescript_1.updateParameter; | ||
exports.updatePropertyAccess = typescript_1.updatePropertyAccess; | ||
exports.updateSetAccessor = typescript_1.updateSetAccessor; | ||
@@ -201,2 +203,2 @@ exports.updateSourceFileNode = typescript_1.updateSourceFileNode; | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXNjcmlwdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy90eXBlc2NyaXB0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztJQUVIOzs7Ozs7T0FNRztJQUVILCtFQUErRTtJQUUvRSwrQkFBaUM7SUFLakMseUNBQWdxSTtJQUE5b0ksa0RBQUEsMEJBQTBCLENBQUE7SUFBRSxtREFBQSwyQkFBMkIsQ0FBQTtJQUE0TiwwQ0FBQSxrQkFBa0IsQ0FBQTtJQUFFLDJDQUFBLG1CQUFtQixDQUFBO0lBQUUsMkNBQUEsbUJBQW1CLENBQUE7SUFBRSx3Q0FBQSxnQkFBZ0IsQ0FBQTtJQUFFLG9DQUFBLFlBQVksQ0FBQTtJQUFFLG1DQUFBLFdBQVcsQ0FBQTtJQUFFLGtDQUFBLFVBQVUsQ0FBQTtJQUFFLDBDQUFBLGtCQUFrQixDQUFBO0lBQUUsMkNBQUEsbUJBQW1CLENBQUE7SUFBRSw2Q0FBQSxxQkFBcUIsQ0FBQTtJQUFFLGlEQUFBLHlCQUF5QixDQUFBO0lBQUUsZ0RBQUEsd0JBQXdCLENBQUE7SUFBRSw4Q0FBQSxzQkFBc0IsQ0FBQTtJQUFFLHdDQUFBLGdCQUFnQixDQUFBO0lBQUUsZ0NBQUEsUUFBUSxDQUFBO0lBQUUsNENBQUEsb0JBQW9CLENBQUE7SUFBRSw2Q0FBQSxxQkFBcUIsQ0FBQTtJQUFFLHFDQ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JheTx0cy5Nb2RpZmllcj58dW5kZWZpbmVkLCBuYW1lOiBzdHJpbmd8dHMuUHJvcGVydHlOYW1lLFxuICAgICAgICAgICAgICAgICAgICBxdWVzdGlvblRva2VuOiB0cy5RdWVzdGlvblRva2VufHVuZGVmaW5lZCwgdHlwZTogdHMuVHlwZU5vZGV8dW5kZWZpbmVkLFxuICAgICAgICAgICAgICAgICAgICBpbml0aWFsaXplcjogdHMuRXhwcmVzc2lvbnx1bmRlZmluZWQpOiB0cy5Qcm9wZXJ0eURlY2xhcmF0aW9uID0+IHtcbiAgICByZXR1cm4gdXBkYXRlUHJvcGVydHkyNChcbiAgICAgICAgICAgICAgIG5vZGUgYXMgYW55IGFzIHRzMjQuUHJvcGVydHlEZWNsYXJhdGlvbiwgZGVjb3JhdG9ycyBhcyBhbnkgYXMgdHMyNC5EZWNvcmF0b3JbXSxcbiAgICAgICAgICAgICAgIG1vZGlmaWVycyBhcyBhbnksIG5hbWUgYXMgYW55LCB0eXBlIGFzIGFueSzCoGluaXRpYWxpemVyIGFzIGFueSkgYXMgYW55O1xuICB9O1xufVxuIl19 |
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
1210861
12206