-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(estree-ast-utils): add missing d.ts
- Loading branch information
Showing
3 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Import Internal Dependencies | ||
import { VariableTracer } from "./utils/VariableTracer"; | ||
|
||
export { VariableTracer }; | ||
|
||
export function arrayExpressionToString( | ||
node: any, options?: { tracer?: VariableTracer } | ||
): IterableIterator<string>; | ||
|
||
export function concatBinaryExpression( | ||
node: any, options?: { tracer?: VariableTracer, stopOnUnsupportedNode?: boolean } | ||
): IterableIterator<string>; | ||
|
||
export function getCallExpressionArguments( | ||
node: any, options?: { tracer?: VariableTracer } | ||
): string[] | null; | ||
|
||
export function getCallExpressionIdentifier( | ||
node: any | ||
): string | null; | ||
|
||
export function getMemberExpressionIdentifier( | ||
node: any, options?: { tracer?: VariableTracer } | ||
): IterableIterator<string>; | ||
|
||
export function getVariableDeclarationIdentifiers( | ||
node: any, options?: { prefix?: string | null } | ||
): IterableIterator<{ name: string; assignmentId: any }>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Import Node.js Dependencies | ||
import EventEmitter from "node:events"; | ||
|
||
declare class VariableTracer extends EventEmitter { | ||
static AssignmentEvent: Symbol; | ||
|
||
literalIdentifiers: Map<string, string>; | ||
importedModules: Set<string>; | ||
|
||
enableDefaultTracing(): VariableTracer; | ||
debug(): void; | ||
trace(identifierOrMemberExpr: string, options?: { | ||
followConsecutiveAssignment?: boolean; | ||
moduleName?: string; | ||
name?: string; | ||
}): VariableTracer; | ||
getDataFromIdentifier(identifierOrMemberExpr: string): null | { | ||
name: string; | ||
identifierOrMemberExpr: string; | ||
assignmentMemory: string[]; | ||
} | ||
walk(node: any): void; | ||
} | ||
|
||
export { | ||
VariableTracer | ||
} |