@putout/babel 4.4.1 → 4.4.2
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.
- package/bundle/index.d.ts +0 -22
- package/bundle/index.js +0 -31
- package/package.json +1 -1
package/bundle/index.d.ts
CHANGED
|
@@ -1,26 +1,4 @@
|
|
|
1
1
|
export * from '@babel/parser';
|
|
2
|
-
import { Node } from '@babel/types';
|
|
3
2
|
import * as types from '@babel/types';
|
|
4
3
|
export { types };
|
|
5
4
|
export { traverse } from '@babel/types';
|
|
6
|
-
|
|
7
|
-
interface Location {
|
|
8
|
-
start: {
|
|
9
|
-
line: number;
|
|
10
|
-
column: number;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
interface CodeFrameOptions {}
|
|
15
|
-
|
|
16
|
-
interface TemplateOptions {}
|
|
17
|
-
|
|
18
|
-
declare function codeFrameColumns(rawLines: string, location: Location, options: CodeFrameOptions): string;
|
|
19
|
-
declare function ast(source: string): Node;
|
|
20
|
-
declare function generate(ast: Node): string;
|
|
21
|
-
declare function template(source: string, options?: TemplateOptions): string;
|
|
22
|
-
declare namespace template {
|
|
23
|
-
export { ast };
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { codeFrameColumns, generate, template };
|
package/bundle/index.js
CHANGED
|
@@ -39800,8 +39800,6 @@ function DeclareExportDeclaration2(node) {
|
|
|
39800
39800
|
this.word('default');
|
|
39801
39801
|
this.space();
|
|
39802
39802
|
}
|
|
39803
|
-
|
|
39804
|
-
FlowExportDeclaration.call(this, node);
|
|
39805
39803
|
}
|
|
39806
39804
|
|
|
39807
39805
|
function DeclareExportAllDeclaration2(node) {
|
|
@@ -39904,35 +39902,6 @@ function EnumStringMember2(node) {
|
|
|
39904
39902
|
enumInitializedMember(this, node);
|
|
39905
39903
|
}
|
|
39906
39904
|
|
|
39907
|
-
function FlowExportDeclaration(node) {
|
|
39908
|
-
if (node.declaration) {
|
|
39909
|
-
const declar = node.declaration;
|
|
39910
|
-
this.print(declar);
|
|
39911
|
-
|
|
39912
|
-
if (!isStatement$12(declar))
|
|
39913
|
-
this.semicolon();
|
|
39914
|
-
} else {
|
|
39915
|
-
this.tokenChar(123);
|
|
39916
|
-
|
|
39917
|
-
if (node.specifiers.length) {
|
|
39918
|
-
this.space();
|
|
39919
|
-
this.printList(node.specifiers);
|
|
39920
|
-
this.space();
|
|
39921
|
-
}
|
|
39922
|
-
|
|
39923
|
-
this.tokenChar(125);
|
|
39924
|
-
|
|
39925
|
-
if (node.source) {
|
|
39926
|
-
this.space();
|
|
39927
|
-
this.word('from');
|
|
39928
|
-
this.space();
|
|
39929
|
-
this.print(node.source);
|
|
39930
|
-
}
|
|
39931
|
-
|
|
39932
|
-
this.semicolon();
|
|
39933
|
-
}
|
|
39934
|
-
}
|
|
39935
|
-
|
|
39936
39905
|
function ExistsTypeAnnotation2() {
|
|
39937
39906
|
this.tokenChar(42);
|
|
39938
39907
|
}
|