1 |
|
2 |
|
3 | import Transformer from "./Transformer";
|
4 |
|
5 | export default class FlowTransformer extends Transformer {
|
6 | constructor( rootTransformer, tokens) {
|
7 | super();this.rootTransformer = rootTransformer;this.tokens = tokens;;
|
8 | }
|
9 |
|
10 | process() {
|
11 | return (
|
12 | this.rootTransformer.processPossibleArrowParamEnd() ||
|
13 | this.rootTransformer.processPossibleTypeRange()
|
14 | );
|
15 | }
|
16 | }
|