You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: acorn-walk/src/walk.d.ts
-25Lines changed: 0 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -66,10 +66,6 @@ export function simple<TState>(
66
66
67
67
/**
68
68
* does a 'simple' walk over a tree, building up an array of ancestor nodes (including the current node) and passing the array to the callbacks as a third parameter.
69
-
* @param node
70
-
* @param visitors
71
-
* @param base
72
-
* @param state
73
69
*/
74
70
exportfunctionancestor<TState>(
75
71
node: acorn.Node,
@@ -94,10 +90,6 @@ export function recursive<TState>(
94
90
95
91
/**
96
92
* does a 'full' walk over a tree, calling the {@link callback} with the arguments (node, state, type) for each node
97
-
* @param node
98
-
* @param callback
99
-
* @param base
100
-
* @param state
101
93
*/
102
94
exportfunctionfull<TState>(
103
95
node: acorn.Node,
@@ -108,10 +100,6 @@ export function full<TState>(
108
100
109
101
/**
110
102
* does a 'full' walk over a tree, building up an array of ancestor nodes (including the current node) and passing the array to the callbacks as a third parameter.
111
-
* @param node
112
-
* @param callback
113
-
* @param base
114
-
* @param state
115
103
*/
116
104
exportfunctionfullAncestor<TState>(
117
105
node: acorn.Node,
@@ -122,8 +110,6 @@ export function fullAncestor<TState>(
122
110
123
111
/**
124
112
* builds a new walker object by using the walker functions in {@link functions} and filling in the missing ones by taking defaults from {@link base}.
125
-
* @param functions
126
-
* @param base
127
113
*/
128
114
exportfunctionmake<TState>(
129
115
functions: RecursiveVisitors<TState>,
@@ -132,12 +118,6 @@ export function make<TState>(
132
118
133
119
/**
134
120
* tries to locate a node in a tree at the given start and/or end offsets, which satisfies the predicate test. {@link start} and {@link end} can be either `null` (as wildcard) or a `number`. {@link test} may be a string (indicating a node type) or a function that takes (nodeType, node) arguments and returns a boolean indicating whether this node is interesting. {@link base} and {@link state} are optional, and can be used to specify a custom walker. Nodes are tested from inner to outer, so if two nodes match the boundaries, the inner one will be preferred.
135
-
* @param node
136
-
* @param start
137
-
* @param end
138
-
* @param type
139
-
* @param base
140
-
* @param state
141
121
*/
142
122
exportfunctionfindNodeAt<TState>(
143
123
node: acorn.Node,
@@ -150,11 +130,6 @@ export function findNodeAt<TState>(
150
130
151
131
/**
152
132
* like {@link findNodeAt}, but will match any node that exists 'around' (spanning) the given position.
0 commit comments