-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1663 from glimmerjs/internals/streamline-and-mode…
…rnize-naming Streamline and modernize naming
- Loading branch information
Showing
62 changed files
with
840 additions
and
803 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 8 additions & 23 deletions
31
packages/@glimmer-workspace/benchmark-env/lib/benchmark/render-benchmark.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/@glimmer-workspace/benchmark-env/lib/benchmark/util.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 5 additions & 14 deletions
19
packages/@glimmer-workspace/integration-tests/lib/modes/jit/render.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,20 @@ | ||
import type { ElementBuilder, RenderResult } from '@glimmer/interfaces'; | ||
import type { EvaluationContext, RenderResult, TreeBuilder } from '@glimmer/interfaces'; | ||
import type { Reference } from '@glimmer/reference'; | ||
import type { PrecompileOptions } from '@glimmer/syntax'; | ||
import { unwrapTemplate } from '@glimmer/debug-util'; | ||
import { renderMain, renderSync } from '@glimmer/runtime'; | ||
|
||
import type { JitTestDelegateContext } from './delegate'; | ||
|
||
import { preprocess } from '../../compile'; | ||
|
||
export function renderTemplate( | ||
src: string, | ||
{ runtime, program }: JitTestDelegateContext, | ||
context: EvaluationContext, | ||
self: Reference, | ||
builder: ElementBuilder, | ||
builder: TreeBuilder, | ||
options?: PrecompileOptions | ||
): RenderResult { | ||
let template = preprocess(src, options); | ||
|
||
let iterator = renderMain( | ||
runtime, | ||
program, | ||
{}, | ||
self, | ||
builder, | ||
unwrapTemplate(template).asLayout() | ||
); | ||
return renderSync(runtime.env, iterator); | ||
let iterator = renderMain(context, {}, self, builder, unwrapTemplate(template).asLayout()); | ||
return renderSync(context.env, iterator); | ||
} |
4 changes: 2 additions & 2 deletions
4
packages/@glimmer-workspace/integration-tests/lib/modes/jit/resolver.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.