@zenithbuild/compiler 1.3.1 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
|
@@ -20,25 +20,7 @@ export interface ScriptImport {
|
|
|
20
20
|
typeOnly: boolean
|
|
21
21
|
sideEffect: boolean
|
|
22
22
|
}
|
|
23
|
-
export declare function generateRuntimeCode(inputJson: string): RuntimeCode
|
|
24
23
|
export declare function generateCodegenIntent(): string
|
|
25
|
-
export declare function resolveComponentsNative(irJson: string, componentsJson: string): string
|
|
26
|
-
/** Discover all components in a directory */
|
|
27
|
-
export declare function discoverComponentsNative(baseDir: string): any
|
|
28
|
-
export declare function extractStylesNative(source: string): Array<string>
|
|
29
|
-
export declare function extractPageBindingsNative(script: string): Array<string>
|
|
30
|
-
export declare function extractPagePropsNative(script: string): Array<string>
|
|
31
|
-
export interface VirtualModule {
|
|
32
|
-
id: string
|
|
33
|
-
code: string
|
|
34
|
-
}
|
|
35
|
-
export interface BundlePlan {
|
|
36
|
-
entry: string
|
|
37
|
-
platform: string
|
|
38
|
-
format: string
|
|
39
|
-
resolveRoots: Array<string>
|
|
40
|
-
virtualModules: Array<VirtualModule>
|
|
41
|
-
}
|
|
42
24
|
/**
|
|
43
25
|
* Manifest export for the bundler's capability-based chunking.
|
|
44
26
|
* This is the Compiler → Bundler handshake contract.
|
|
@@ -74,10 +56,6 @@ export interface FinalizedOutput {
|
|
|
74
56
|
/** Manifest for bundler's capability-based chunking */
|
|
75
57
|
manifest?: ZenManifestExport
|
|
76
58
|
}
|
|
77
|
-
export declare function finalizeOutputNative(irJson: any, compiledJson: any): FinalizedOutput
|
|
78
|
-
export declare function parseTemplateNative(html: string, filePath: string): any
|
|
79
|
-
export declare function parseScriptNative(html: string): any | null
|
|
80
|
-
export declare function isComponentTagNative(tagName: string): boolean
|
|
81
59
|
/**
|
|
82
60
|
* Full Zenith compilation entry point - the "One True Syscall"
|
|
83
61
|
*
|
|
@@ -92,29 +70,6 @@ export interface ParseFullOptions {
|
|
|
92
70
|
props?: any
|
|
93
71
|
}
|
|
94
72
|
export declare function parseFullZenNative(source: string, filePath: string, optionsJson: string): any
|
|
95
|
-
export interface ExpressionAnalysisResult {
|
|
96
|
-
id: string
|
|
97
|
-
classification: string
|
|
98
|
-
dependencies: Array<string>
|
|
99
|
-
usesState: boolean
|
|
100
|
-
usesLoopContext: boolean
|
|
101
|
-
}
|
|
102
|
-
export interface EvaluatedExpression {
|
|
103
|
-
id: string
|
|
104
|
-
expressionType: string
|
|
105
|
-
dependencies: Array<string>
|
|
106
|
-
usesState: boolean
|
|
107
|
-
usesLoopContext: boolean
|
|
108
|
-
classificationJson: string
|
|
109
|
-
}
|
|
110
|
-
export interface AnalysisOutput {
|
|
111
|
-
results: Array<ExpressionAnalysisResult>
|
|
112
|
-
bindingCount: number
|
|
113
|
-
}
|
|
114
|
-
export declare function lowerFragmentsNative(nodesJson: string, expressionsJson: string, filePath: string): string
|
|
115
|
-
export declare function evaluateExpressionNative(id: string, code: string, knownBindingsJson: string, loopContextJson?: string | undefined | null): EvaluatedExpression
|
|
116
|
-
export declare function classifyExpressionNative(code: string): string
|
|
117
|
-
export declare function analyzeExpressions(inputJson: string): AnalysisOutput
|
|
118
73
|
export interface Binding {
|
|
119
74
|
id: string
|
|
120
75
|
type: string
|
|
@@ -147,6 +102,5 @@ export interface LoopContext {
|
|
|
147
102
|
variables: Array<string>
|
|
148
103
|
mapSource?: string
|
|
149
104
|
}
|
|
150
|
-
export declare function validateIr(irJson: string): CompilerError | null
|
|
151
105
|
export declare function compileBridge(): string
|
|
152
106
|
export declare class ResolutionContext { }
|