1▶// https://github.com/vuejs/core/blob/main/packages/compiler-core/src/babelUtils.ts
2
3// should only use types from @babel/types
· · ·
6 Identifier,
7 Node,
8▶ Function,
9 ObjectProperty,
10 BlockStatement,
· · ·
13import { walk } from 'estree-walker'
14
15▶export function walkIdentifiers(
16 root: Node,
17 onIdentifier: (
· · ·
60 // mark property in destructure pattern
61 ;(node as any).inPattern = true
62▶ } else if (isFunctionType(node)) {
63 // walk function expressions and add its arguments to known identifiers
64 // so that we don't prefix them
· · ·
63▶ // walk function expressions and add its arguments to known identifiers
64 // so that we don't prefix them
65 walkFunctionParams(node, id => markScopeIdentifier(node, id, knownIds))
+ 20 more matches in this file