st-bundle
Version:
CLI for watching and bundling SpringType projects.
158 lines (157 loc) • 3.98 kB
TypeScript
import { IWebWorkerType } from '../analysis/fastAnalysis';
export declare function getVariableDeclarations(node: any): any;
export declare function getSpecifiers(node: any): any;
export declare function isExportDefaultDeclaration(node: any): boolean;
export declare function isExportNamedDeclaration(node: any): boolean;
export declare function isFunctionDeclaration(node: any): boolean;
export declare function isClassDeclaration(node: any): boolean;
export declare function isWorkerStatement(node: any): {
value: string;
type: IWebWorkerType;
};
export declare function isRequireStatement(node: any, parent: any): any;
export declare function isShortHandIdentifier(node: any, parent: any): {
node: any;
parent: any;
};
export declare function isLocalIdentifier(node: any, parent: any): boolean;
export declare function createTracedExpression(local: string, property: any): {
type: string;
object: {
type: string;
name: string;
};
computed: boolean;
property: any;
};
export declare function createRequireStatement(local: string, source: string): {
type: string;
expression: {
type: string;
callee: {
type: string;
name: string;
};
arguments: {
type: string;
value: string;
}[];
};
declarations?: undefined;
kind?: undefined;
} | {
type: string;
declarations: {
type: string;
id: {
type: string;
start: number;
end: number;
name: string;
};
init: {
type: string;
callee: {
type: string;
name: string;
};
arguments: {
type: string;
value: string;
}[];
};
}[];
kind: string;
expression?: undefined;
};
export declare function createLocalVariable(name: string, property: any): {
type: string;
declarations: {
type: string;
id: {
type: string;
name: string;
};
init: any;
}[];
kind: string;
};
export declare function createMemberExpression(obj: string, target: string): {
type: string;
object: {
type: string;
name: string;
};
property: {
type: string;
name: string;
};
computed: boolean;
};
export declare function createExportsExpression(name: string): {
type: string;
object: {
type: string;
name: string;
};
computed: boolean;
property: {
type: string;
name: string;
};
};
export declare function createModuleExports(exportsVariableName: any, property: any): {
type: string;
expression: {
type: string;
operator: string;
left: {
type: string;
object: {
type: string;
name: string;
};
computed: boolean;
property: {
type: string;
name: any;
};
};
right: any;
};
};
export declare function createModuleExportsAssign(fromSource: string): {
type: string;
expression: {
type: string;
callee: {
type: string;
object: {
type: string;
name: string;
};
computed: boolean;
property: {
type: string;
name: string;
};
};
arguments: ({
type: string;
name: string;
callee?: undefined;
arguments?: undefined;
} | {
type: string;
callee: {
type: string;
name: string;
};
arguments: {
type: string;
value: string;
}[];
name?: undefined;
})[];
};
};