mirror of
https://github.com/swc-project/swc.git
synced 2024-11-23 17:54:15 +03:00
feat(node/swc): Add a named export for Visitor
(#2291)
This commit is contained in:
parent
552fc2374d
commit
2580f1a372
@ -160,7 +160,7 @@ import {
|
|||||||
TsConstAssertion,
|
TsConstAssertion,
|
||||||
} from "./types";
|
} from "./types";
|
||||||
|
|
||||||
export default class Visitor {
|
export class Visitor {
|
||||||
visitProgram(n: Program): Program {
|
visitProgram(n: Program): Program {
|
||||||
switch (n.type) {
|
switch (n.type) {
|
||||||
case "Module":
|
case "Module":
|
||||||
@ -1723,3 +1723,5 @@ export default class Visitor {
|
|||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export default Visitor;
|
||||||
|
Loading…
Reference in New Issue
Block a user