Searched refs:ts (Results 1 – 16 of 16) sorted by relevance
/interface/sdk-js/build-tools/ |
D | delete_systemapi_plugin.js | 17 const ts = require('typescript'); constant 36 if (/\.json/.test(url) || /index\-full\.d\.ts/.test(url) || /common\.d\.ts/.test(url)) { 42 ts.transpileModule(content, { 44 "target": ts.ScriptTarget.ES2017 100 const printer = ts.createPrinter({ newLine: ts.NewLineKind.LineFeed }); 101 let result = printer.printNode(ts.EmitHint.Unspecified, node, sourceFile); 110 if (ts.isSourceFile(node) && node.statements) { 112 if (!ts.isImportDeclaration(stat)) { 113 ts.visitEachChild(stat, collectAllNodes, context); 119 if (ts.isIdentifier(node)) { [all …]
|
/interface/sdk-js/build-tools/api_check_plugin/src/ |
D | check_hump.js | 17 const ts = require(path.resolve(__dirname, "../node_modules/typescript")); constant 24 if (node.parent && !ts.isImportClause(node.parent) && !ts.isImportSpecifier(node.parent) && 25 (ts.isInterfaceDeclaration(node.parent) || ts.isClassDeclaration(node.parent) || 26 ts.isEnumDeclaration(node.parent))) { 30 …} else if (!node.parent || (!ts.isImportClause(node.parent) && !ts.isImportSpecifier(node.parent) … 31 !ts.isTypeReferenceNode(node.parent) && !ts.isQualifiedName(node.parent) && 32 !ts.isTypeParameterDeclaration(node.parent))) { 47 if (ts.isModuleDeclaration(statement) && statement.name && ts.isIdentifier(statement.name)) { 50 …if (ts.isExportAssignment(statement) && statement.expression && ts.isIdentifier(statement.expressi…
|
D | api_check_plugin.js | 18 const ts = require(path.resolve(__dirname, "../node_modules/typescript")); constant 46 ts.transpileModule(content, { 48 "target": ts.ScriptTarget.ES2017 67 if (!ts.isImportDeclaration) { 82 if (ts.isIdentifier(node)) {
|
D | check_syscap.js | 17 const ts = require(path.resolve(__dirname, "../node_modules/typescript")); constant 27 const program = ts.createProgram({ rootNames: fileName, option: {} });
|
D | check_deprecated.js | 17 const ts = require(path.resolve(__dirname, "../node_modules/typescript")); constant
|
D | check_spelling.js | 18 const ts = require(path.resolve(__dirname, "../node_modules/typescript")); constant 27 if (ts.isIdentifier(node) && node.escapedText) {
|
/interface/sdk-js/build-tools/collect_application_api/src/ |
D | collect_import_name.js | 19 const ts = require('typescript'); constant 38 if (/\.ets/.test(path.basename(url)) || /\.ts/.test(path.basename(url))) { 41 ts.transpileModule(content, { 43 "target": ts.ScriptTarget.ES2017 57 if (ts.isImportDeclaration(item)) { 66 … if (ts.isPropertyAccessExpression(node) && node.expression && ts.isIdentifier(node.name)) { 67 …if (ts.isCallExpression(node.expression) && ts.isPropertyAccessExpression(node.expression.expressi… 73 …} else if (ts.isPropertyAccessExpression(node.expression) && ts.isIdentifier(node.expression.expre… 80 } else if (ts.isIdentifier(node.expression) && ts.isCallExpression(node.parent)) { 83 if (ts.isStringLiteral(argument)) { [all …]
|
D | util.js | 19 const ts = require('typescript'); constant
|
D | format.js | 18 const ts = require('typescript') constant
|
D | collectApi.js | 18 const ts = require('typescript'); constant
|
/interface/sdk-js/ |
D | interface_config.gni | 15 "//interface/sdk-js/api/@system.app.d.ts", 16 "//interface/sdk-js/api/@system.configuration.d.ts", 17 "//interface/sdk-js/api/@system.file.d.ts", 18 "//interface/sdk-js/api/@system.mediaquery.d.ts", 19 "//interface/sdk-js/api/@system.prompt.d.ts", 20 "//interface/sdk-js/api/@system.router.d.ts",
|
D | README_zh.md | 7 JavaScript API 公共仓,用来提交 API d.ts 声明文件。
|
D | README_en.md | 7 JavaScript API public repository which is used to submit API d.ts Declaration File.
|
D | BUILD.gn | 59 sources = [ "api/bundle/bundleStatusCallback.d.ts" ]
|
/interface/sdk-js/build-tools/api_check_plugin/test/ |
D | mdFiles.txt | 2 Z:\root\interface\sdk-js\api\xxx.d.ts
|
/interface/sdk-js/build-tools/api_check_plugin/plugin/ |
D | dictionaries.txt | 63696 ts
|