Add a prefix to Flow specific AST node type
Author: fiskerCreated Dec 12, 2025Updated Jan 23, 2026
Labelsparsing
Add a prefix to the type of Node.
- Avoid future conflicts with new ES syntax. Eg: we already support
Matchsyntax, but there is a proposal ECMAScript Pattern Matching, once it reachs higher stage, most likly ESTree will usePatternorMatchas a prefix for these nodes. - Prettier currently supports 330 types of node (exclude 8 from flow v0.294), sometimes it's hard to tell which node is from Flow,
typescript-eslintprefixes the node withTS, and our Angular related node also useNGas a prefix, they are easy to identify.
Source: facebook/flow