File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ import {
40
40
memberExpression ,
41
41
numericLiteral ,
42
42
toIdentifier ,
43
- unaryExpression ,
44
43
variableDeclaration ,
45
44
variableDeclarator ,
46
45
isRecordExpression ,
@@ -50,6 +49,7 @@ import {
50
49
isMetaProperty ,
51
50
isPrivateName ,
52
51
isExportDeclaration ,
52
+ buildUndefinedNode ,
53
53
} from "@babel/types" ;
54
54
import * as t from "@babel/types" ;
55
55
import { scope as scopeCache } from "../cache.ts" ;
@@ -783,7 +783,7 @@ export default class Scope {
783
783
}
784
784
785
785
buildUndefinedNode ( ) {
786
- return unaryExpression ( "void" , numericLiteral ( 0 ) , true ) ;
786
+ return buildUndefinedNode ( ) ;
787
787
}
788
788
789
789
registerConstantViolation ( path : NodePath ) {
Original file line number Diff line number Diff line change
1
+ import { numericLiteral , unaryExpression } from "./generated/index.ts" ;
2
+
3
+ export function buildUndefinedNode ( ) {
4
+ return unaryExpression ( "void" , numericLiteral ( 0 ) , true ) ;
5
+ }
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ export { default as createFlowUnionType } from "./builders/flow/createFlowUnionT
14
14
export { default as createTSUnionType } from "./builders/typescript/createTSUnionType.ts" ;
15
15
export * from "./builders/generated/index.ts" ;
16
16
export * from "./builders/generated/uppercase.js" ;
17
+ export * from "./builders/productions.ts" ;
17
18
18
19
// clone
19
20
export { default as cloneNode } from "./clone/cloneNode.ts" ;
You can’t perform that action at this time.
0 commit comments