You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"code": "/**\n * This function returns the number one.\n */\nfunction addThem(a: Point, b: string, c: ?boolean, d: Array<number>, e: Object, f: Named): number {\n return a + b + c + d + e;\n}\n\n/**\n * A 2D point.\n *\n * @property {number} x this is a prop\n */\ntype Point = {\n x: number,\n y: number,\n rgb: {\n hex: string\n },\n props: {\n radius: {\n x: number\n }\n }\n};\n\n/**\n * A type with entirely derived properties\n */\ntype Two = {\n x: number,\n y: number\n};\n\n/**\n * Just an alias for an array of strings\n */\ntype T = Array<string>;\n\n/**\n * Very Important Transform\n */\nfunction veryImportantTransform(\n input: Array<string>,\n options: Object = {}\n): string {\n return \"42\";\n}\n"
77
+
"code": "/**\n * This function returns the number one.\n */\nfunction addThem(a: Point, b: string, c: ?boolean, d: Array<number>, e: Object, f: Named): number {\n return a + b + c + d + e;\n}\n\n/**\n * A 2D point.\n *\n * @property {number} x this is a prop\n */\ntype Point = {\n x: number,\n y: number,\n rgb: {\n hex: string\n },\n props: {\n radius: {\n x: number\n }\n }\n};\n\n/**\n * A type with entirely derived properties\n */\ntype Two = {\n x: number,\n y: number,\n z: ?number\n};\n\n/**\n * Just an alias for an array of strings\n */\ntype T = Array<string>;\n\n/**\n * Very Important Transform\n */\nfunction veryImportantTransform(\n input: Array<string>,\n options: Object = {}\n): string {\n return \"42\";\n}\n\n\n/**\n * Function with optional parameter.\n */\nfunction optionalFunc(x: number = 42) {}\n"
78
78
},
79
79
"errors": [],
80
80
"name": "addThem",
@@ -103,7 +103,7 @@
103
103
"name": "c",
104
104
"lineNumber": 4,
105
105
"type": {
106
-
"type": "OptionalType",
106
+
"type": "NullableType",
107
107
"expression": {
108
108
"type": "NameExpression",
109
109
"name": "boolean"
@@ -253,7 +253,7 @@
253
253
"column": 2
254
254
}
255
255
},
256
-
"code": "/**\n * This function returns the number one.\n */\nfunction addThem(a: Point, b: string, c: ?boolean, d: Array<number>, e: Object, f: Named): number {\n return a + b + c + d + e;\n}\n\n/**\n * A 2D point.\n *\n * @property {number} x this is a prop\n */\ntype Point = {\n x: number,\n y: number,\n rgb: {\n hex: string\n },\n props: {\n radius: {\n x: number\n }\n }\n};\n\n/**\n * A type with entirely derived properties\n */\ntype Two = {\n x: number,\n y: number\n};\n\n/**\n * Just an alias for an array of strings\n */\ntype T = Array<string>;\n\n/**\n * Very Important Transform\n */\nfunction veryImportantTransform(\n input: Array<string>,\n options: Object = {}\n): string {\n return \"42\";\n}\n"
256
+
"code": "/**\n * This function returns the number one.\n */\nfunction addThem(a: Point, b: string, c: ?boolean, d: Array<number>, e: Object, f: Named): number {\n return a + b + c + d + e;\n}\n\n/**\n * A 2D point.\n *\n * @property {number} x this is a prop\n */\ntype Point = {\n x: number,\n y: number,\n rgb: {\n hex: string\n },\n props: {\n radius: {\n x: number\n }\n }\n};\n\n/**\n * A type with entirely derived properties\n */\ntype Two = {\n x: number,\n y: number,\n z: ?number\n};\n\n/**\n * Just an alias for an array of strings\n */\ntype T = Array<string>;\n\n/**\n * Very Important Transform\n */\nfunction veryImportantTransform(\n input: Array<string>,\n options: Object = {}\n): string {\n return \"42\";\n}\n\n\n/**\n * Function with optional parameter.\n */\nfunction optionalFunc(x: number = 42) {}\n"
257
257
},
258
258
"errors": [],
259
259
"properties": [
@@ -463,11 +463,11 @@
463
463
"column": 0
464
464
},
465
465
"end": {
466
-
"line": 32,
466
+
"line": 33,
467
467
"column": 2
468
468
}
469
469
},
470
-
"code": "/**\n * This function returns the number one.\n */\nfunction addThem(a: Point, b: string, c: ?boolean, d: Array<number>, e: Object, f: Named): number {\n return a + b + c + d + e;\n}\n\n/**\n * A 2D point.\n *\n * @property {number} x this is a prop\n */\ntype Point = {\n x: number,\n y: number,\n rgb: {\n hex: string\n },\n props: {\n radius: {\n x: number\n }\n }\n};\n\n/**\n * A type with entirely derived properties\n */\ntype Two = {\n x: number,\n y: number\n};\n\n/**\n * Just an alias for an array of strings\n */\ntype T = Array<string>;\n\n/**\n * Very Important Transform\n */\nfunction veryImportantTransform(\n input: Array<string>,\n options: Object = {}\n): string {\n return \"42\";\n}\n"
470
+
"code": "/**\n * This function returns the number one.\n */\nfunction addThem(a: Point, b: string, c: ?boolean, d: Array<number>, e: Object, f: Named): number {\n return a + b + c + d + e;\n}\n\n/**\n * A 2D point.\n *\n * @property {number} x this is a prop\n */\ntype Point = {\n x: number,\n y: number,\n rgb: {\n hex: string\n },\n props: {\n radius: {\n x: number\n }\n }\n};\n\n/**\n * A type with entirely derived properties\n */\ntype Two = {\n x: number,\n y: number,\n z: ?number\n};\n\n/**\n * Just an alias for an array of strings\n */\ntype T = Array<string>;\n\n/**\n * Very Important Transform\n */\nfunction veryImportantTransform(\n input: Array<string>,\n options: Object = {}\n): string {\n return \"42\";\n}\n\n\n/**\n * Function with optional parameter.\n */\nfunction optionalFunc(x: number = 42) {}\n"
471
471
},
472
472
"errors": [],
473
473
"name": "Two",
@@ -490,6 +490,18 @@
490
490
"type": "NameExpression",
491
491
"name": "number"
492
492
}
493
+
},
494
+
{
495
+
"title": "property",
496
+
"name": "z",
497
+
"lineNumber": 32,
498
+
"type": {
499
+
"type": "NullableType",
500
+
"expression": {
501
+
"type": "NameExpression",
502
+
"name": "number"
503
+
}
504
+
}
493
505
}
494
506
],
495
507
"members": {
@@ -560,26 +572,26 @@
560
572
"tags": [],
561
573
"loc": {
562
574
"start": {
563
-
"line": 34,
575
+
"line": 35,
564
576
"column": 0
565
577
},
566
578
"end": {
567
-
"line": 36,
579
+
"line": 37,
568
580
"column": 3
569
581
}
570
582
},
571
583
"context": {
572
584
"loc": {
573
585
"start": {
574
-
"line": 37,
586
+
"line": 38,
575
587
"column": 0
576
588
},
577
589
"end": {
578
-
"line": 37,
590
+
"line": 38,
579
591
"column": 23
580
592
}
581
593
},
582
-
"code": "/**\n * This function returns the number one.\n */\nfunction addThem(a: Point, b: string, c: ?boolean, d: Array<number>, e: Object, f: Named): number {\n return a + b + c + d + e;\n}\n\n/**\n * A 2D point.\n *\n * @property {number} x this is a prop\n */\ntype Point = {\n x: number,\n y: number,\n rgb: {\n hex: string\n },\n props: {\n radius: {\n x: number\n }\n }\n};\n\n/**\n * A type with entirely derived properties\n */\ntype Two = {\n x: number,\n y: number\n};\n\n/**\n * Just an alias for an array of strings\n */\ntype T = Array<string>;\n\n/**\n * Very Important Transform\n */\nfunction veryImportantTransform(\n input: Array<string>,\n options: Object = {}\n): string {\n return \"42\";\n}\n"
594
+
"code": "/**\n * This function returns the number one.\n */\nfunction addThem(a: Point, b: string, c: ?boolean, d: Array<number>, e: Object, f: Named): number {\n return a + b + c + d + e;\n}\n\n/**\n * A 2D point.\n *\n * @property {number} x this is a prop\n */\ntype Point = {\n x: number,\n y: number,\n rgb: {\n hex: string\n },\n props: {\n radius: {\n x: number\n }\n }\n};\n\n/**\n * A type with entirely derived properties\n */\ntype Two = {\n x: number,\n y: number,\n z: ?number\n};\n\n/**\n * Just an alias for an array of strings\n */\ntype T = Array<string>;\n\n/**\n * Very Important Transform\n */\nfunction veryImportantTransform(\n input: Array<string>,\n options: Object = {}\n): string {\n return \"42\";\n}\n\n\n/**\n * Function with optional parameter.\n */\nfunction optionalFunc(x: number = 42) {}\n"
583
595
},
584
596
"errors": [],
585
597
"name": "T",
@@ -652,26 +664,26 @@
652
664
"tags": [],
653
665
"loc": {
654
666
"start": {
655
-
"line": 39,
667
+
"line": 40,
656
668
"column": 0
657
669
},
658
670
"end": {
659
-
"line": 41,
671
+
"line": 42,
660
672
"column": 3
661
673
}
662
674
},
663
675
"context": {
664
676
"loc": {
665
677
"start": {
666
-
"line": 42,
678
+
"line": 43,
667
679
"column": 0
668
680
},
669
681
"end": {
670
-
"line": 47,
682
+
"line": 48,
671
683
"column": 1
672
684
}
673
685
},
674
-
"code": "/**\n * This function returns the number one.\n */\nfunction addThem(a: Point, b: string, c: ?boolean, d: Array<number>, e: Object, f: Named): number {\n return a + b + c + d + e;\n}\n\n/**\n * A 2D point.\n *\n * @property {number} x this is a prop\n */\ntype Point = {\n x: number,\n y: number,\n rgb: {\n hex: string\n },\n props: {\n radius: {\n x: number\n }\n }\n};\n\n/**\n * A type with entirely derived properties\n */\ntype Two = {\n x: number,\n y: number\n};\n\n/**\n * Just an alias for an array of strings\n */\ntype T = Array<string>;\n\n/**\n * Very Important Transform\n */\nfunction veryImportantTransform(\n input: Array<string>,\n options: Object = {}\n): string {\n return \"42\";\n}\n"
686
+
"code": "/**\n * This function returns the number one.\n */\nfunction addThem(a: Point, b: string, c: ?boolean, d: Array<number>, e: Object, f: Named): number {\n return a + b + c + d + e;\n}\n\n/**\n * A 2D point.\n *\n * @property {number} x this is a prop\n */\ntype Point = {\n x: number,\n y: number,\n rgb: {\n hex: string\n },\n props: {\n radius: {\n x: number\n }\n }\n};\n\n/**\n * A type with entirely derived properties\n */\ntype Two = {\n x: number,\n y: number,\n z: ?number\n};\n\n/**\n * Just an alias for an array of strings\n */\ntype T = Array<string>;\n\n/**\n * Very Important Transform\n */\nfunction veryImportantTransform(\n input: Array<string>,\n options: Object = {}\n): string {\n return \"42\";\n}\n\n\n/**\n * Function with optional parameter.\n */\nfunction optionalFunc(x: number = 42) {}\n"
675
687
},
676
688
"errors": [],
677
689
"name": "veryImportantTransform",
@@ -680,7 +692,7 @@
680
692
{
681
693
"title": "param",
682
694
"name": "input",
683
-
"lineNumber": 43,
695
+
"lineNumber": 44,
684
696
"type": {
685
697
"type": "TypeApplication",
686
698
"expression": {
@@ -727,5 +739,111 @@
727
739
}
728
740
],
729
741
"namespace": "veryImportantTransform"
742
+
},
743
+
{
744
+
"description": {
745
+
"type": "root",
746
+
"children": [
747
+
{
748
+
"type": "paragraph",
749
+
"children": [
750
+
{
751
+
"type": "text",
752
+
"value": "Function with optional parameter.",
753
+
"position": {
754
+
"start": {
755
+
"line": 1,
756
+
"column": 1,
757
+
"offset": 0
758
+
},
759
+
"end": {
760
+
"line": 1,
761
+
"column": 34,
762
+
"offset": 33
763
+
},
764
+
"indent": []
765
+
}
766
+
}
767
+
],
768
+
"position": {
769
+
"start": {
770
+
"line": 1,
771
+
"column": 1,
772
+
"offset": 0
773
+
},
774
+
"end": {
775
+
"line": 1,
776
+
"column": 34,
777
+
"offset": 33
778
+
},
779
+
"indent": []
780
+
}
781
+
}
782
+
],
783
+
"position": {
784
+
"start": {
785
+
"line": 1,
786
+
"column": 1,
787
+
"offset": 0
788
+
},
789
+
"end": {
790
+
"line": 1,
791
+
"column": 34,
792
+
"offset": 33
793
+
}
794
+
}
795
+
},
796
+
"tags": [],
797
+
"loc": {
798
+
"start": {
799
+
"line": 51,
800
+
"column": 0
801
+
},
802
+
"end": {
803
+
"line": 53,
804
+
"column": 3
805
+
}
806
+
},
807
+
"context": {
808
+
"loc": {
809
+
"start": {
810
+
"line": 54,
811
+
"column": 0
812
+
},
813
+
"end": {
814
+
"line": 54,
815
+
"column": 40
816
+
}
817
+
},
818
+
"code": "/**\n * This function returns the number one.\n */\nfunction addThem(a: Point, b: string, c: ?boolean, d: Array<number>, e: Object, f: Named): number {\n return a + b + c + d + e;\n}\n\n/**\n * A 2D point.\n *\n * @property {number} x this is a prop\n */\ntype Point = {\n x: number,\n y: number,\n rgb: {\n hex: string\n },\n props: {\n radius: {\n x: number\n }\n }\n};\n\n/**\n * A type with entirely derived properties\n */\ntype Two = {\n x: number,\n y: number,\n z: ?number\n};\n\n/**\n * Just an alias for an array of strings\n */\ntype T = Array<string>;\n\n/**\n * Very Important Transform\n */\nfunction veryImportantTransform(\n input: Array<string>,\n options: Object = {}\n): string {\n return \"42\";\n}\n\n\n/**\n * Function with optional parameter.\n */\nfunction optionalFunc(x: number = 42) {}\n"
0 commit comments