• Home
  • Raw
  • Download

Lines Matching refs:node

56     const visitor: ts.Visitor = node => {
58 if (ts.isImportDeclaration(node) || (ts.isExportDeclaration(node) && node.moduleSpecifier)) {
59 … const moduleRequest: string = (node.moduleSpecifier as ts.StringLiteral).text.replace(/'|"/g, '');
63 KitInfo.processKitInfo(moduleRequest, kitDefs.symbols as KitSymbols, node);
70 pos: node.getStart()
75 return node;
78 return (node: ts.SourceFile) => {
79 compilingEtsOrTsFiles.push(path.normalize(node.fileName));
81 KitInfo.init(node, context);
84 if (ts.hasTsNoCheckOrTsIgnoreFlag(node)) {
85 hasTsNoCheckOrTsIgnoreFiles.push(path.normalize(node.fileName));
87 return ts.visitEachChild(node, visitor, context); // this node used for [writeFile]
91 … ts.visitEachChild(ts.getTypeExportImportAndConstEnumTransformer(context)(node), visitor, context);
93 return node; // this node not used for [writeFile]
96 return ts.visitEachChild(node, visitor, context);
203 static init(node: ts.SourceFile, context: ts.TransformationContext): void {
206 this.currentSourcefile = node.fileName;
207 if (/\.ts$/.test(node.fileName)) {
213 if (projectConfig.processTs === true && !ts.hasTsNoCheckOrTsIgnoreFlag(node)) {
219 kitTransformLog.sourceFile = node;
242 static needSkipTypeSymbolOfNode(node: ts.Node): boolean {
250 switch(node.kind) {
253 … const importClause = ts.isImportClause(node) ? node : (node as ts.ImportDeclaration).importClause;
257 !resolver.isReferencedAliasDeclaration(importClause) && resolver.isReferenced(node)) {
264 isTypeSymbol = (node as ts.ImportSpecifier).isTypeOnly;
265 if (!resolver.isReferencedAliasDeclaration(node) && resolver.isReferenced(node)) {
271 isTypeSymbol = (node as ts.ExportDeclaration).isTypeOnly;
275 isTypeSymbol = (node as ts.ExportSpecifier).isTypeOnly;
276 if (!resolver.isValueAliasDeclaration(node)) {
435 const node: ts.ImportDeclaration = this.getKitNode() as ts.ImportDeclaration; constant
446 …(specifier.getOriginElementNode() as ts.ImportSpecifier).isTypeOnly : node.importClause.isTypeOnly,
457 node.importClause!.isTypeOnly,
485 const node: ts.ExportDeclaration = this.getKitNode() as ts.ExportDeclaration; constant
500 node.isTypeOnly,
503 node.assertClause
529 const node: ts.ExportDeclaration = this.getKitNode() as ts.ExportDeclaration; constant
534 node.isTypeOnly,
537 node.assertClause