Rename "babylon" to "@babel/parser" (#7937) 🎉

This commit is contained in:
Chaitanya Kumar Kamatham
2018-05-18 21:03:05 -07:00
committed by Henry Zhu
parent 0200a3e510
commit daf0ca8680
7587 changed files with 146 additions and 129 deletions

View File

@@ -0,0 +1 @@
declare module "foo" { declare export function bar(p1: number): string; }

View File

@@ -0,0 +1,233 @@
{
"type": "File",
"start": 0,
"end": 73,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 73
}
},
"program": {
"type": "Program",
"start": 0,
"end": 73,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 73
}
},
"sourceType": "module",
"body": [
{
"type": "DeclareModule",
"start": 0,
"end": 73,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 73
}
},
"id": {
"type": "StringLiteral",
"start": 15,
"end": 20,
"loc": {
"start": {
"line": 1,
"column": 15
},
"end": {
"line": 1,
"column": 20
}
},
"extra": {
"rawValue": "foo",
"raw": "\"foo\""
},
"value": "foo"
},
"body": {
"type": "BlockStatement",
"start": 21,
"end": 73,
"loc": {
"start": {
"line": 1,
"column": 21
},
"end": {
"line": 1,
"column": 73
}
},
"body": [
{
"type": "DeclareExportDeclaration",
"start": 23,
"end": 71,
"loc": {
"start": {
"line": 1,
"column": 23
},
"end": {
"line": 1,
"column": 71
}
},
"declaration": {
"type": "DeclareFunction",
"start": 38,
"end": 71,
"loc": {
"start": {
"line": 1,
"column": 38
},
"end": {
"line": 1,
"column": 71
}
},
"id": {
"type": "Identifier",
"start": 47,
"end": 70,
"loc": {
"start": {
"line": 1,
"column": 47
},
"end": {
"line": 1,
"column": 70
},
"identifierName": "bar"
},
"name": "bar",
"typeAnnotation": {
"type": "TypeAnnotation",
"start": 50,
"end": 70,
"loc": {
"start": {
"line": 1,
"column": 50
},
"end": {
"line": 1,
"column": 70
}
},
"typeAnnotation": {
"type": "FunctionTypeAnnotation",
"start": 50,
"end": 70,
"loc": {
"start": {
"line": 1,
"column": 50
},
"end": {
"line": 1,
"column": 70
}
},
"typeParameters": null,
"params": [
{
"type": "FunctionTypeParam",
"start": 51,
"end": 61,
"loc": {
"start": {
"line": 1,
"column": 51
},
"end": {
"line": 1,
"column": 61
}
},
"name": {
"type": "Identifier",
"start": 51,
"end": 53,
"loc": {
"start": {
"line": 1,
"column": 51
},
"end": {
"line": 1,
"column": 53
},
"identifierName": "p1"
},
"name": "p1"
},
"optional": false,
"typeAnnotation": {
"type": "NumberTypeAnnotation",
"start": 55,
"end": 61,
"loc": {
"start": {
"line": 1,
"column": 55
},
"end": {
"line": 1,
"column": 61
}
}
}
}
],
"rest": null,
"returnType": {
"type": "StringTypeAnnotation",
"start": 64,
"end": 70,
"loc": {
"start": {
"line": 1,
"column": 64
},
"end": {
"line": 1,
"column": 70
}
}
}
}
}
},
"predicate": null
},
"default": false
}
]
},
"kind": "ES"
}
],
"directives": []
}
}