|
1 | 1 | import { __assign } from 'tslib' |
2 | 2 | import { ForloopDrop } from '../drop' |
3 | 3 | import { toEnumerable } from '../util' |
4 | | -import { TopLevelToken, assert, Liquid, Token, Template, evalQuotedToken, TypeGuards, Tokenizer, _evalToken, Hash, Emitter, TagToken, Context, Tag } from '..' |
| 4 | +import { TopLevelToken, assert, Liquid, Token, Template, evalQuotedToken, TypeGuards, Tokenizer, evalToken, Hash, Emitter, TagToken, Context, Tag } from '..' |
5 | 5 |
|
6 | 6 | export type ParsedFileName = Template[] | Token | string | undefined |
7 | 7 |
|
@@ -57,12 +57,12 @@ export default class extends Tag { |
57 | 57 | __assign(scope, yield hash.render(ctx)) |
58 | 58 | if (this['with']) { |
59 | 59 | const { value, alias } = this['with'] |
60 | | - scope[alias || filepath] = yield _evalToken(value, ctx) |
| 60 | + scope[alias || filepath] = yield evalToken(value, ctx) |
61 | 61 | } |
62 | 62 |
|
63 | 63 | if (this['for']) { |
64 | 64 | const { value, alias } = this['for'] |
65 | | - const collection = toEnumerable(yield _evalToken(value, ctx)) |
| 65 | + const collection = toEnumerable(yield evalToken(value, ctx)) |
66 | 66 | scope['forloop'] = new ForloopDrop(collection.length, value.getText(), alias) |
67 | 67 | for (const item of collection) { |
68 | 68 | scope[alias] = item |
@@ -109,5 +109,5 @@ function optimize (templates: Template[]): string | Template[] { |
109 | 109 | export function * renderFilePath (file: ParsedFileName, ctx: Context, liquid: Liquid): IterableIterator<unknown> { |
110 | 110 | if (typeof file === 'string') return file |
111 | 111 | if (Array.isArray(file)) return liquid.renderer.renderTemplates(file, ctx) |
112 | | - return yield _evalToken(file, ctx) |
| 112 | + return yield evalToken(file, ctx) |
113 | 113 | } |
0 commit comments