17 lines
452 B
JavaScript
17 lines
452 B
JavaScript
|
|
|
|
import Transformer from "./Transformer";
|
|
|
|
export default class FlowTransformer extends Transformer {
|
|
constructor( rootTransformer, tokens) {
|
|
super();this.rootTransformer = rootTransformer;this.tokens = tokens;;
|
|
}
|
|
|
|
process() {
|
|
return (
|
|
this.rootTransformer.processPossibleArrowParamEnd() ||
|
|
this.rootTransformer.processPossibleAsyncArrowWithTypeParams() ||
|
|
this.rootTransformer.processPossibleTypeRange()
|
|
);
|
|
}
|
|
}
|