Skip to content

Commit bc79607

Browse files
committed
add comment
1 parent 6948045 commit bc79607

File tree

1 file changed

+4
-0
lines changed
  • packages/svelte/src/compiler/phases/3-transform/client/visitors/shared

1 file changed

+4
-0
lines changed

packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/utils.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ export function memoize_expression(state, value) {
2020
return b.call('$.get', id);
2121
}
2222

23+
/**
24+
* A utility for extracting complex expressions (such as call expressions)
25+
* from templates and replacing them with `$0`, `$1` etc
26+
*/
2327
export class Memoizer {
2428
/** @type {Array<{ id: Identifier, expression: Expression }>} */
2529
#sync = [];

0 commit comments

Comments
 (0)