import { BeforeVisitorOptions } from "../before-visitor-options" ; import { TS } from "../../../type/type" ; import { visitClassLikeDeclaration } from "./visit-class-like-declaration" ; import { visitCallExpression } from "./visit-call-expression" ; export function visitNode < T extends TS . Node > ( options ) { if ( options . context . typescript . isClassLike ( options . node ) ) { return visitClassLikeDeclaration ( { ... options , node : options . node } ) ; } else if ( options . context . typescript . isCallExpression ( options . node ) ) { return visitCallExpression ( { ... options , node : options . node } ) ; } return options . childContinuation ( options . node ) ; }