Skip to content

@arcmantle/lit-jsx / compiler/transpiler

compiler/transpiler

Classes

CompiledTranspiler

Defined in: compiler/transpiler.ts:420

Extends

Constructors

Constructor

new CompiledTranspiler(): CompiledTranspiler

Returns

CompiledTranspiler

Inherited from

JSXTranspiler<CompiledContext>.constructor

Methods

attributes()

attributes(context): void

Defined in: compiler/transpiler.ts:471

Parameters
context

CompiledContext

Returns

void

Overrides

JSXTranspiler.attributes

children()

children(context): void

Defined in: compiler/transpiler.ts:487

Parameters
context

CompiledContext

Returns

void

Overrides

JSXTranspiler.children

closingTag()

closingTag(context): void

Defined in: compiler/transpiler.ts:524

Parameters
context

CompiledContext

Returns

void

Overrides

JSXTranspiler.closingTag

createContext()

protected createContext(path): CompiledContext

Defined in: compiler/transpiler.ts:422

Parameters
path

NodePath<JSXElement | JSXFragment>

Returns

CompiledContext

Overrides

JSXTranspiler.createContext

createExpression()

createExpression(context): Expression

Defined in: compiler/transpiler.ts:528

Parameters
context

CompiledContext

Returns

Expression

Overrides

JSXTranspiler.createExpression

createFunctionalComponent()

createFunctionalComponent(path): Expression

Defined in: compiler/transpiler.ts:538

Parameters
path

NodePath<JSXElement | JSXFragment>

Returns

Expression

Overrides

JSXTranspiler.createFunctionalComponent

functionalComponent()

functionalComponent(context): void

Defined in: compiler/transpiler.ts:674

Parameters
context

CompiledContext

Returns

void

Overrides

JSXTranspiler.functionalComponent

openingTag()

openingTag(context): void

Defined in: compiler/transpiler.ts:467

Parameters
context

CompiledContext

Returns

void

Overrides

JSXTranspiler.openingTag

process()

process(context): void

Defined in: compiler/transpiler.ts:436

Parameters
context

CompiledContext

Returns

void

Overrides

JSXTranspiler.process

start()

start(path): Expression

Defined in: compiler/transpiler.ts:49

Parameters
path

NodePath<JSXElement | JSXFragment>

Returns

Expression

Inherited from

JSXTranspiler.start


TemplateTranspiler

Defined in: compiler/transpiler.ts:78

Extends

Constructors

Constructor

new TemplateTranspiler(): TemplateTranspiler

Returns

TemplateTranspiler

Inherited from

JSXTranspiler<TemplateContext>.constructor

Methods

attributes()

attributes(context): void

Defined in: compiler/transpiler.ts:162

Parameters
context

TemplateContext

Returns

void

Overrides

JSXTranspiler.attributes

children()

children(context): void

Defined in: compiler/transpiler.ts:177

Parameters
context

TemplateContext

Returns

void

Overrides

JSXTranspiler.children

closingTag()

closingTag(context): void

Defined in: compiler/transpiler.ts:210

Parameters
context

TemplateContext

Returns

void

Overrides

JSXTranspiler.closingTag

createContext()

protected createContext(path): TemplateContext

Defined in: compiler/transpiler.ts:80

Parameters
path

NodePath<JSXElement | JSXFragment>

Returns

TemplateContext

Overrides

JSXTranspiler.createContext

createExpression()

createExpression(context): Expression

Defined in: compiler/transpiler.ts:222

Parameters
context

TemplateContext

Returns

Expression

Overrides

JSXTranspiler.createExpression

createFunctionalComponent()

createFunctionalComponent(path): Expression

Defined in: compiler/transpiler.ts:268

Parameters
path

NodePath<JSXElement | JSXFragment>

Returns

Expression

Overrides

JSXTranspiler.createFunctionalComponent

functionalComponent()

functionalComponent(context): void

Defined in: compiler/transpiler.ts:404

Parameters
context

TemplateContext

Returns

void

Overrides

JSXTranspiler.functionalComponent

openingTag()

openingTag(context): void

Defined in: compiler/transpiler.ts:130

Parameters
context

TemplateContext

Returns

void

Overrides

JSXTranspiler.openingTag

process()

process(context): void

Defined in: compiler/transpiler.ts:94

Parameters
context

TemplateContext

Returns

void

Overrides

JSXTranspiler.process

start()

start(path): Expression

Defined in: compiler/transpiler.ts:49

Parameters
path

NodePath<JSXElement | JSXFragment>

Returns

Expression

Inherited from

JSXTranspiler.start

Interfaces

CompiledContext

Defined in: compiler/transpiler.ts:415

Extends

Properties

builder

builder: CompiledBuilder

Defined in: compiler/transpiler.ts:416

Overrides

ProcessorContext.builder

currentIndex

currentIndex: object

Defined in: compiler/transpiler.ts:417

value

value: number

importsUsed

importsUsed: Set<"rest" | "html" | "svg" | "htmlStatic" | "svgStatic" | "mathml" | "mathmlStatic" | "unsafeStatic" | "classMap" | "styleMap" | "createRef" | "literalMap" | "taggedTemplateUtil" | "booleanPart" | "attributePart" | "propertyPart" | "elementPart" | "eventPart" | "childPart">

Defined in: compiler/attribute-processor.ts:125

Inherited from

ProcessorContext.importsUsed

isInitialElement

isInitialElement: boolean

Defined in: compiler/attribute-processor.ts:124

Inherited from

ProcessorContext.isInitialElement

path

path: NodePath<JSXElement | JSXFragment>

Defined in: compiler/attribute-processor.ts:122

Inherited from

ProcessorContext.path

program

program: Program

Defined in: compiler/attribute-processor.ts:121

Inherited from

ProcessorContext.program

tagName

tagName: string

Defined in: compiler/attribute-processor.ts:123

Inherited from

ProcessorContext.tagName


TemplateContext

Defined in: compiler/transpiler.ts:73

Extends

Properties

builder

builder: TemplateBuilder

Defined in: compiler/transpiler.ts:74

Overrides

ProcessorContext.builder

importsUsed

importsUsed: Set<"rest" | "html" | "svg" | "htmlStatic" | "svgStatic" | "mathml" | "mathmlStatic" | "unsafeStatic" | "classMap" | "styleMap" | "createRef" | "literalMap" | "taggedTemplateUtil" | "booleanPart" | "attributePart" | "propertyPart" | "elementPart" | "eventPart" | "childPart">

Defined in: compiler/attribute-processor.ts:125

Inherited from

ProcessorContext.importsUsed

isInitialElement

isInitialElement: boolean

Defined in: compiler/attribute-processor.ts:124

Inherited from

ProcessorContext.isInitialElement

literalName

literalName: string

Defined in: compiler/transpiler.ts:75

path

path: NodePath<JSXElement | JSXFragment>

Defined in: compiler/attribute-processor.ts:122

Inherited from

ProcessorContext.path

program

program: Program

Defined in: compiler/attribute-processor.ts:121

Inherited from

ProcessorContext.program

tagName

tagName: string

Defined in: compiler/attribute-processor.ts:123

Inherited from

ProcessorContext.tagName

Released under the Apache-2.0 License.