|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
895 bytes
|
| Line | |
|---|
| 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
|---|
| 4 | value: true
|
|---|
| 5 | });
|
|---|
| 6 | exports.clear = clear;
|
|---|
| 7 | exports.clearPath = clearPath;
|
|---|
| 8 | exports.clearScope = clearScope;
|
|---|
| 9 | exports.getCachedPaths = getCachedPaths;
|
|---|
| 10 | exports.getOrCreateCachedPaths = getOrCreateCachedPaths;
|
|---|
| 11 | exports.scope = exports.path = void 0;
|
|---|
| 12 | let pathsCache = exports.path = new WeakMap();
|
|---|
| 13 | let scope = exports.scope = new WeakMap();
|
|---|
| 14 | function clear() {
|
|---|
| 15 | clearPath();
|
|---|
| 16 | clearScope();
|
|---|
| 17 | }
|
|---|
| 18 | function clearPath() {
|
|---|
| 19 | exports.path = pathsCache = new WeakMap();
|
|---|
| 20 | }
|
|---|
| 21 | function clearScope() {
|
|---|
| 22 | exports.scope = scope = new WeakMap();
|
|---|
| 23 | }
|
|---|
| 24 | function getCachedPaths(path) {
|
|---|
| 25 | const {
|
|---|
| 26 | parent,
|
|---|
| 27 | parentPath
|
|---|
| 28 | } = path;
|
|---|
| 29 | return pathsCache.get(parent);
|
|---|
| 30 | }
|
|---|
| 31 | function getOrCreateCachedPaths(node, parentPath) {
|
|---|
| 32 | let paths = pathsCache.get(node);
|
|---|
| 33 | if (!paths) pathsCache.set(node, paths = new Map());
|
|---|
| 34 | return paths;
|
|---|
| 35 | }
|
|---|
| 36 |
|
|---|
| 37 | //# sourceMappingURL=cache.js.map
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.