Skip to content

Instantly share code, notes, and snippets.

@tsibley
Created March 31, 2023 19:15
Show Gist options
  • Save tsibley/06761e22bff4fdc812a348b1871e3dd7 to your computer and use it in GitHub Desktop.
Save tsibley/06761e22bff4fdc812a348b1871e3dd7 to your computer and use it in GitHub Desktop.
diff --git a/tmp/babel b/tmp/ts
index c714d34cb..53848a13a 100644
--- a/tmp/babel
+++ b/tmp/ts
@@ -5,43 +5,20 @@
"body": [
{
"computed": false,
- "end": 75,
"key": {
- "end": 45,
- "loc": {
- "end": {
- "column": 9,
- "line": 2
- },
- "start": {
- "column": 2,
- "line": 2
- }
- },
"name": "renderX",
"range": [
38,
45
],
- "start": 38,
"type": "Identifier"
},
"kind": "method",
- "loc": {
- "end": {
- "column": 3,
- "line": 4
- },
- "start": {
- "column": 2,
- "line": 2
- }
- },
+ "override": false,
"range": [
38,
75
],
- "start": 38,
"static": false,
"type": "MethodDefinition",
"value": {
@@ -52,48 +29,14 @@
"argument": {
"children": [],
"closingElement": null,
- "end": 69,
- "loc": {
- "end": {
- "column": 19,
- "line": 3
- },
- "start": {
- "column": 12,
- "line": 3
- }
- },
"openingElement": {
"attributes": [],
- "end": 69,
- "loc": {
- "end": {
- "column": 19,
- "line": 3
- },
- "start": {
- "column": 12,
- "line": 3
- }
- },
"name": {
- "end": 66,
- "loc": {
- "end": {
- "column": 16,
- "line": 3
- },
- "start": {
- "column": 13,
- "line": 3
- }
- },
"name": "Bar",
"range": [
63,
66
],
- "start": 63,
"type": "JSXIdentifier"
},
"range": [
@@ -101,190 +44,80 @@
69
],
"selfClosing": true,
- "start": 62,
"type": "JSXOpeningElement"
},
"range": [
62,
69
],
- "start": 62,
"type": "JSXElement"
},
- "end": 71,
- "loc": {
- "end": {
- "column": 21,
- "line": 3
- },
- "start": {
- "column": 4,
- "line": 3
- }
- },
"range": [
54,
71
],
- "start": 54,
"type": "ReturnStatement"
}
],
- "end": 75,
- "loc": {
- "end": {
- "column": 3,
- "line": 4
- },
- "start": {
- "column": 12,
- "line": 2
- }
- },
"range": [
48,
75
],
- "start": 48,
"type": "BlockStatement"
},
- "end": 75,
"expression": false,
"generator": false,
"id": null,
- "loc": {
- "end": {
- "column": 3,
- "line": 4
- },
- "start": {
- "column": 9,
- "line": 2
- }
- },
"params": [],
"range": [
45,
75
],
- "start": 45,
"type": "FunctionExpression"
}
}
],
- "end": 77,
- "loc": {
- "end": {
- "column": 1,
- "line": 5
- },
- "start": {
- "column": 34,
- "line": 1
- }
- },
"range": [
34,
77
],
- "start": 34,
"type": "ClassBody"
},
- "end": 77,
"id": {
- "end": 9,
- "loc": {
- "end": {
- "column": 9,
- "line": 1
- },
- "start": {
- "column": 6,
- "line": 1
- }
- },
"name": "Foo",
"range": [
6,
9
],
- "start": 6,
"type": "Identifier"
},
- "loc": {
- "end": {
- "column": 1,
- "line": 5
- },
- "start": {
- "column": 0,
- "line": 1
- }
- },
"range": [
0,
77
],
- "start": 0,
"superClass": {
"computed": false,
- "end": 33,
- "loc": {
- "end": {
- "column": 33,
- "line": 1
- },
- "start": {
- "column": 18,
- "line": 1
- }
- },
"object": {
- "end": 23,
- "loc": {
- "end": {
- "column": 23,
- "line": 1
- },
- "start": {
- "column": 18,
- "line": 1
- }
- },
"name": "React",
"range": [
18,
23
],
- "start": 18,
"type": "Identifier"
},
"optional": false,
"property": {
- "end": 33,
- "loc": {
- "end": {
- "column": 33,
- "line": 1
- },
- "start": {
- "column": 24,
- "line": 1
- }
- },
"name": "Component",
"range": [
24,
33
],
- "start": 24,
"type": "Identifier"
},
"range": [
18,
33
],
- "start": 18,
"type": "MemberExpression"
},
"type": "ClassDeclaration"
@@ -292,25 +125,12 @@
{
"declarations": [
{
- "end": 110,
"id": {
- "end": 88,
- "loc": {
- "end": {
- "column": 9,
- "line": 7
- },
- "start": {
- "column": 6,
- "line": 7
- }
- },
"name": "Bar",
"range": [
85,
88
],
- "start": 85,
"type": "Identifier"
},
"init": {
@@ -318,116 +138,45 @@
"body": {
"children": [
{
- "end": 106,
- "loc": {
- "end": {
- "column": 27,
- "line": 7
- },
- "start": {
- "column": 24,
- "line": 7
- }
- },
"range": [
103,
106
],
"raw": "bar",
- "start": 103,
"type": "JSXText",
"value": "bar"
}
],
"closingFragment": {
- "end": 109,
- "loc": {
- "end": {
- "column": 30,
- "line": 7
- },
- "start": {
- "column": 27,
- "line": 7
- }
- },
"range": [
106,
109
],
- "start": 106,
"type": "JSXClosingFragment"
},
- "end": 109,
- "loc": {
- "end": {
- "column": 30,
- "line": 7
- },
- "start": {
- "column": 22,
- "line": 7
- }
- },
"openingFragment": {
- "end": 103,
- "loc": {
- "end": {
- "column": 24,
- "line": 7
- },
- "start": {
- "column": 22,
- "line": 7
- }
- },
"range": [
101,
103
],
- "start": 101,
"type": "JSXOpeningFragment"
},
"range": [
101,
109
],
- "start": 101,
"type": "JSXFragment"
},
- "end": 110,
"expression": true,
"generator": false,
"id": null,
- "loc": {
- "end": {
- "column": 31,
- "line": 7
- },
- "start": {
- "column": 12,
- "line": 7
- }
- },
"params": [
{
- "end": 95,
- "loc": {
- "end": {
- "column": 16,
- "line": 7
- },
- "start": {
- "column": 13,
- "line": 7
- }
- },
"properties": [],
"range": [
92,
95
],
- "start": 92,
"type": "ObjectPattern"
}
],
@@ -435,64 +184,27 @@
91,
110
],
- "start": 91,
"type": "ArrowFunctionExpression"
},
- "loc": {
- "end": {
- "column": 31,
- "line": 7
- },
- "start": {
- "column": 6,
- "line": 7
- }
- },
"range": [
85,
110
],
- "start": 85,
"type": "VariableDeclarator"
}
],
- "end": 111,
"kind": "const",
- "loc": {
- "end": {
- "column": 32,
- "line": 7
- },
- "start": {
- "column": 0,
- "line": 7
- }
- },
"range": [
79,
111
],
- "start": 79,
"type": "VariableDeclaration"
}
],
- "comments": [],
- "end": 111,
- "loc": {
- "end": {
- "column": 32,
- "line": 7
- },
- "start": {
- "column": 0,
- "line": 1
- }
- },
"range": [
0,
111
],
"sourceType": "module",
- "start": 0,
"type": "Program"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment