mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
refactor
This commit is contained in:
parent
a3421b9c0a
commit
499257cbf1
2 changed files with 1093 additions and 1009 deletions
|
@ -3736,15 +3736,14 @@ function traverseInner(ctx, visitTypes, visitor, id) {
|
|||
// Expressions
|
||||
case AstType.CallExpression: {
|
||||
const calleeId = readU32(buf, offset);
|
||||
traverseInner(ctx, visitTypes, visitor, calleeId);
|
||||
|
||||
const typeArgId = readU32(buf, offset + 4);
|
||||
if (typeArgId > 0) {
|
||||
traverseInner(ctx, visitTypes, visitor, typeArgId);
|
||||
}
|
||||
|
||||
const childIds = readChildIds(buf, offset + 8);
|
||||
return traverseChildren(ctx, visitTypes, visitor, childIds);
|
||||
|
||||
traverseInner(ctx, visitTypes, visitor, calleeId);
|
||||
traverseInner(ctx, visitTypes, visitor, typeArgId);
|
||||
traverseChildren(ctx, visitTypes, visitor, childIds);
|
||||
|
||||
return;
|
||||
}
|
||||
case AstType.ArrowFunctionExpression: {
|
||||
// Skip flags
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue