* fix: typo * declare name for flow interface * add test case for export overload function, typescript * test: add test Fixes #10044 * test: update test * test(flow): add multiple declarations regression test * re-enable flow test case # Conflicts: # packages/babel-plugin-transform-flow-strip-types/test/fixtures/strip-types/def-site-variance/input.js # packages/babel-plugin-transform-flow-strip-types/test/fixtures/strip-types/strip-declare-statements/input.js # packages/babel-plugin-transform-flow-strip-types/test/fixtures/strip-types/strip-interfaces-module-and-script/input.js # packages/babel-plugin-transform-flow-strip-types/test/fixtures/strip-types/strip-iterator/input.js * test: disable two flow dupl-decl test * fix: do not declare name for declare function until we figure out a better way * test: duplicate declare function and function would not throw
160 lines
3.3 KiB
JSON
160 lines
3.3 KiB
JSON
{
|
|
"type": "File",
|
|
"start": 0,
|
|
"end": 37,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 19
|
|
}
|
|
},
|
|
"program": {
|
|
"type": "Program",
|
|
"start": 0,
|
|
"end": 37,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 19
|
|
}
|
|
},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "InterfaceDeclaration",
|
|
"start": 0,
|
|
"end": 16,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 16
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 10,
|
|
"end": 13,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 13
|
|
},
|
|
"identifierName": "Foo"
|
|
},
|
|
"name": "Foo"
|
|
},
|
|
"typeParameters": null,
|
|
"extends": [],
|
|
"implements": [],
|
|
"mixins": [],
|
|
"body": {
|
|
"type": "ObjectTypeAnnotation",
|
|
"start": 14,
|
|
"end": 16,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 16
|
|
}
|
|
},
|
|
"callProperties": [],
|
|
"properties": [],
|
|
"indexers": [],
|
|
"internalSlots": [],
|
|
"exact": false
|
|
}
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start": 18,
|
|
"end": 37,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 19
|
|
}
|
|
},
|
|
"specifiers": [
|
|
{
|
|
"type": "ExportSpecifier",
|
|
"start": 32,
|
|
"end": 35,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 17
|
|
}
|
|
},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start": 32,
|
|
"end": 35,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 17
|
|
},
|
|
"identifierName": "Foo"
|
|
},
|
|
"name": "Foo"
|
|
},
|
|
"exported": {
|
|
"type": "Identifier",
|
|
"start": 32,
|
|
"end": 35,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 17
|
|
},
|
|
"identifierName": "Foo"
|
|
},
|
|
"name": "Foo"
|
|
}
|
|
}
|
|
],
|
|
"source": null,
|
|
"exportKind": "type",
|
|
"declaration": null
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |