Component syntax and related language features printing support (#16191)
* Component syntax and related language features printing support Relevant Flow docs: - https://flow.org/en/docs/react/component-syntax/ - https://flow.org/en/docs/react/render-types/ * Update issue number * declare new test as unstable * fix tests
This commit is contained in:
1 parent
d498b6f2a5
commit
ae8dcc48f5
25 files changed
+1657
-19
No files matched your search
@@ -147,6 +147,27 @@ exports[`visitor keys estree 1`] = `
|
||||
"decorators",
|
||||
"variance",
|
||||
],
|
||||
"ComponentDeclaration": [
|
||||
"id",
|
||||
"params",
|
||||
"body",
|
||||
"typeParameters",
|
||||
"rendersType",
|
||||
],
|
||||
"ComponentParameter": [
|
||||
"name",
|
||||
"local",
|
||||
],
|
||||
"ComponentTypeAnnotation": [
|
||||
"params",
|
||||
"rest",
|
||||
"typeParameters",
|
||||
"rendersType",
|
||||
],
|
||||
"ComponentTypeParameter": [
|
||||
"name",
|
||||
"typeAnnotation",
|
||||
],
|
||||
"ConditionalExpression": [
|
||||
"test",
|
||||
"consequent",
|
||||
@@ -171,6 +192,13 @@ exports[`visitor keys estree 1`] = `
|
||||
"implements",
|
||||
"body",
|
||||
],
|
||||
"DeclareComponent": [
|
||||
"id",
|
||||
"params",
|
||||
"rest",
|
||||
"typeParameters",
|
||||
"rendersType",
|
||||
],
|
||||
"DeclareEnum": [
|
||||
"id",
|
||||
"body",
|
||||
@@ -187,6 +215,9 @@ exports[`visitor keys estree 1`] = `
|
||||
"id",
|
||||
"predicate",
|
||||
],
|
||||
"DeclareHook": [
|
||||
"id",
|
||||
],
|
||||
"DeclareInterface": [
|
||||
"id",
|
||||
"typeParameters",
|
||||
@@ -350,6 +381,19 @@ exports[`visitor keys estree 1`] = `
|
||||
"id",
|
||||
"typeParameters",
|
||||
],
|
||||
"HookDeclaration": [
|
||||
"id",
|
||||
"params",
|
||||
"body",
|
||||
"typeParameters",
|
||||
"returnType",
|
||||
],
|
||||
"HookTypeAnnotation": [
|
||||
"params",
|
||||
"returnType",
|
||||
"rest",
|
||||
"typeParameters",
|
||||
],
|
||||
"Identifier": [
|
||||
"typeAnnotation",
|
||||
"decorators",
|
||||
|
||||
Reference in new issue
Block a user