diff --git a/Source/Example/Output/Namespace.ts b/Source/Example/Output/Namespace.ts index 7a51d168..a015a16f 100644 --- a/Source/Example/Output/Namespace.ts +++ b/Source/Example/Output/Namespace.ts @@ -1,6 +1,4 @@ namespace MyNamespace { - ; - ; export const z = (5 + 3) * 2; diff --git a/Source/Example/Output/Predefined.ts b/Source/Example/Output/Predefined.ts index ca1a7346..0f8fce08 100644 --- a/Source/Example/Output/Predefined.ts +++ b/Source/Example/Output/Predefined.ts @@ -6,11 +6,5 @@ import * as fs from "fs"; import * as path from "path"; const root = path.dirname(path.dirname(__dirname)); -; -; -; const platform = process.platform; -; -; -; console.log(path.join(root, ".build", "node", `v${/^target="(.*)"$/m.exec(fs.readFileSync(path.join(root, "remote", ".npmrc"), "utf8"))![1]}`, `${platform}-${process.arch}`, platform === "win32" ? "node.exe" : "node")); diff --git a/Source/Function/Output/Transformer/Visit.ts b/Source/Function/Output/Transformer/Visit.ts index e6d31d92..40f94ae0 100644 --- a/Source/Function/Output/Transformer/Visit.ts +++ b/Source/Function/Output/Transformer/Visit.ts @@ -19,6 +19,13 @@ export const Fn = ((Usage, Initializer) => let NodeCurrent = Node; + if (ts.isEmptyStatement(NodeCurrent)) { + return { + Node: factory.createNotEmittedStatement(NodeCurrent), + Use: true, + }; + } + if (ts.isVariableStatement(NodeCurrent)) { const Declaration = NodeCurrent.declarationList.declarations; @@ -53,59 +60,52 @@ export const Fn = ((Usage, Initializer) => } } - // Handle identifiers if (isIdentifier(NodeCurrent)) { try { - const nameNode = NodeCurrent.text; + const NodeName = NodeCurrent.text; - const usageNode = Usage.get(nameNode); + const NodeUsage = Usage.get(NodeName); - const initializerNode = Get(nameNode, Initializer); + const NodeInitializer = Get(NodeName, Initializer); - if (initializerNode && usageNode === 1) { - // Check if we're in a property access expression - const parent = NodeCurrent.parent; + if (NodeInitializer && NodeUsage === 1) { + const NodeParent = NodeCurrent.parent; if ( - isPropertyAccessExpression(parent) && - parent.name === NodeCurrent + isPropertyAccessExpression(NodeParent) && + NodeParent.name === NodeCurrent ) { - // If we're the name part of a property access, keep as identifier return { Node: NodeCurrent, Use: false, }; } - // For identifiers, create new identifier - if (isIdentifier(initializerNode)) { + if (isIdentifier(NodeInitializer)) { return { Node: factory.createIdentifier( - initializerNode.text, + NodeInitializer.text, ), Use: true, }; } - // For expressions, preserve the node structure - const updatedNode = ts.transform(initializerNode, [ - (_Context) => (node) => node, - ]).transformed[0]; - return { - Node: updatedNode as Node, + Node: ts.transform(NodeInitializer, [ + (_Context) => (node) => node, + ]).transformed[0] as Node, Use: true, }; } - } catch (error) { + } catch (_Error) { console.error( "Error during identifier replacement:", - error, + _Error, ); } } - const { Node: NodeProcessed, Use: UseChildren } = (( + const { Node: NodeOutput, Use: UseChildren } = (( parentNode: Node, ): { Node: Node; Use: boolean } => { let Use = false; @@ -113,11 +113,11 @@ export const Fn = ((Usage, Initializer) => const NodeNew = visitEachChild( parentNode, (child) => { - const result = Eliminate(child); + const Output = Eliminate(child); - Use = Use || result.Use; + Use = Use || Output.Use; - return result.Node; + return Output.Node; }, Context, ); @@ -126,7 +126,7 @@ export const Fn = ((Usage, Initializer) => })(NodeCurrent); return { - Node: NodeProcessed, + Node: NodeOutput, Use: Use || UseChildren, }; }; @@ -136,13 +136,13 @@ export const Fn = ((Usage, Initializer) => let Use = true; while (Use) { - const Processed = Eliminate(NodeCurrent); + const Output = Eliminate(NodeCurrent); - if (!Processed.Use) { + if (!Output.Use) { Use = false; } - NodeCurrent = Processed.Node; + NodeCurrent = Output.Node; } return NodeCurrent; diff --git a/Target/Example/Input/Decorator.js b/Target/Example/Input/Decorator.js deleted file mode 100644 index ff73f1e1..00000000 --- a/Target/Example/Input/Decorator.js +++ /dev/null @@ -1 +0,0 @@ -var l=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var u=(b,s,d,t)=>{for(var e=t>1?void 0:t?a(s,d):s,o=b.length-1,r;o>=0;o--)(r=b[o])&&(e=(t?r(s,d,e):r(e))||e);return t&&e&&l(s,d,e),e};class c{x=5;get doubled(){return this.x*2}}u([observable],c.prototype,"x",2),u([computed],c.prototype,"doubled",1); diff --git a/Target/Example/Input/Namespace.js b/Target/Example/Input/Namespace.js deleted file mode 100644 index 59e54fce..00000000 --- a/Target/Example/Input/Namespace.js +++ /dev/null @@ -1 +0,0 @@ -var t;(o=>{o.x=5;const x=8;o.z=16})(t||={}); diff --git a/Target/Example/Input/Predefined.js b/Target/Example/Input/Predefined.js deleted file mode 100644 index 4ddf682d..00000000 --- a/Target/Example/Input/Predefined.js +++ /dev/null @@ -1 +0,0 @@ -import*as r from"fs";import*as o from"path";const n=o.dirname(o.dirname(__dirname)),t=o.join(n,"remote",".npmrc"),c=r.readFileSync(t,"utf8"),s=/^target="(.*)"$/m.exec(c)[1],e=process.platform,a=process.arch,m=e==="win32"?"node.exe":"node",i=o.join(n,".build","node",`v${s}`,`${e}-${a}`,m);console.log(i); diff --git a/Target/Example/Output/Decorator.js b/Target/Example/Output/Decorator.js deleted file mode 100644 index ff73f1e1..00000000 --- a/Target/Example/Output/Decorator.js +++ /dev/null @@ -1 +0,0 @@ -var l=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var u=(b,s,d,t)=>{for(var e=t>1?void 0:t?a(s,d):s,o=b.length-1,r;o>=0;o--)(r=b[o])&&(e=(t?r(s,d,e):r(e))||e);return t&&e&&l(s,d,e),e};class c{x=5;get doubled(){return this.x*2}}u([observable],c.prototype,"x",2),u([computed],c.prototype,"doubled",1); diff --git a/Target/Example/Output/Namespace.js b/Target/Example/Output/Namespace.js deleted file mode 100644 index 98a3723f..00000000 --- a/Target/Example/Output/Namespace.js +++ /dev/null @@ -1 +0,0 @@ -var o;(n=>n.z=16)(o||={}); diff --git a/Target/Example/Output/Predefined.js b/Target/Example/Output/Predefined.js index ef5232cb..4ddf682d 100644 --- a/Target/Example/Output/Predefined.js +++ b/Target/Example/Output/Predefined.js @@ -1 +1 @@ -import*as n from"fs";import*as o from"path";const e=o.dirname(o.dirname(__dirname)),r=process.platform;console.log(o.join(e,".build","node",`v${/^target="(.*)"$/m.exec(n.readFileSync(o.join(e,"remote",".npmrc"),"utf8"))[1]}`,`${r}-${process.arch}`,r==="win32"?"node.exe":"node")); +import*as r from"fs";import*as o from"path";const n=o.dirname(o.dirname(__dirname)),t=o.join(n,"remote",".npmrc"),c=r.readFileSync(t,"utf8"),s=/^target="(.*)"$/m.exec(c)[1],e=process.platform,a=process.arch,m=e==="win32"?"node.exe":"node",i=o.join(n,".build","node",`v${s}`,`${e}-${a}`,m);console.log(i); diff --git a/Target/Function/Output.d.ts b/Target/Function/Output.d.ts deleted file mode 100644 index 919e8239..00000000 --- a/Target/Function/Output.d.ts +++ /dev/null @@ -1,602 +0,0 @@ -import type Interface from "@Interface/Output.js"; -import type { SourceFile } from "typescript"; -/** - * @module Output - * - */ -declare const _default: Interface; -export default _default; -export declare const ts: { - default: typeof import("typescript"); - tokenToString(t: import("typescript").SyntaxKind): string | undefined; - getPositionOfLineAndCharacter(sourceFile: import("typescript").SourceFileLike, line: number, character: number): number; - getLineAndCharacterOfPosition(sourceFile: import("typescript").SourceFileLike, position: number): import("typescript").LineAndCharacter; - isWhiteSpaceLike(ch: number): boolean; - isWhiteSpaceSingleLine(ch: number): boolean; - isLineBreak(ch: number): boolean; - couldStartTrivia(text: string, pos: number): boolean; - forEachLeadingCommentRange(text: string, pos: number, cb: (pos: number, end: number, kind: import("typescript").CommentKind, hasTrailingNewLine: boolean) => U): U | undefined; - forEachLeadingCommentRange(text: string, pos: number, cb: (pos: number, end: number, kind: import("typescript").CommentKind, hasTrailingNewLine: boolean, state: T) => U, state: T): U | undefined; - forEachTrailingCommentRange(text: string, pos: number, cb: (pos: number, end: number, kind: import("typescript").CommentKind, hasTrailingNewLine: boolean) => U): U | undefined; - forEachTrailingCommentRange(text: string, pos: number, cb: (pos: number, end: number, kind: import("typescript").CommentKind, hasTrailingNewLine: boolean, state: T) => U, state: T): U | undefined; - reduceEachLeadingCommentRange(text: string, pos: number, cb: (pos: number, end: number, kind: import("typescript").CommentKind, hasTrailingNewLine: boolean, state: T) => U, state: T, initial: U): U | undefined; - reduceEachTrailingCommentRange(text: string, pos: number, cb: (pos: number, end: number, kind: import("typescript").CommentKind, hasTrailingNewLine: boolean, state: T) => U, state: T, initial: U): U | undefined; - getLeadingCommentRanges(text: string, pos: number): import("typescript").CommentRange[] | undefined; - getTrailingCommentRanges(text: string, pos: number): import("typescript").CommentRange[] | undefined; - getShebang(text: string): string | undefined; - isIdentifierStart(ch: number, languageVersion: import("typescript").ScriptTarget | undefined): boolean; - isIdentifierPart(ch: number, languageVersion: import("typescript").ScriptTarget | undefined, identifierVariant?: import("typescript").LanguageVariant): boolean; - createScanner(languageVersion: import("typescript").ScriptTarget, skipTrivia: boolean, languageVariant?: import("typescript").LanguageVariant, textInitial?: string, onError?: import("typescript").ErrorCallback, start?: number, length?: number): import("typescript").Scanner; - isExternalModuleNameRelative(moduleName: string): boolean; - sortAndDeduplicateDiagnostics(diagnostics: readonly T[]): import("typescript").SortedReadonlyArray; - getDefaultLibFileName(options: import("typescript").CompilerOptions): string; - textSpanEnd(span: import("typescript").TextSpan): number; - textSpanIsEmpty(span: import("typescript").TextSpan): boolean; - textSpanContainsPosition(span: import("typescript").TextSpan, position: number): boolean; - textSpanContainsTextSpan(span: import("typescript").TextSpan, other: import("typescript").TextSpan): boolean; - textSpanOverlapsWith(span: import("typescript").TextSpan, other: import("typescript").TextSpan): boolean; - textSpanOverlap(span1: import("typescript").TextSpan, span2: import("typescript").TextSpan): import("typescript").TextSpan | undefined; - textSpanIntersectsWithTextSpan(span: import("typescript").TextSpan, other: import("typescript").TextSpan): boolean; - textSpanIntersectsWith(span: import("typescript").TextSpan, start: number, length: number): boolean; - decodedTextSpanIntersectsWith(start1: number, length1: number, start2: number, length2: number): boolean; - textSpanIntersectsWithPosition(span: import("typescript").TextSpan, position: number): boolean; - textSpanIntersection(span1: import("typescript").TextSpan, span2: import("typescript").TextSpan): import("typescript").TextSpan | undefined; - createTextSpan(start: number, length: number): import("typescript").TextSpan; - createTextSpanFromBounds(start: number, end: number): import("typescript").TextSpan; - textChangeRangeNewSpan(range: import("typescript").TextChangeRange): import("typescript").TextSpan; - textChangeRangeIsUnchanged(range: import("typescript").TextChangeRange): boolean; - createTextChangeRange(span: import("typescript").TextSpan, newLength: number): import("typescript").TextChangeRange; - collapseTextChangeRangesAcrossMultipleVersions(changes: readonly import("typescript").TextChangeRange[]): import("typescript").TextChangeRange; - getTypeParameterOwner(d: import("typescript").Declaration): import("typescript").Declaration | undefined; - isParameterPropertyDeclaration(node: import("typescript").Node, parent: import("typescript").Node): node is import("typescript").ParameterPropertyDeclaration; - isEmptyBindingPattern(node: import("typescript").BindingName): node is import("typescript").BindingPattern; - isEmptyBindingElement(node: import("typescript").BindingElement | import("typescript").ArrayBindingElement): boolean; - walkUpBindingElementsAndPatterns(binding: import("typescript").BindingElement): import("typescript").VariableDeclaration | import("typescript").ParameterDeclaration; - getCombinedModifierFlags(node: import("typescript").Declaration): import("typescript").ModifierFlags; - getCombinedNodeFlags(node: import("typescript").Node): import("typescript").NodeFlags; - validateLocaleAndSetLanguage(locale: string, sys: { - getExecutingFilePath(): string; - resolvePath(path: string): string; - fileExists(fileName: string): boolean; - readFile(fileName: string): string | undefined; - }, errors?: import("typescript").Diagnostic[]): void; - getOriginalNode(node: import("typescript").Node): import("typescript").Node; - getOriginalNode(node: import("typescript").Node, nodeTest: (node: import("typescript").Node) => node is T): T; - getOriginalNode(node: import("typescript").Node | undefined): import("typescript").Node | undefined; - getOriginalNode(node: import("typescript").Node | undefined, nodeTest: (node: import("typescript").Node) => node is T): T | undefined; - findAncestor(node: import("typescript").Node | undefined, callback: (element: import("typescript").Node) => element is T): T | undefined; - findAncestor(node: import("typescript").Node | undefined, callback: (element: import("typescript").Node) => boolean | "quit"): import("typescript").Node | undefined; - isParseTreeNode(node: import("typescript").Node): boolean; - getParseTreeNode(node: import("typescript").Node | undefined): import("typescript").Node | undefined; - getParseTreeNode(node: T | undefined, nodeTest?: (node: import("typescript").Node) => node is T): T | undefined; - escapeLeadingUnderscores(identifier: string): import("typescript").__String; - unescapeLeadingUnderscores(identifier: import("typescript").__String): string; - idText(identifierOrPrivateName: import("typescript").Identifier | import("typescript").PrivateIdentifier): string; - identifierToKeywordKind(node: import("typescript").Identifier): import("typescript").KeywordSyntaxKind | undefined; - symbolName(symbol: import("typescript").Symbol): string; - getNameOfJSDocTypedef(declaration: import("typescript").JSDocTypedefTag): import("typescript").Identifier | import("typescript").PrivateIdentifier | undefined; - getNameOfDeclaration(declaration: import("typescript").Declaration | import("typescript").Expression | undefined): import("typescript").DeclarationName | undefined; - getDecorators(node: import("typescript").HasDecorators): readonly import("typescript").Decorator[] | undefined; - getModifiers(node: import("typescript").HasModifiers): readonly import("typescript").Modifier[] | undefined; - getJSDocParameterTags(param: import("typescript").ParameterDeclaration): readonly import("typescript").JSDocParameterTag[]; - getJSDocTypeParameterTags(param: import("typescript").TypeParameterDeclaration): readonly import("typescript").JSDocTemplateTag[]; - hasJSDocParameterTags(node: import("typescript").FunctionLikeDeclaration | import("typescript").SignatureDeclaration): boolean; - getJSDocAugmentsTag(node: import("typescript").Node): import("typescript").JSDocAugmentsTag | undefined; - getJSDocImplementsTags(node: import("typescript").Node): readonly import("typescript").JSDocImplementsTag[]; - getJSDocClassTag(node: import("typescript").Node): import("typescript").JSDocClassTag | undefined; - getJSDocPublicTag(node: import("typescript").Node): import("typescript").JSDocPublicTag | undefined; - getJSDocPrivateTag(node: import("typescript").Node): import("typescript").JSDocPrivateTag | undefined; - getJSDocProtectedTag(node: import("typescript").Node): import("typescript").JSDocProtectedTag | undefined; - getJSDocReadonlyTag(node: import("typescript").Node): import("typescript").JSDocReadonlyTag | undefined; - getJSDocOverrideTagNoCache(node: import("typescript").Node): import("typescript").JSDocOverrideTag | undefined; - getJSDocDeprecatedTag(node: import("typescript").Node): import("typescript").JSDocDeprecatedTag | undefined; - getJSDocEnumTag(node: import("typescript").Node): import("typescript").JSDocEnumTag | undefined; - getJSDocThisTag(node: import("typescript").Node): import("typescript").JSDocThisTag | undefined; - getJSDocReturnTag(node: import("typescript").Node): import("typescript").JSDocReturnTag | undefined; - getJSDocTemplateTag(node: import("typescript").Node): import("typescript").JSDocTemplateTag | undefined; - getJSDocSatisfiesTag(node: import("typescript").Node): import("typescript").JSDocSatisfiesTag | undefined; - getJSDocTypeTag(node: import("typescript").Node): import("typescript").JSDocTypeTag | undefined; - getJSDocType(node: import("typescript").Node): import("typescript").TypeNode | undefined; - getJSDocReturnType(node: import("typescript").Node): import("typescript").TypeNode | undefined; - getJSDocTags(node: import("typescript").Node): readonly import("typescript").JSDocTag[]; - getAllJSDocTags(node: import("typescript").Node, predicate: (tag: import("typescript").JSDocTag) => tag is T): readonly T[]; - getAllJSDocTagsOfKind(node: import("typescript").Node, kind: import("typescript").SyntaxKind): readonly import("typescript").JSDocTag[]; - getTextOfJSDocComment(comment?: string | import("typescript").NodeArray): string | undefined; - getEffectiveTypeParameterDeclarations(node: import("typescript").DeclarationWithTypeParameters): readonly import("typescript").TypeParameterDeclaration[]; - getEffectiveConstraintOfTypeParameter(node: import("typescript").TypeParameterDeclaration): import("typescript").TypeNode | undefined; - isMemberName(node: import("typescript").Node): node is import("typescript").MemberName; - isPropertyAccessChain(node: import("typescript").Node): node is import("typescript").PropertyAccessChain; - isElementAccessChain(node: import("typescript").Node): node is import("typescript").ElementAccessChain; - isCallChain(node: import("typescript").Node): node is import("typescript").CallChain; - isOptionalChain(node: import("typescript").Node): node is import("typescript").PropertyAccessChain | import("typescript").ElementAccessChain | import("typescript").CallChain | import("typescript").NonNullChain; - isNullishCoalesce(node: import("typescript").Node): boolean; - isConstTypeReference(node: import("typescript").Node): boolean; - skipPartiallyEmittedExpressions(node: import("typescript").Expression): import("typescript").Expression; - skipPartiallyEmittedExpressions(node: import("typescript").Node): import("typescript").Node; - isNonNullChain(node: import("typescript").Node): node is import("typescript").NonNullChain; - isBreakOrContinueStatement(node: import("typescript").Node): node is import("typescript").BreakOrContinueStatement; - isNamedExportBindings(node: import("typescript").Node): node is import("typescript").NamedExportBindings; - isJSDocPropertyLikeTag(node: import("typescript").Node): node is import("typescript").JSDocPropertyLikeTag; - isTokenKind(kind: import("typescript").SyntaxKind): boolean; - isToken(n: import("typescript").Node): boolean; - isLiteralExpression(node: import("typescript").Node): node is import("typescript").LiteralExpression; - isTemplateLiteralToken(node: import("typescript").Node): node is import("typescript").TemplateLiteralToken; - isTemplateMiddleOrTemplateTail(node: import("typescript").Node): node is import("typescript").TemplateMiddle | import("typescript").TemplateTail; - isImportOrExportSpecifier(node: import("typescript").Node): node is import("typescript").ImportSpecifier | import("typescript").ExportSpecifier; - isTypeOnlyImportDeclaration(node: import("typescript").Node): node is import("typescript").TypeOnlyImportDeclaration; - isTypeOnlyExportDeclaration(node: import("typescript").Node): node is import("typescript").TypeOnlyExportDeclaration; - isTypeOnlyImportOrExportDeclaration(node: import("typescript").Node): node is import("typescript").TypeOnlyAliasDeclaration; - isStringTextContainingNode(node: import("typescript").Node): node is import("typescript").StringLiteral | import("typescript").TemplateLiteralToken; - isImportAttributeName(node: import("typescript").Node): node is import("typescript").ImportAttributeName; - isModifier(node: import("typescript").Node): node is import("typescript").Modifier; - isEntityName(node: import("typescript").Node): node is import("typescript").EntityName; - isPropertyName(node: import("typescript").Node): node is import("typescript").PropertyName; - isBindingName(node: import("typescript").Node): node is import("typescript").BindingName; - isFunctionLike(node: import("typescript").Node | undefined): node is import("typescript").SignatureDeclaration; - isClassElement(node: import("typescript").Node): node is import("typescript").ClassElement; - isClassLike(node: import("typescript").Node): node is import("typescript").ClassLikeDeclaration; - isAccessor(node: import("typescript").Node): node is import("typescript").AccessorDeclaration; - isAutoAccessorPropertyDeclaration(node: import("typescript").Node): node is import("typescript").AutoAccessorPropertyDeclaration; - isModifierLike(node: import("typescript").Node): node is import("typescript").ModifierLike; - isTypeElement(node: import("typescript").Node): node is import("typescript").TypeElement; - isClassOrTypeElement(node: import("typescript").Node): node is import("typescript").ClassElement | import("typescript").TypeElement; - isObjectLiteralElementLike(node: import("typescript").Node): node is import("typescript").ObjectLiteralElementLike; - isTypeNode(node: import("typescript").Node): node is import("typescript").TypeNode; - isFunctionOrConstructorTypeNode(node: import("typescript").Node): node is import("typescript").FunctionTypeNode | import("typescript").ConstructorTypeNode; - isArrayBindingElement(node: import("typescript").Node): node is import("typescript").ArrayBindingElement; - isPropertyAccessOrQualifiedName(node: import("typescript").Node): node is import("typescript").PropertyAccessExpression | import("typescript").QualifiedName; - isCallLikeExpression(node: import("typescript").Node): node is import("typescript").CallLikeExpression; - isCallOrNewExpression(node: import("typescript").Node): node is import("typescript").CallExpression | import("typescript").NewExpression; - isTemplateLiteral(node: import("typescript").Node): node is import("typescript").TemplateLiteral; - isLeftHandSideExpression(node: import("typescript").Node): node is import("typescript").LeftHandSideExpression; - isLiteralTypeLiteral(node: import("typescript").Node): node is import("typescript").NullLiteral | import("typescript").BooleanLiteral | import("typescript").LiteralExpression | import("typescript").PrefixUnaryExpression; - isExpression(node: import("typescript").Node): node is import("typescript").Expression; - isAssertionExpression(node: import("typescript").Node): node is import("typescript").AssertionExpression; - isIterationStatement(node: import("typescript").Node, lookInLabeledStatements: false): node is import("typescript").IterationStatement; - isIterationStatement(node: import("typescript").Node, lookInLabeledStatements: boolean): node is import("typescript").IterationStatement | import("typescript").LabeledStatement; - isConciseBody(node: import("typescript").Node): node is import("typescript").ConciseBody; - isForInitializer(node: import("typescript").Node): node is import("typescript").ForInitializer; - isModuleBody(node: import("typescript").Node): node is import("typescript").ModuleBody; - isNamedImportBindings(node: import("typescript").Node): node is import("typescript").NamedImportBindings; - isDeclarationStatement(node: import("typescript").Node): node is import("typescript").DeclarationStatement; - isStatement(node: import("typescript").Node): node is import("typescript").Statement; - isModuleReference(node: import("typescript").Node): node is import("typescript").ModuleReference; - isJsxTagNameExpression(node: import("typescript").Node): node is import("typescript").JsxTagNameExpression; - isJsxChild(node: import("typescript").Node): node is import("typescript").JsxChild; - isJsxAttributeLike(node: import("typescript").Node): node is import("typescript").JsxAttributeLike; - isStringLiteralOrJsxExpression(node: import("typescript").Node): node is import("typescript").StringLiteral | import("typescript").JsxExpression; - isJsxOpeningLikeElement(node: import("typescript").Node): node is import("typescript").JsxOpeningLikeElement; - isCaseOrDefaultClause(node: import("typescript").Node): node is import("typescript").CaseOrDefaultClause; - isJSDocCommentContainingNode(node: import("typescript").Node): boolean; - isSetAccessor(node: import("typescript").Node): node is import("typescript").SetAccessorDeclaration; - isGetAccessor(node: import("typescript").Node): node is import("typescript").GetAccessorDeclaration; - hasOnlyExpressionInitializer(node: import("typescript").Node): node is import("typescript").HasExpressionInitializer; - isObjectLiteralElement(node: import("typescript").Node): node is import("typescript").ObjectLiteralElement; - isStringLiteralLike(node: import("typescript").Node | import("typescript").FileReference): node is import("typescript").StringLiteralLike; - isJSDocLinkLike(node: import("typescript").Node): node is import("typescript").JSDocLink | import("typescript").JSDocLinkCode | import("typescript").JSDocLinkPlain; - hasRestParameter(s: import("typescript").SignatureDeclaration | import("typescript").JSDocSignature): boolean; - isRestParameter(node: import("typescript").ParameterDeclaration | import("typescript").JSDocParameterTag): boolean; - isInternalDeclaration(node: import("typescript").Node, sourceFile?: SourceFile): boolean; - isPartOfTypeNode(node: import("typescript").Node): boolean; - getJSDocCommentsAndTags(hostNode: import("typescript").Node): readonly (import("typescript").JSDoc | import("typescript").JSDocTag)[]; - createSourceMapSource(fileName: string, text: string, skipTrivia?: (pos: number) => number): import("typescript").SourceMapSource; - setOriginalNode(node: T, original: import("typescript").Node | undefined): T; - disposeEmitNodes(sourceFile: SourceFile | undefined): void; - setEmitFlags(node: T, emitFlags: import("typescript").EmitFlags): T; - getSourceMapRange(node: import("typescript").Node): import("typescript").SourceMapRange; - setSourceMapRange(node: T, range: import("typescript").SourceMapRange | undefined): T; - getTokenSourceMapRange(node: import("typescript").Node, token: import("typescript").SyntaxKind): import("typescript").SourceMapRange | undefined; - setTokenSourceMapRange(node: T, token: import("typescript").SyntaxKind, range: import("typescript").SourceMapRange | undefined): T; - getCommentRange(node: import("typescript").Node): import("typescript").TextRange; - setCommentRange(node: T, range: import("typescript").TextRange): T; - getSyntheticLeadingComments(node: import("typescript").Node): import("typescript").SynthesizedComment[] | undefined; - setSyntheticLeadingComments(node: T, comments: import("typescript").SynthesizedComment[] | undefined): T; - addSyntheticLeadingComment(node: T, kind: import("typescript").SyntaxKind.SingleLineCommentTrivia | import("typescript").SyntaxKind.MultiLineCommentTrivia, text: string, hasTrailingNewLine?: boolean): T; - getSyntheticTrailingComments(node: import("typescript").Node): import("typescript").SynthesizedComment[] | undefined; - setSyntheticTrailingComments(node: T, comments: import("typescript").SynthesizedComment[] | undefined): T; - addSyntheticTrailingComment(node: T, kind: import("typescript").SyntaxKind.SingleLineCommentTrivia | import("typescript").SyntaxKind.MultiLineCommentTrivia, text: string, hasTrailingNewLine?: boolean): T; - moveSyntheticComments(node: T, original: import("typescript").Node): T; - getConstantValue(node: import("typescript").AccessExpression): string | number | undefined; - setConstantValue(node: import("typescript").AccessExpression, value: string | number): import("typescript").AccessExpression; - addEmitHelper(node: T, helper: import("typescript").EmitHelper): T; - addEmitHelpers(node: T, helpers: import("typescript").EmitHelper[] | undefined): T; - removeEmitHelper(node: import("typescript").Node, helper: import("typescript").EmitHelper): boolean; - getEmitHelpers(node: import("typescript").Node): import("typescript").EmitHelper[] | undefined; - moveEmitHelpers(source: import("typescript").Node, target: import("typescript").Node, predicate: (helper: import("typescript").EmitHelper) => boolean): void; - isNumericLiteral(node: import("typescript").Node): node is import("typescript").NumericLiteral; - isBigIntLiteral(node: import("typescript").Node): node is import("typescript").BigIntLiteral; - isStringLiteral(node: import("typescript").Node): node is import("typescript").StringLiteral; - isJsxText(node: import("typescript").Node): node is import("typescript").JsxText; - isRegularExpressionLiteral(node: import("typescript").Node): node is import("typescript").RegularExpressionLiteral; - isNoSubstitutionTemplateLiteral(node: import("typescript").Node): node is import("typescript").NoSubstitutionTemplateLiteral; - isTemplateHead(node: import("typescript").Node): node is import("typescript").TemplateHead; - isTemplateMiddle(node: import("typescript").Node): node is import("typescript").TemplateMiddle; - isTemplateTail(node: import("typescript").Node): node is import("typescript").TemplateTail; - isDotDotDotToken(node: import("typescript").Node): node is import("typescript").DotDotDotToken; - isPlusToken(node: import("typescript").Node): node is import("typescript").PlusToken; - isMinusToken(node: import("typescript").Node): node is import("typescript").MinusToken; - isAsteriskToken(node: import("typescript").Node): node is import("typescript").AsteriskToken; - isExclamationToken(node: import("typescript").Node): node is import("typescript").ExclamationToken; - isQuestionToken(node: import("typescript").Node): node is import("typescript").QuestionToken; - isColonToken(node: import("typescript").Node): node is import("typescript").ColonToken; - isQuestionDotToken(node: import("typescript").Node): node is import("typescript").QuestionDotToken; - isEqualsGreaterThanToken(node: import("typescript").Node): node is import("typescript").EqualsGreaterThanToken; - isIdentifier(node: import("typescript").Node): node is import("typescript").Identifier; - isPrivateIdentifier(node: import("typescript").Node): node is import("typescript").PrivateIdentifier; - isAssertsKeyword(node: import("typescript").Node): node is import("typescript").AssertsKeyword; - isAwaitKeyword(node: import("typescript").Node): node is import("typescript").AwaitKeyword; - isQualifiedName(node: import("typescript").Node): node is import("typescript").QualifiedName; - isComputedPropertyName(node: import("typescript").Node): node is import("typescript").ComputedPropertyName; - isTypeParameterDeclaration(node: import("typescript").Node): node is import("typescript").TypeParameterDeclaration; - isParameter(node: import("typescript").Node): node is import("typescript").ParameterDeclaration; - isDecorator(node: import("typescript").Node): node is import("typescript").Decorator; - isPropertySignature(node: import("typescript").Node): node is import("typescript").PropertySignature; - isPropertyDeclaration(node: import("typescript").Node): node is import("typescript").PropertyDeclaration; - isMethodSignature(node: import("typescript").Node): node is import("typescript").MethodSignature; - isMethodDeclaration(node: import("typescript").Node): node is import("typescript").MethodDeclaration; - isClassStaticBlockDeclaration(node: import("typescript").Node): node is import("typescript").ClassStaticBlockDeclaration; - isConstructorDeclaration(node: import("typescript").Node): node is import("typescript").ConstructorDeclaration; - isGetAccessorDeclaration(node: import("typescript").Node): node is import("typescript").GetAccessorDeclaration; - isSetAccessorDeclaration(node: import("typescript").Node): node is import("typescript").SetAccessorDeclaration; - isCallSignatureDeclaration(node: import("typescript").Node): node is import("typescript").CallSignatureDeclaration; - isConstructSignatureDeclaration(node: import("typescript").Node): node is import("typescript").ConstructSignatureDeclaration; - isIndexSignatureDeclaration(node: import("typescript").Node): node is import("typescript").IndexSignatureDeclaration; - isTypePredicateNode(node: import("typescript").Node): node is import("typescript").TypePredicateNode; - isTypeReferenceNode(node: import("typescript").Node): node is import("typescript").TypeReferenceNode; - isFunctionTypeNode(node: import("typescript").Node): node is import("typescript").FunctionTypeNode; - isConstructorTypeNode(node: import("typescript").Node): node is import("typescript").ConstructorTypeNode; - isTypeQueryNode(node: import("typescript").Node): node is import("typescript").TypeQueryNode; - isTypeLiteralNode(node: import("typescript").Node): node is import("typescript").TypeLiteralNode; - isArrayTypeNode(node: import("typescript").Node): node is import("typescript").ArrayTypeNode; - isTupleTypeNode(node: import("typescript").Node): node is import("typescript").TupleTypeNode; - isNamedTupleMember(node: import("typescript").Node): node is import("typescript").NamedTupleMember; - isOptionalTypeNode(node: import("typescript").Node): node is import("typescript").OptionalTypeNode; - isRestTypeNode(node: import("typescript").Node): node is import("typescript").RestTypeNode; - isUnionTypeNode(node: import("typescript").Node): node is import("typescript").UnionTypeNode; - isIntersectionTypeNode(node: import("typescript").Node): node is import("typescript").IntersectionTypeNode; - isConditionalTypeNode(node: import("typescript").Node): node is import("typescript").ConditionalTypeNode; - isInferTypeNode(node: import("typescript").Node): node is import("typescript").InferTypeNode; - isParenthesizedTypeNode(node: import("typescript").Node): node is import("typescript").ParenthesizedTypeNode; - isThisTypeNode(node: import("typescript").Node): node is import("typescript").ThisTypeNode; - isTypeOperatorNode(node: import("typescript").Node): node is import("typescript").TypeOperatorNode; - isIndexedAccessTypeNode(node: import("typescript").Node): node is import("typescript").IndexedAccessTypeNode; - isMappedTypeNode(node: import("typescript").Node): node is import("typescript").MappedTypeNode; - isLiteralTypeNode(node: import("typescript").Node): node is import("typescript").LiteralTypeNode; - isImportTypeNode(node: import("typescript").Node): node is import("typescript").ImportTypeNode; - isTemplateLiteralTypeSpan(node: import("typescript").Node): node is import("typescript").TemplateLiteralTypeSpan; - isTemplateLiteralTypeNode(node: import("typescript").Node): node is import("typescript").TemplateLiteralTypeNode; - isObjectBindingPattern(node: import("typescript").Node): node is import("typescript").ObjectBindingPattern; - isArrayBindingPattern(node: import("typescript").Node): node is import("typescript").ArrayBindingPattern; - isBindingElement(node: import("typescript").Node): node is import("typescript").BindingElement; - isArrayLiteralExpression(node: import("typescript").Node): node is import("typescript").ArrayLiteralExpression; - isObjectLiteralExpression(node: import("typescript").Node): node is import("typescript").ObjectLiteralExpression; - isPropertyAccessExpression(node: import("typescript").Node): node is import("typescript").PropertyAccessExpression; - isElementAccessExpression(node: import("typescript").Node): node is import("typescript").ElementAccessExpression; - isCallExpression(node: import("typescript").Node): node is import("typescript").CallExpression; - isNewExpression(node: import("typescript").Node): node is import("typescript").NewExpression; - isTaggedTemplateExpression(node: import("typescript").Node): node is import("typescript").TaggedTemplateExpression; - isTypeAssertionExpression(node: import("typescript").Node): node is import("typescript").TypeAssertion; - isParenthesizedExpression(node: import("typescript").Node): node is import("typescript").ParenthesizedExpression; - isFunctionExpression(node: import("typescript").Node): node is import("typescript").FunctionExpression; - isArrowFunction(node: import("typescript").Node): node is import("typescript").ArrowFunction; - isDeleteExpression(node: import("typescript").Node): node is import("typescript").DeleteExpression; - isTypeOfExpression(node: import("typescript").Node): node is import("typescript").TypeOfExpression; - isVoidExpression(node: import("typescript").Node): node is import("typescript").VoidExpression; - isAwaitExpression(node: import("typescript").Node): node is import("typescript").AwaitExpression; - isPrefixUnaryExpression(node: import("typescript").Node): node is import("typescript").PrefixUnaryExpression; - isPostfixUnaryExpression(node: import("typescript").Node): node is import("typescript").PostfixUnaryExpression; - isBinaryExpression(node: import("typescript").Node): node is import("typescript").BinaryExpression; - isConditionalExpression(node: import("typescript").Node): node is import("typescript").ConditionalExpression; - isTemplateExpression(node: import("typescript").Node): node is import("typescript").TemplateExpression; - isYieldExpression(node: import("typescript").Node): node is import("typescript").YieldExpression; - isSpreadElement(node: import("typescript").Node): node is import("typescript").SpreadElement; - isClassExpression(node: import("typescript").Node): node is import("typescript").ClassExpression; - isOmittedExpression(node: import("typescript").Node): node is import("typescript").OmittedExpression; - isExpressionWithTypeArguments(node: import("typescript").Node): node is import("typescript").ExpressionWithTypeArguments; - isAsExpression(node: import("typescript").Node): node is import("typescript").AsExpression; - isSatisfiesExpression(node: import("typescript").Node): node is import("typescript").SatisfiesExpression; - isNonNullExpression(node: import("typescript").Node): node is import("typescript").NonNullExpression; - isMetaProperty(node: import("typescript").Node): node is import("typescript").MetaProperty; - isSyntheticExpression(node: import("typescript").Node): node is import("typescript").SyntheticExpression; - isPartiallyEmittedExpression(node: import("typescript").Node): node is import("typescript").PartiallyEmittedExpression; - isCommaListExpression(node: import("typescript").Node): node is import("typescript").CommaListExpression; - isTemplateSpan(node: import("typescript").Node): node is import("typescript").TemplateSpan; - isSemicolonClassElement(node: import("typescript").Node): node is import("typescript").SemicolonClassElement; - isBlock(node: import("typescript").Node): node is import("typescript").Block; - isVariableStatement(node: import("typescript").Node): node is import("typescript").VariableStatement; - isEmptyStatement(node: import("typescript").Node): node is import("typescript").EmptyStatement; - isExpressionStatement(node: import("typescript").Node): node is import("typescript").ExpressionStatement; - isIfStatement(node: import("typescript").Node): node is import("typescript").IfStatement; - isDoStatement(node: import("typescript").Node): node is import("typescript").DoStatement; - isWhileStatement(node: import("typescript").Node): node is import("typescript").WhileStatement; - isForStatement(node: import("typescript").Node): node is import("typescript").ForStatement; - isForInStatement(node: import("typescript").Node): node is import("typescript").ForInStatement; - isForOfStatement(node: import("typescript").Node): node is import("typescript").ForOfStatement; - isContinueStatement(node: import("typescript").Node): node is import("typescript").ContinueStatement; - isBreakStatement(node: import("typescript").Node): node is import("typescript").BreakStatement; - isReturnStatement(node: import("typescript").Node): node is import("typescript").ReturnStatement; - isWithStatement(node: import("typescript").Node): node is import("typescript").WithStatement; - isSwitchStatement(node: import("typescript").Node): node is import("typescript").SwitchStatement; - isLabeledStatement(node: import("typescript").Node): node is import("typescript").LabeledStatement; - isThrowStatement(node: import("typescript").Node): node is import("typescript").ThrowStatement; - isTryStatement(node: import("typescript").Node): node is import("typescript").TryStatement; - isDebuggerStatement(node: import("typescript").Node): node is import("typescript").DebuggerStatement; - isVariableDeclaration(node: import("typescript").Node): node is import("typescript").VariableDeclaration; - isVariableDeclarationList(node: import("typescript").Node): node is import("typescript").VariableDeclarationList; - isFunctionDeclaration(node: import("typescript").Node): node is import("typescript").FunctionDeclaration; - isClassDeclaration(node: import("typescript").Node): node is import("typescript").ClassDeclaration; - isInterfaceDeclaration(node: import("typescript").Node): node is import("typescript").InterfaceDeclaration; - isTypeAliasDeclaration(node: import("typescript").Node): node is import("typescript").TypeAliasDeclaration; - isEnumDeclaration(node: import("typescript").Node): node is import("typescript").EnumDeclaration; - isModuleDeclaration(node: import("typescript").Node): node is import("typescript").ModuleDeclaration; - isModuleBlock(node: import("typescript").Node): node is import("typescript").ModuleBlock; - isCaseBlock(node: import("typescript").Node): node is import("typescript").CaseBlock; - isNamespaceExportDeclaration(node: import("typescript").Node): node is import("typescript").NamespaceExportDeclaration; - isImportEqualsDeclaration(node: import("typescript").Node): node is import("typescript").ImportEqualsDeclaration; - isImportDeclaration(node: import("typescript").Node): node is import("typescript").ImportDeclaration; - isImportClause(node: import("typescript").Node): node is import("typescript").ImportClause; - isImportTypeAssertionContainer(node: import("typescript").Node): node is import("typescript").ImportTypeAssertionContainer; - isAssertClause(node: import("typescript").Node): node is import("typescript").AssertClause; - isAssertEntry(node: import("typescript").Node): node is import("typescript").AssertEntry; - isImportAttributes(node: import("typescript").Node): node is import("typescript").ImportAttributes; - isImportAttribute(node: import("typescript").Node): node is import("typescript").ImportAttribute; - isNamespaceImport(node: import("typescript").Node): node is import("typescript").NamespaceImport; - isNamespaceExport(node: import("typescript").Node): node is import("typescript").NamespaceExport; - isNamedImports(node: import("typescript").Node): node is import("typescript").NamedImports; - isImportSpecifier(node: import("typescript").Node): node is import("typescript").ImportSpecifier; - isExportAssignment(node: import("typescript").Node): node is import("typescript").ExportAssignment; - isExportDeclaration(node: import("typescript").Node): node is import("typescript").ExportDeclaration; - isNamedExports(node: import("typescript").Node): node is import("typescript").NamedExports; - isExportSpecifier(node: import("typescript").Node): node is import("typescript").ExportSpecifier; - isModuleExportName(node: import("typescript").Node): node is import("typescript").ModuleExportName; - isMissingDeclaration(node: import("typescript").Node): node is import("typescript").MissingDeclaration; - isNotEmittedStatement(node: import("typescript").Node): node is import("typescript").NotEmittedStatement; - isExternalModuleReference(node: import("typescript").Node): node is import("typescript").ExternalModuleReference; - isJsxElement(node: import("typescript").Node): node is import("typescript").JsxElement; - isJsxSelfClosingElement(node: import("typescript").Node): node is import("typescript").JsxSelfClosingElement; - isJsxOpeningElement(node: import("typescript").Node): node is import("typescript").JsxOpeningElement; - isJsxClosingElement(node: import("typescript").Node): node is import("typescript").JsxClosingElement; - isJsxFragment(node: import("typescript").Node): node is import("typescript").JsxFragment; - isJsxOpeningFragment(node: import("typescript").Node): node is import("typescript").JsxOpeningFragment; - isJsxClosingFragment(node: import("typescript").Node): node is import("typescript").JsxClosingFragment; - isJsxAttribute(node: import("typescript").Node): node is import("typescript").JsxAttribute; - isJsxAttributes(node: import("typescript").Node): node is import("typescript").JsxAttributes; - isJsxSpreadAttribute(node: import("typescript").Node): node is import("typescript").JsxSpreadAttribute; - isJsxExpression(node: import("typescript").Node): node is import("typescript").JsxExpression; - isJsxNamespacedName(node: import("typescript").Node): node is import("typescript").JsxNamespacedName; - isCaseClause(node: import("typescript").Node): node is import("typescript").CaseClause; - isDefaultClause(node: import("typescript").Node): node is import("typescript").DefaultClause; - isHeritageClause(node: import("typescript").Node): node is import("typescript").HeritageClause; - isCatchClause(node: import("typescript").Node): node is import("typescript").CatchClause; - isPropertyAssignment(node: import("typescript").Node): node is import("typescript").PropertyAssignment; - isShorthandPropertyAssignment(node: import("typescript").Node): node is import("typescript").ShorthandPropertyAssignment; - isSpreadAssignment(node: import("typescript").Node): node is import("typescript").SpreadAssignment; - isEnumMember(node: import("typescript").Node): node is import("typescript").EnumMember; - isSourceFile(node: import("typescript").Node): node is SourceFile; - isBundle(node: import("typescript").Node): node is import("typescript").Bundle; - isJSDocTypeExpression(node: import("typescript").Node): node is import("typescript").JSDocTypeExpression; - isJSDocNameReference(node: import("typescript").Node): node is import("typescript").JSDocNameReference; - isJSDocMemberName(node: import("typescript").Node): node is import("typescript").JSDocMemberName; - isJSDocLink(node: import("typescript").Node): node is import("typescript").JSDocLink; - isJSDocLinkCode(node: import("typescript").Node): node is import("typescript").JSDocLinkCode; - isJSDocLinkPlain(node: import("typescript").Node): node is import("typescript").JSDocLinkPlain; - isJSDocAllType(node: import("typescript").Node): node is import("typescript").JSDocAllType; - isJSDocUnknownType(node: import("typescript").Node): node is import("typescript").JSDocUnknownType; - isJSDocNullableType(node: import("typescript").Node): node is import("typescript").JSDocNullableType; - isJSDocNonNullableType(node: import("typescript").Node): node is import("typescript").JSDocNonNullableType; - isJSDocOptionalType(node: import("typescript").Node): node is import("typescript").JSDocOptionalType; - isJSDocFunctionType(node: import("typescript").Node): node is import("typescript").JSDocFunctionType; - isJSDocVariadicType(node: import("typescript").Node): node is import("typescript").JSDocVariadicType; - isJSDocNamepathType(node: import("typescript").Node): node is import("typescript").JSDocNamepathType; - isJSDoc(node: import("typescript").Node): node is import("typescript").JSDoc; - isJSDocTypeLiteral(node: import("typescript").Node): node is import("typescript").JSDocTypeLiteral; - isJSDocSignature(node: import("typescript").Node): node is import("typescript").JSDocSignature; - isJSDocAugmentsTag(node: import("typescript").Node): node is import("typescript").JSDocAugmentsTag; - isJSDocAuthorTag(node: import("typescript").Node): node is import("typescript").JSDocAuthorTag; - isJSDocClassTag(node: import("typescript").Node): node is import("typescript").JSDocClassTag; - isJSDocCallbackTag(node: import("typescript").Node): node is import("typescript").JSDocCallbackTag; - isJSDocPublicTag(node: import("typescript").Node): node is import("typescript").JSDocPublicTag; - isJSDocPrivateTag(node: import("typescript").Node): node is import("typescript").JSDocPrivateTag; - isJSDocProtectedTag(node: import("typescript").Node): node is import("typescript").JSDocProtectedTag; - isJSDocReadonlyTag(node: import("typescript").Node): node is import("typescript").JSDocReadonlyTag; - isJSDocOverrideTag(node: import("typescript").Node): node is import("typescript").JSDocOverrideTag; - isJSDocOverloadTag(node: import("typescript").Node): node is import("typescript").JSDocOverloadTag; - isJSDocDeprecatedTag(node: import("typescript").Node): node is import("typescript").JSDocDeprecatedTag; - isJSDocSeeTag(node: import("typescript").Node): node is import("typescript").JSDocSeeTag; - isJSDocEnumTag(node: import("typescript").Node): node is import("typescript").JSDocEnumTag; - isJSDocParameterTag(node: import("typescript").Node): node is import("typescript").JSDocParameterTag; - isJSDocReturnTag(node: import("typescript").Node): node is import("typescript").JSDocReturnTag; - isJSDocThisTag(node: import("typescript").Node): node is import("typescript").JSDocThisTag; - isJSDocTypeTag(node: import("typescript").Node): node is import("typescript").JSDocTypeTag; - isJSDocTemplateTag(node: import("typescript").Node): node is import("typescript").JSDocTemplateTag; - isJSDocTypedefTag(node: import("typescript").Node): node is import("typescript").JSDocTypedefTag; - isJSDocUnknownTag(node: import("typescript").Node): node is import("typescript").JSDocUnknownTag; - isJSDocPropertyTag(node: import("typescript").Node): node is import("typescript").JSDocPropertyTag; - isJSDocImplementsTag(node: import("typescript").Node): node is import("typescript").JSDocImplementsTag; - isJSDocSatisfiesTag(node: import("typescript").Node): node is import("typescript").JSDocSatisfiesTag; - isJSDocThrowsTag(node: import("typescript").Node): node is import("typescript").JSDocThrowsTag; - isJSDocImportTag(node: import("typescript").Node): node is import("typescript").JSDocImportTag; - isQuestionOrExclamationToken(node: import("typescript").Node): node is import("typescript").QuestionToken | import("typescript").ExclamationToken; - isIdentifierOrThisTypeNode(node: import("typescript").Node): node is import("typescript").Identifier | import("typescript").ThisTypeNode; - isReadonlyKeywordOrPlusOrMinusToken(node: import("typescript").Node): node is import("typescript").ReadonlyKeyword | import("typescript").PlusToken | import("typescript").MinusToken; - isQuestionOrPlusOrMinusToken(node: import("typescript").Node): node is import("typescript").QuestionToken | import("typescript").PlusToken | import("typescript").MinusToken; - isModuleName(node: import("typescript").Node): node is import("typescript").ModuleName; - isBinaryOperatorToken(node: import("typescript").Node): node is import("typescript").BinaryOperatorToken; - setTextRange(range: T, location: import("typescript").TextRange | undefined): T; - canHaveModifiers(node: import("typescript").Node): node is import("typescript").HasModifiers; - canHaveDecorators(node: import("typescript").Node): node is import("typescript").HasDecorators; - forEachChild(node: import("typescript").Node, cbNode: (node: import("typescript").Node) => T | undefined, cbNodes?: (nodes: import("typescript").NodeArray) => T | undefined): T | undefined; - createSourceFile(fileName: string, sourceText: string, languageVersionOrOptions: import("typescript").ScriptTarget | import("typescript").CreateSourceFileOptions, setParentNodes?: boolean, scriptKind?: import("typescript").ScriptKind): SourceFile; - parseIsolatedEntityName(text: string, languageVersion: import("typescript").ScriptTarget): import("typescript").EntityName | undefined; - parseJsonText(fileName: string, sourceText: string): import("typescript").JsonSourceFile; - isExternalModule(file: SourceFile): boolean; - updateSourceFile(sourceFile: SourceFile, newText: string, textChangeRange: import("typescript").TextChangeRange, aggressiveChecks?: boolean): SourceFile; - parseCommandLine(commandLine: readonly string[], readFile?: (path: string) => string | undefined): import("typescript").ParsedCommandLine; - getParsedCommandLineOfConfigFile(configFileName: string, optionsToExtend: import("typescript").CompilerOptions | undefined, host: import("typescript").ParseConfigFileHost, extendedConfigCache?: Map, watchOptionsToExtend?: import("typescript").WatchOptions, extraFileExtensions?: readonly import("typescript").FileExtensionInfo[]): import("typescript").ParsedCommandLine | undefined; - readConfigFile(fileName: string, readFile: (path: string) => string | undefined): { - config?: any; - error?: import("typescript").Diagnostic; - }; - parseConfigFileTextToJson(fileName: string, jsonText: string): { - config?: any; - error?: import("typescript").Diagnostic; - }; - readJsonConfigFile(fileName: string, readFile: (path: string) => string | undefined): import("typescript").TsConfigSourceFile; - convertToObject(sourceFile: import("typescript").JsonSourceFile, errors: import("typescript").Diagnostic[]): any; - parseJsonConfigFileContent(json: any, host: import("typescript").ParseConfigHost, basePath: string, existingOptions?: import("typescript").CompilerOptions, configFileName?: string, resolutionStack?: import("typescript").Path[], extraFileExtensions?: readonly import("typescript").FileExtensionInfo[], extendedConfigCache?: Map, existingWatchOptions?: import("typescript").WatchOptions): import("typescript").ParsedCommandLine; - parseJsonSourceFileConfigFileContent(sourceFile: import("typescript").TsConfigSourceFile, host: import("typescript").ParseConfigHost, basePath: string, existingOptions?: import("typescript").CompilerOptions, configFileName?: string, resolutionStack?: import("typescript").Path[], extraFileExtensions?: readonly import("typescript").FileExtensionInfo[], extendedConfigCache?: Map, existingWatchOptions?: import("typescript").WatchOptions): import("typescript").ParsedCommandLine; - convertCompilerOptionsFromJson(jsonOptions: any, basePath: string, configFileName?: string): { - options: import("typescript").CompilerOptions; - errors: import("typescript").Diagnostic[]; - }; - convertTypeAcquisitionFromJson(jsonOptions: any, basePath: string, configFileName?: string): { - options: import("typescript").TypeAcquisition; - errors: import("typescript").Diagnostic[]; - }; - getEffectiveTypeRoots(options: import("typescript").CompilerOptions, host: import("typescript").GetEffectiveTypeRootsHost): string[] | undefined; - resolveTypeReferenceDirective(typeReferenceDirectiveName: string, containingFile: string | undefined, options: import("typescript").CompilerOptions, host: import("typescript").ModuleResolutionHost, redirectedReference?: import("typescript").ResolvedProjectReference, cache?: import("typescript").TypeReferenceDirectiveResolutionCache, resolutionMode?: import("typescript").ResolutionMode): import("typescript").ResolvedTypeReferenceDirectiveWithFailedLookupLocations; - getAutomaticTypeDirectiveNames(options: import("typescript").CompilerOptions, host: import("typescript").ModuleResolutionHost): string[]; - createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: import("typescript").CompilerOptions, packageJsonInfoCache?: import("typescript").PackageJsonInfoCache): import("typescript").ModuleResolutionCache; - createTypeReferenceDirectiveResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: import("typescript").CompilerOptions, packageJsonInfoCache?: import("typescript").PackageJsonInfoCache): import("typescript").TypeReferenceDirectiveResolutionCache; - resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: import("typescript").ModuleResolutionCache, mode?: import("typescript").ResolutionMode): import("typescript").ResolvedModuleWithFailedLookupLocations | undefined; - resolveModuleName(moduleName: string, containingFile: string, compilerOptions: import("typescript").CompilerOptions, host: import("typescript").ModuleResolutionHost, cache?: import("typescript").ModuleResolutionCache, redirectedReference?: import("typescript").ResolvedProjectReference, resolutionMode?: import("typescript").ResolutionMode): import("typescript").ResolvedModuleWithFailedLookupLocations; - bundlerModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: import("typescript").CompilerOptions, host: import("typescript").ModuleResolutionHost, cache?: import("typescript").ModuleResolutionCache, redirectedReference?: import("typescript").ResolvedProjectReference): import("typescript").ResolvedModuleWithFailedLookupLocations; - nodeModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: import("typescript").CompilerOptions, host: import("typescript").ModuleResolutionHost, cache?: import("typescript").ModuleResolutionCache, redirectedReference?: import("typescript").ResolvedProjectReference): import("typescript").ResolvedModuleWithFailedLookupLocations; - classicNameResolver(moduleName: string, containingFile: string, compilerOptions: import("typescript").CompilerOptions, host: import("typescript").ModuleResolutionHost, cache?: import("typescript").NonRelativeModuleNameResolutionCache, redirectedReference?: import("typescript").ResolvedProjectReference): import("typescript").ResolvedModuleWithFailedLookupLocations; - visitNode(node: TIn, visitor: import("typescript").Visitor, TVisited>, test: (node: import("typescript").Node) => node is TOut, lift?: (node: readonly import("typescript").Node[]) => import("typescript").Node): TOut | (TIn & undefined) | (TVisited & undefined); - visitNode(node: TIn, visitor: import("typescript").Visitor, TVisited>, test?: (node: import("typescript").Node) => boolean, lift?: (node: readonly import("typescript").Node[]) => import("typescript").Node): import("typescript").Node | (TIn & undefined) | (TVisited & undefined); - visitNodes | undefined, TOut extends import("typescript").Node>(nodes: TInArray, visitor: import("typescript").Visitor, test: (node: import("typescript").Node) => node is TOut, start?: number, count?: number): import("typescript").NodeArray | (TInArray & undefined); - visitNodes | undefined>(nodes: TInArray, visitor: import("typescript").Visitor, test?: (node: import("typescript").Node) => boolean, start?: number, count?: number): import("typescript").NodeArray | (TInArray & undefined); - visitLexicalEnvironment(statements: import("typescript").NodeArray, visitor: import("typescript").Visitor, context: import("typescript").TransformationContext, start?: number, ensureUseStrict?: boolean, nodesVisitor?: import("typescript").NodesVisitor): import("typescript").NodeArray; - visitParameterList(nodes: import("typescript").NodeArray, visitor: import("typescript").Visitor, context: import("typescript").TransformationContext, nodesVisitor?: import("typescript").NodesVisitor): import("typescript").NodeArray; - visitParameterList(nodes: import("typescript").NodeArray | undefined, visitor: import("typescript").Visitor, context: import("typescript").TransformationContext, nodesVisitor?: import("typescript").NodesVisitor): import("typescript").NodeArray | undefined; - visitFunctionBody(node: import("typescript").FunctionBody, visitor: import("typescript").Visitor, context: import("typescript").TransformationContext): import("typescript").FunctionBody; - visitFunctionBody(node: import("typescript").FunctionBody | undefined, visitor: import("typescript").Visitor, context: import("typescript").TransformationContext): import("typescript").FunctionBody | undefined; - visitFunctionBody(node: import("typescript").ConciseBody, visitor: import("typescript").Visitor, context: import("typescript").TransformationContext): import("typescript").ConciseBody; - visitIterationBody(body: import("typescript").Statement, visitor: import("typescript").Visitor, context: import("typescript").TransformationContext): import("typescript").Statement; - visitCommaListElements(elements: import("typescript").NodeArray, visitor: import("typescript").Visitor, discardVisitor?: import("typescript").Visitor): import("typescript").NodeArray; - visitEachChild(node: T, visitor: import("typescript").Visitor, context: import("typescript").TransformationContext | undefined): T; - visitEachChild(node: T | undefined, visitor: import("typescript").Visitor, context: import("typescript").TransformationContext | undefined, nodesVisitor?: typeof import("typescript").visitNodes, tokenVisitor?: import("typescript").Visitor): T | undefined; - getTsBuildInfoEmitOutputFilePath(options: import("typescript").CompilerOptions): string | undefined; - getOutputFileNames(commandLine: import("typescript").ParsedCommandLine, inputFileName: string, ignoreCase: boolean): readonly string[]; - createPrinter(printerOptions?: import("typescript").PrinterOptions, handlers?: import("typescript").PrintHandlers): import("typescript").Printer; - findConfigFile(searchPath: string, fileExists: (fileName: string) => boolean, configName?: string): string | undefined; - resolveTripleslashReference(moduleName: string, containingFile: string): string; - createCompilerHost(options: import("typescript").CompilerOptions, setParentNodes?: boolean): import("typescript").CompilerHost; - getPreEmitDiagnostics(program: import("typescript").Program, sourceFile?: SourceFile, cancellationToken?: import("typescript").CancellationToken): readonly import("typescript").Diagnostic[]; - formatDiagnostics(diagnostics: readonly import("typescript").Diagnostic[], host: import("typescript").FormatDiagnosticsHost): string; - formatDiagnostic(diagnostic: import("typescript").Diagnostic, host: import("typescript").FormatDiagnosticsHost): string; - formatDiagnosticsWithColorAndContext(diagnostics: readonly import("typescript").Diagnostic[], host: import("typescript").FormatDiagnosticsHost): string; - flattenDiagnosticMessageText(diag: string | import("typescript").DiagnosticMessageChain | undefined, newLine: string, indent?: number): string; - getModeForFileReference(ref: import("typescript").FileReference | string, containingFileMode: import("typescript").ResolutionMode): import("typescript").ResolutionMode; - getModeForResolutionAtIndex(file: SourceFile, index: number, compilerOptions: import("typescript").CompilerOptions): import("typescript").ResolutionMode; - getModeForUsageLocation(file: SourceFile, usage: import("typescript").StringLiteralLike, compilerOptions: import("typescript").CompilerOptions): import("typescript").ResolutionMode; - getConfigFileParsingDiagnostics(configFileParseResult: import("typescript").ParsedCommandLine): readonly import("typescript").Diagnostic[]; - getImpliedNodeFormatForFile(fileName: string, packageJsonInfoCache: import("typescript").PackageJsonInfoCache | undefined, host: import("typescript").ModuleResolutionHost, options: import("typescript").CompilerOptions): import("typescript").ResolutionMode; - createProgram(createProgramOptions: import("typescript").CreateProgramOptions): import("typescript").Program; - createProgram(rootNames: readonly string[], options: import("typescript").CompilerOptions, host?: import("typescript").CompilerHost, oldProgram?: import("typescript").Program, configFileParsingDiagnostics?: readonly import("typescript").Diagnostic[]): import("typescript").Program; - resolveProjectReferencePath(ref: import("typescript").ProjectReference): import("typescript").ResolvedConfigFileName; - createSemanticDiagnosticsBuilderProgram(newProgram: import("typescript").Program, host: import("typescript").BuilderProgramHost, oldProgram?: import("typescript").SemanticDiagnosticsBuilderProgram, configFileParsingDiagnostics?: readonly import("typescript").Diagnostic[]): import("typescript").SemanticDiagnosticsBuilderProgram; - createSemanticDiagnosticsBuilderProgram(rootNames: readonly string[] | undefined, options: import("typescript").CompilerOptions | undefined, host?: import("typescript").CompilerHost, oldProgram?: import("typescript").SemanticDiagnosticsBuilderProgram, configFileParsingDiagnostics?: readonly import("typescript").Diagnostic[], projectReferences?: readonly import("typescript").ProjectReference[]): import("typescript").SemanticDiagnosticsBuilderProgram; - createEmitAndSemanticDiagnosticsBuilderProgram(newProgram: import("typescript").Program, host: import("typescript").BuilderProgramHost, oldProgram?: import("typescript").EmitAndSemanticDiagnosticsBuilderProgram, configFileParsingDiagnostics?: readonly import("typescript").Diagnostic[]): import("typescript").EmitAndSemanticDiagnosticsBuilderProgram; - createEmitAndSemanticDiagnosticsBuilderProgram(rootNames: readonly string[] | undefined, options: import("typescript").CompilerOptions | undefined, host?: import("typescript").CompilerHost, oldProgram?: import("typescript").EmitAndSemanticDiagnosticsBuilderProgram, configFileParsingDiagnostics?: readonly import("typescript").Diagnostic[], projectReferences?: readonly import("typescript").ProjectReference[]): import("typescript").EmitAndSemanticDiagnosticsBuilderProgram; - createAbstractBuilder(newProgram: import("typescript").Program, host: import("typescript").BuilderProgramHost, oldProgram?: import("typescript").BuilderProgram, configFileParsingDiagnostics?: readonly import("typescript").Diagnostic[]): import("typescript").BuilderProgram; - createAbstractBuilder(rootNames: readonly string[] | undefined, options: import("typescript").CompilerOptions | undefined, host?: import("typescript").CompilerHost, oldProgram?: import("typescript").BuilderProgram, configFileParsingDiagnostics?: readonly import("typescript").Diagnostic[], projectReferences?: readonly import("typescript").ProjectReference[]): import("typescript").BuilderProgram; - readBuilderProgram(compilerOptions: import("typescript").CompilerOptions, host: import("typescript").ReadBuildProgramHost): import("typescript").EmitAndSemanticDiagnosticsBuilderProgram | undefined; - createIncrementalCompilerHost(options: import("typescript").CompilerOptions, system?: import("typescript").System): import("typescript").CompilerHost; - createIncrementalProgram({ rootNames, options, configFileParsingDiagnostics, projectReferences, host, createProgram, }: import("typescript").IncrementalProgramOptions): T; - createWatchCompilerHost(configFileName: string, optionsToExtend: import("typescript").CompilerOptions | undefined, system: import("typescript").System, createProgram?: import("typescript").CreateProgram, reportDiagnostic?: import("typescript").DiagnosticReporter, reportWatchStatus?: import("typescript").WatchStatusReporter, watchOptionsToExtend?: import("typescript").WatchOptions, extraFileExtensions?: readonly import("typescript").FileExtensionInfo[]): import("typescript").WatchCompilerHostOfConfigFile; - createWatchCompilerHost(rootFiles: string[], options: import("typescript").CompilerOptions, system: import("typescript").System, createProgram?: import("typescript").CreateProgram, reportDiagnostic?: import("typescript").DiagnosticReporter, reportWatchStatus?: import("typescript").WatchStatusReporter, projectReferences?: readonly import("typescript").ProjectReference[], watchOptions?: import("typescript").WatchOptions): import("typescript").WatchCompilerHostOfFilesAndCompilerOptions; - createWatchProgram(host: import("typescript").WatchCompilerHostOfFilesAndCompilerOptions): import("typescript").WatchOfFilesAndCompilerOptions; - createWatchProgram(host: import("typescript").WatchCompilerHostOfConfigFile): import("typescript").WatchOfConfigFile; - createBuilderStatusReporter(system: import("typescript").System, pretty?: boolean): import("typescript").DiagnosticReporter; - createSolutionBuilderHost(system?: import("typescript").System, createProgram?: import("typescript").CreateProgram, reportDiagnostic?: import("typescript").DiagnosticReporter, reportSolutionBuilderStatus?: import("typescript").DiagnosticReporter, reportErrorSummary?: import("typescript").ReportEmitErrorSummary): import("typescript").SolutionBuilderHost; - createSolutionBuilderWithWatchHost(system?: import("typescript").System, createProgram?: import("typescript").CreateProgram, reportDiagnostic?: import("typescript").DiagnosticReporter, reportSolutionBuilderStatus?: import("typescript").DiagnosticReporter, reportWatchStatus?: import("typescript").WatchStatusReporter): import("typescript").SolutionBuilderWithWatchHost; - createSolutionBuilder(host: import("typescript").SolutionBuilderHost, rootNames: readonly string[], defaultOptions: import("typescript").BuildOptions): import("typescript").SolutionBuilder; - createSolutionBuilderWithWatch(host: import("typescript").SolutionBuilderWithWatchHost, rootNames: readonly string[], defaultOptions: import("typescript").BuildOptions, baseWatchOptions?: import("typescript").WatchOptions): import("typescript").SolutionBuilder; - getDefaultFormatCodeSettings(newLineCharacter?: string): import("typescript").FormatCodeSettings; - createClassifier(): import("typescript").Classifier; - createDocumentRegistry(useCaseSensitiveFileNames?: boolean, currentDirectory?: string, jsDocParsingMode?: import("typescript").JSDocParsingMode): import("typescript").DocumentRegistry; - preProcessFile(sourceText: string, readImportFiles?: boolean, detectJavaScriptImports?: boolean): import("typescript").PreProcessedFileInfo; - transpileModule(input: string, transpileOptions: import("typescript").TranspileOptions): import("typescript").TranspileOutput; - transpileDeclaration(input: string, transpileOptions: import("typescript").TranspileOptions): import("typescript").TranspileOutput; - transpile(input: string, compilerOptions?: import("typescript").CompilerOptions, fileName?: string, diagnostics?: import("typescript").Diagnostic[], moduleName?: string): string; - toEditorSettings(options: import("typescript").EditorOptions | import("typescript").EditorSettings): import("typescript").EditorSettings; - displayPartsToString(displayParts: import("typescript").SymbolDisplayPart[] | undefined): string; - getDefaultCompilerOptions(): import("typescript").CompilerOptions; - getSupportedCodeFixes(): readonly string[]; - createLanguageServiceSourceFile(fileName: string, scriptSnapshot: import("typescript").IScriptSnapshot, scriptTargetOrOptions: import("typescript").ScriptTarget | import("typescript").CreateSourceFileOptions, version: string, setNodeParents: boolean, scriptKind?: import("typescript").ScriptKind): SourceFile; - updateLanguageServiceSourceFile(sourceFile: SourceFile, scriptSnapshot: import("typescript").IScriptSnapshot, version: string, textChangeRange: import("typescript").TextChangeRange | undefined, aggressiveChecks?: boolean): SourceFile; - createLanguageService(host: import("typescript").LanguageServiceHost, documentRegistry?: import("typescript").DocumentRegistry, syntaxOnlyOrLanguageServiceMode?: boolean | import("typescript").LanguageServiceMode): import("typescript").LanguageService; - getDefaultLibFilePath(options: import("typescript").CompilerOptions): string; - transform(source: T | T[], transformers: import("typescript").TransformerFactory[], compilerOptions?: import("typescript").CompilerOptions): import("typescript").TransformationResult; - server: typeof import("typescript").server; - versionMajorMinor: "5.6"; - version: string; - SyntaxKind: typeof import("typescript").SyntaxKind; - NodeFlags: typeof import("typescript").NodeFlags; - ModifierFlags: typeof import("typescript").ModifierFlags; - JsxFlags: typeof import("typescript").JsxFlags; - GeneratedIdentifierFlags: typeof import("typescript").GeneratedIdentifierFlags; - TokenFlags: typeof import("typescript").TokenFlags; - OperationCanceledException: typeof import("typescript").OperationCanceledException; - ExitStatus: typeof import("typescript").ExitStatus; - NodeBuilderFlags: typeof import("typescript").NodeBuilderFlags; - TypeFormatFlags: typeof import("typescript").TypeFormatFlags; - SymbolFormatFlags: typeof import("typescript").SymbolFormatFlags; - TypePredicateKind: typeof import("typescript").TypePredicateKind; - SymbolFlags: typeof import("typescript").SymbolFlags; - InternalSymbolName: typeof import("typescript").InternalSymbolName; - TypeFlags: typeof import("typescript").TypeFlags; - ObjectFlags: typeof import("typescript").ObjectFlags; - ElementFlags: typeof import("typescript").ElementFlags; - SignatureKind: typeof import("typescript").SignatureKind; - IndexKind: typeof import("typescript").IndexKind; - InferencePriority: typeof import("typescript").InferencePriority; - DiagnosticCategory: typeof import("typescript").DiagnosticCategory; - ModuleResolutionKind: typeof import("typescript").ModuleResolutionKind; - ModuleDetectionKind: typeof import("typescript").ModuleDetectionKind; - WatchFileKind: typeof import("typescript").WatchFileKind; - WatchDirectoryKind: typeof import("typescript").WatchDirectoryKind; - PollingWatchKind: typeof import("typescript").PollingWatchKind; - ModuleKind: typeof import("typescript").ModuleKind; - JsxEmit: typeof import("typescript").JsxEmit; - ImportsNotUsedAsValues: typeof import("typescript").ImportsNotUsedAsValues; - NewLineKind: typeof import("typescript").NewLineKind; - ScriptKind: typeof import("typescript").ScriptKind; - ScriptTarget: typeof import("typescript").ScriptTarget; - LanguageVariant: typeof import("typescript").LanguageVariant; - WatchDirectoryFlags: typeof import("typescript").WatchDirectoryFlags; - Extension: typeof import("typescript").Extension; - EmitFlags: typeof import("typescript").EmitFlags; - EmitHint: typeof import("typescript").EmitHint; - OuterExpressionKinds: typeof import("typescript").OuterExpressionKinds; - ListFormat: typeof import("typescript").ListFormat; - JSDocParsingMode: typeof import("typescript").JSDocParsingMode; - FileWatcherEventKind: typeof import("typescript").FileWatcherEventKind; - sys: import("typescript").System; - unchangedTextChangeRange: import("typescript").TextChangeRange; - factory: import("typescript").NodeFactory; - ProgramUpdateLevel: typeof import("typescript").ProgramUpdateLevel; - InvalidatedProjectKind: typeof import("typescript").InvalidatedProjectKind; - ScriptSnapshot: typeof import("typescript").ScriptSnapshot; - LanguageServiceMode: typeof import("typescript").LanguageServiceMode; - SemanticClassificationFormat: typeof import("typescript").SemanticClassificationFormat; - OrganizeImportsMode: typeof import("typescript").OrganizeImportsMode; - CompletionTriggerKind: typeof import("typescript").CompletionTriggerKind; - InlayHintKind: typeof import("typescript").InlayHintKind; - HighlightSpanKind: typeof import("typescript").HighlightSpanKind; - IndentStyle: typeof import("typescript").IndentStyle; - SemicolonPreference: typeof import("typescript").SemicolonPreference; - SymbolDisplayPartKind: typeof import("typescript").SymbolDisplayPartKind; - CompletionInfoFlags: typeof import("typescript").CompletionInfoFlags; - OutliningSpanKind: typeof import("typescript").OutliningSpanKind; - OutputFileType: typeof import("typescript").OutputFileType; - EndOfLineState: typeof import("typescript").EndOfLineState; - TokenClass: typeof import("typescript").TokenClass; - ScriptElementKind: typeof import("typescript").ScriptElementKind; - ScriptElementKindModifier: typeof import("typescript").ScriptElementKindModifier; - ClassificationTypeNames: typeof import("typescript").ClassificationTypeNames; - ClassificationType: typeof import("typescript").ClassificationType; - servicesVersion: "0.8"; -}; diff --git a/Target/Function/Output.js b/Target/Function/Output.js index d8b0ea92..30584387 100644 --- a/Target/Function/Output.js +++ b/Target/Function/Output.js @@ -1 +1 @@ -var f=async(...[p])=>{const r=t.createSourceFile("temp.ts",p,t.ScriptTarget.Latest,!0),a=new Map([]),i=new Map([]);(await import("./Output/Visit.js")).default(a,i)(r);const s=(await import("./Output/Transformer.js")).default(a,i);let o=!0,e=t.transform(r,[s]).transformed[0];for(;o;){const{transformed:n}=t.transform(e,[s]);n[0]===e?o=!1:e=n[0]}return t.createPrinter().printFile(e)};const t=await import("typescript");export{f as default,t as ts}; +var f=async(...[p])=>{const r=t.createSourceFile("temp.ts",p,t.ScriptTarget.Latest,!0),a=new Map([]),i=new Map([]);(await import("@Function/Output/Visit.js")).default(a,i)(r);const s=(await import("@Function/Output/Transformer.js")).default(a,i);let o=!0,e=t.transform(r,[s]).transformed[0];for(;o;){const{transformed:n}=t.transform(e,[s]);n[0]===e?o=!1:e=n[0]}return t.createPrinter().printFile(e)};const t=await import("typescript");export{f as default,t as ts}; diff --git a/Target/Function/Output/Transformer.js b/Target/Function/Output/Transformer.js index 60d8ad78..8d62da50 100644 --- a/Target/Function/Output/Transformer.js +++ b/Target/Function/Output/Transformer.js @@ -1 +1 @@ -var s=(t,e)=>(...[a])=>r=>i.visitNode(r,o(t,e)(a));const{default:i}=await import("typescript"),{default:o}=await import("../Output/Transformer/Visit.js");export{o as Visit,s as default,i as ts}; +var s=(t,e)=>(...[a])=>r=>i.visitNode(r,o(t,e)(a));const{default:i}=await import("typescript"),{default:o}=await import("@Function/Output/Transformer/Visit.js");export{o as Visit,s as default,i as ts}; diff --git a/Target/Function/Output/Transformer/Visit.js b/Target/Function/Output/Transformer/Visit.js index b9827e11..44476bb9 100644 --- a/Target/Function/Output/Transformer/Visit.js +++ b/Target/Function/Output/Transformer/Visit.js @@ -1 +1 @@ -import{factory as a,isIdentifier as c,isPropertyAccessExpression as y,visitEachChild as C}from"typescript";const I=(l,p)=>(...[U])=>(...[x])=>{const f=s=>{let N=!1,e=s;if(m.isVariableStatement(e)){const t=e.declarationList.declarations,r=t.filter(o=>{if(c(o.name)){const n=l.get(o.name.text);return!n||n>1||!o.initializer}return!0});if(r.length===0)return{Node:a.createEmptyStatement(),Use:!0};r.length!==t.length&&(e=a.updateVariableStatement(e,e.modifiers,a.createVariableDeclarationList(r,e.declarationList.flags)),N=!0)}if(c(e))try{const t=e.text,r=l.get(t),o=b(t,p);if(o&&r===1){const n=e.parent;return y(n)&&n.name===e?{Node:e,Use:!1}:c(o)?{Node:a.createIdentifier(o.text),Use:!0}:{Node:m.transform(o,[E=>w=>w]).transformed[0],Use:!0}}}catch(t){console.error("Error during identifier replacement:",t)}const{Node:h,Use:g}=(t=>{let r=!1;return{Node:C(t,n=>{const d=f(n);return r=r||d.Use,d.Node},U),Use:r}})(e);return{Node:h,Use:N||g}};let i=x,u=!0;for(;u;){const s=f(i);s.Use||(u=!1),i=s.Node}return i},{default:m}=await import("typescript"),{default:b}=await import("../../Output/Visit/Get.js");var L=I;export{I as Fn,b as Get,L as default,m as ts}; +import{factory as s,isIdentifier as c,isPropertyAccessExpression as y,visitEachChild as I}from"typescript";const w=(l,p)=>(...[U])=>(...[x])=>{const u=a=>{let m=!1,e=a;if(f.isEmptyStatement(e))return{Node:s.createNotEmittedStatement(e),Use:!0};if(f.isVariableStatement(e)){const t=e.declarationList.declarations,r=t.filter(o=>{if(c(o.name)){const n=l.get(o.name.text);return!n||n>1||!o.initializer}return!0});if(r.length===0)return{Node:s.createEmptyStatement(),Use:!0};r.length!==t.length&&(e=s.updateVariableStatement(e,e.modifiers,s.createVariableDeclarationList(r,e.declarationList.flags)),m=!0)}if(c(e))try{const t=e.text,r=l.get(t),o=C(t,p);if(o&&r===1){const n=e.parent;return y(n)&&n.name===e?{Node:e,Use:!1}:c(o)?{Node:s.createIdentifier(o.text),Use:!0}:{Node:f.transform(o,[d=>g=>g]).transformed[0],Use:!0}}}catch(t){console.error("Error during identifier replacement:",t)}const{Node:h,Use:E}=(t=>{let r=!1;return{Node:I(t,n=>{const d=u(n);return r=r||d.Use,d.Node},U),Use:r}})(e);return{Node:h,Use:m||E}};let i=x,N=!0;for(;N;){const a=u(i);a.Use||(N=!1),i=a.Node}return i},{default:f}=await import("typescript"),{default:C}=await import("@Function/Output/Visit/Get.js");var S=w;export{w as Fn,C as Get,S as default,f as ts}; diff --git a/Target/Type/Output/Visit/Initializer.js b/Target/Type/Output/Visit/Initializer.js deleted file mode 100644 index e69de29b..00000000 diff --git a/Target/Type/Output/Visit/Initializer/Initializer.js b/Target/Type/Output/Visit/Initializer/Initializer.js deleted file mode 100644 index e69de29b..00000000 diff --git a/Target/Type/Output/Visit/Initializer/Name.js b/Target/Type/Output/Visit/Initializer/Name.js deleted file mode 100644 index e69de29b..00000000 diff --git a/Target/Type/Output/Visit/Usage/Text.js b/Target/Type/Output/Visit/Usage/Text.js deleted file mode 100644 index e69de29b..00000000 diff --git a/Target/Type/Output/Visit/Usage/Usage.js b/Target/Type/Output/Visit/Usage/Usage.js deleted file mode 100644 index e69de29b..00000000