Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vikr01 committed Dec 13, 2018
1 parent c0252f9 commit 4089b94
Show file tree
Hide file tree
Showing 4 changed files with 294 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
class MyClass {
/* :: prop: string; */
/* :: prop2: number; */
}
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
{
"type": "File",
"start": 0,
"end": 44,
"end": 74,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 2,
"column": 28
"line": 4,
"column": 1
}
},
"program": {
"type": "Program",
"start": 0,
"end": 44,
"end": 74,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 2,
"column": 28
"line": 4,
"column": 1
}
},
"sourceType": "module",
Expand All @@ -32,15 +32,15 @@
{
"type": "ClassDeclaration",
"start": 0,
"end": 44,
"end": 74,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 2,
"column": 28
"line": 4,
"column": 1
}
},
"id": {
Expand All @@ -64,18 +64,151 @@
"body": {
"type": "ClassBody",
"start": 14,
"end": 44,
"end": 74,
"loc": {
"start": {
"line": 1,
"column": 14
},
"end": {
"line": 2,
"column": 28
"line": 4,
"column": 1
}
},
"body": []
"body": [
{
"type": "ClassProperty",
"start": 26,
"end": 39,
"loc": {
"start": {
"line": 2,
"column": 10
},
"end": {
"line": 2,
"column": 23
}
},
"static": false,
"key": {
"type": "Identifier",
"start": 26,
"end": 30,
"loc": {
"start": {
"line": 2,
"column": 10
},
"end": {
"line": 2,
"column": 14
},
"identifierName": "prop"
},
"name": "prop"
},
"computed": false,
"variance": null,
"typeAnnotation": {
"type": "TypeAnnotation",
"start": 30,
"end": 38,
"loc": {
"start": {
"line": 2,
"column": 14
},
"end": {
"line": 2,
"column": 22
}
},
"typeAnnotation": {
"type": "StringTypeAnnotation",
"start": 32,
"end": 38,
"loc": {
"start": {
"line": 2,
"column": 16
},
"end": {
"line": 2,
"column": 22
}
}
}
},
"value": null
},
{
"type": "ClassProperty",
"start": 55,
"end": 69,
"loc": {
"start": {
"line": 3,
"column": 12
},
"end": {
"line": 3,
"column": 26
}
},
"static": false,
"key": {
"type": "Identifier",
"start": 55,
"end": 60,
"loc": {
"start": {
"line": 3,
"column": 12
},
"end": {
"line": 3,
"column": 17
},
"identifierName": "prop2"
},
"name": "prop2"
},
"computed": false,
"variance": null,
"typeAnnotation": {
"type": "TypeAnnotation",
"start": 60,
"end": 68,
"loc": {
"start": {
"line": 3,
"column": 17
},
"end": {
"line": 3,
"column": 25
}
},
"typeAnnotation": {
"type": "NumberTypeAnnotation",
"start": 62,
"end": 68,
"loc": {
"start": {
"line": 3,
"column": 19
},
"end": {
"line": 3,
"column": 25
}
}
}
},
"value": null
}
]
}
}
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
class MyClass {
/* flow-include prop: string; */
/* flow-include prop2: number; */
}

0 comments on commit 4089b94

Please sign in to comment.