Home
last modified time | relevance | path

Searched refs:ts (Results 1 – 16 of 16) sorted by relevance

/interface/sdk-js/build-tools/
Ddelete_systemapi_plugin.js17 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/
Dcheck_hump.js17 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…
Dapi_check_plugin.js18 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)) {
Dcheck_syscap.js17 const ts = require(path.resolve(__dirname, "../node_modules/typescript")); constant
27 const program = ts.createProgram({ rootNames: fileName, option: {} });
Dcheck_deprecated.js17 const ts = require(path.resolve(__dirname, "../node_modules/typescript")); constant
Dcheck_spelling.js18 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/
Dcollect_import_name.js19 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 …]
Dutil.js19 const ts = require('typescript'); constant
Dformat.js18 const ts = require('typescript') constant
DcollectApi.js18 const ts = require('typescript'); constant
/interface/sdk-js/
Dinterface_config.gni15 "//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",
DREADME_zh.md7 JavaScript API 公共仓,用来提交 API d.ts 声明文件。
DREADME_en.md7 JavaScript API public repository which is used to submit API d.ts Declaration File.
DBUILD.gn59 sources = [ "api/bundle/bundleStatusCallback.d.ts" ]
/interface/sdk-js/build-tools/api_check_plugin/test/
DmdFiles.txt2 Z:\root\interface\sdk-js\api\xxx.d.ts
/interface/sdk-js/build-tools/api_check_plugin/plugin/
Ddictionaries.txt63696 ts