File tree Expand file tree Collapse file tree 3 files changed +59
-0
lines changed
workspaces/estree-ast-utils Expand file tree Collapse file tree 3 files changed +59
-0
lines changed Original file line number Diff line number Diff line change 4
4
"description" : " Utilities for AST (ESTree compliant)" ,
5
5
"type" : " module" ,
6
6
"exports" : " ./src/index.js" ,
7
+ "types" : " ./src/index.d.ts" ,
7
8
"scripts" : {
8
9
"lint" : " eslint src test" ,
9
10
"prepublishOnly" : " pkg-ok" ,
20
21
" ast" ,
21
22
" utils"
22
23
],
24
+ "files" : [
25
+ " src"
26
+ ],
23
27
"author" :
" GENTILHOMME Thomas <[email protected] >" ,
24
28
"license" : " MIT" ,
25
29
"bugs" : {
Original file line number Diff line number Diff line change
1
+ // Import Internal Dependencies
2
+ import { VariableTracer } from "./utils/VariableTracer" ;
3
+
4
+ export { VariableTracer } ;
5
+
6
+ export function arrayExpressionToString (
7
+ node : any , options ?: { tracer ?: VariableTracer }
8
+ ) : IterableIterator < string > ;
9
+
10
+ export function concatBinaryExpression (
11
+ node : any , options ?: { tracer ?: VariableTracer , stopOnUnsupportedNode ?: boolean }
12
+ ) : IterableIterator < string > ;
13
+
14
+ export function getCallExpressionArguments (
15
+ node : any , options ?: { tracer ?: VariableTracer }
16
+ ) : string [ ] | null ;
17
+
18
+ export function getCallExpressionIdentifier (
19
+ node : any
20
+ ) : string | null ;
21
+
22
+ export function getMemberExpressionIdentifier (
23
+ node : any , options ?: { tracer ?: VariableTracer }
24
+ ) : IterableIterator < string > ;
25
+
26
+ export function getVariableDeclarationIdentifiers (
27
+ node : any , options ?: { prefix ?: string | null }
28
+ ) : IterableIterator < { name : string ; assignmentId : any } > ;
Original file line number Diff line number Diff line change
1
+ // Import Node.js Dependencies
2
+ import EventEmitter from "node:events" ;
3
+
4
+ declare class VariableTracer extends EventEmitter {
5
+ static AssignmentEvent : Symbol ;
6
+
7
+ literalIdentifiers : Map < string , string > ;
8
+ importedModules : Set < string > ;
9
+
10
+ enableDefaultTracing ( ) : VariableTracer ;
11
+ debug ( ) : void ;
12
+ trace ( identifierOrMemberExpr : string , options ?: {
13
+ followConsecutiveAssignment ?: boolean ;
14
+ moduleName ?: string ;
15
+ name ?: string ;
16
+ } ) : VariableTracer ;
17
+ getDataFromIdentifier ( identifierOrMemberExpr : string ) : null | {
18
+ name : string ;
19
+ identifierOrMemberExpr : string ;
20
+ assignmentMemory : string [ ] ;
21
+ }
22
+ walk ( node : any ) : void ;
23
+ }
24
+
25
+ export {
26
+ VariableTracer
27
+ }
You can’t perform that action at this time.
0 commit comments