@glimmer/compiler
- Version 0.92.4
- Published
- 544 kB
- 5 dependencies
- MIT license
Install
npm i @glimmer/compiler
yarn add @glimmer/compiler
pnpm add @glimmer/compiler
Overview
Overview not available.
Index
Variables
Functions
Classes
Enums
Type Aliases
Variables
Functions
function buildStatement
buildStatement: ( normalized: NormalizedStatement, symbols?: Symbols) => WireFormat.Statement[];
function buildStatements
buildStatements: ( statements: BuilderStatement[], symbols: Symbols) => WireFormat.Statement[];
function c
c: (arr: TemplateStringsArray, ...interpolated: unknown[]) => BuilderComment;
function precompile
precompile: ( source: string, options?: PrecompileOptions | PrecompileOptionsWithLexicalScope) => TemplateJavascript;
function precompileJSON
precompileJSON: ( string: Nullable<string>, options?: PrecompileOptions | PrecompileOptionsWithLexicalScope) => [block: SerializedTemplateBlock, usedLocals: string[]];
function s
s: ( arr: TemplateStringsArray, ...interpolated: unknown[]) => [Builder.Literal, string];
function unicode
unicode: (charCode: string) => string;
Classes
class ProgramSymbols
class ProgramSymbols implements Symbols {}
property top
top: ProgramSymbols;
method arg
arg: (name: string) => number;
method block
block: (name: string) => number;
method child
child: (locals: string[]) => LocalSymbols;
method freeVar
freeVar: (name: string) => number;
method hasLocal
hasLocal: (_name: string) => false;
method local
local: (name: string) => never;
method symbol
symbol: (name: string) => number;
method this
this: () => number;
method toSymbols
toSymbols: () => string[];
method toUpvars
toUpvars: () => string[];
class WireFormatDebugger
class WireFormatDebugger {}
constructor
constructor([_statements, symbols, _hasEval, upvars]: SerializedTemplateBlock);
method format
format: (program: SerializedTemplateBlock) => unknown;
method formatOpcode
formatOpcode: (opcode: WireFormat.Syntax) => unknown;
Enums
enum Builder
enum Builder { Literal = 0, Comment = 1, Append = 2, Modifier = 3, DynamicComponent = 4, Get = 5, Concat = 6, HasBlock = 7, HasBlockParams = 8,}
member Append
Append = 2
member Comment
Comment = 1
member Concat
Concat = 6
member DynamicComponent
DynamicComponent = 4
member Get
Get = 5
member HasBlock
HasBlock = 7
member HasBlockParams
HasBlockParams = 8
member Literal
Literal = 0
member Modifier
Modifier = 3
Type Aliases
type BuilderStatement
type BuilderStatement = | VerboseStatement | SugaryArrayStatement | TupleBuilderExpression | string;
Package Files (1)
Dependencies (5)
Dev Dependencies (7)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@glimmer/compiler
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@glimmer/compiler)
- HTML<a href="https://www.jsdocs.io/package/@glimmer/compiler"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 3922 ms. - Missing or incorrect documentation? Open an issue for this package.