@@ -7660,68 +7660,114 @@ Object {
7660
7660
7661
7661
exports[`typescript fixtures/basics/class-with-optional-properties.src 1`] = `
7662
7662
Object {
7663
- "$id": 4 ,
7663
+ "$id": 10 ,
7664
7664
"block": Object {
7665
7665
"range": Array [
7666
7666
0,
7667
- 64 ,
7667
+ 219 ,
7668
7668
],
7669
7669
"type": "Program",
7670
7670
},
7671
7671
"childScopes": Array [
7672
7672
Object {
7673
- "$id": 3 ,
7673
+ "$id": 9 ,
7674
7674
"block": Object {
7675
7675
"range": Array [
7676
7676
0,
7677
- 64 ,
7677
+ 219 ,
7678
7678
],
7679
7679
"type": "Program",
7680
7680
},
7681
7681
"childScopes": Array [
7682
7682
Object {
7683
- "$id": 2 ,
7683
+ "$id": 8 ,
7684
7684
"block": Object {
7685
7685
"range": Array [
7686
- 0 ,
7687
- 63 ,
7686
+ 51 ,
7687
+ 218 ,
7688
7688
],
7689
7689
"type": "ClassDeclaration",
7690
7690
},
7691
7691
"childScopes": Array [],
7692
7692
"functionExpressionScope": false,
7693
7693
"isStrict": true,
7694
- "references": Array [],
7695
- "throughReferences": Array [],
7694
+ "references": Array [
7695
+ Object {
7696
+ "$id": 6,
7697
+ "from": Object {
7698
+ "$ref": 8,
7699
+ },
7700
+ "identifier": Object {
7701
+ "name": "computed",
7702
+ "range": Array [
7703
+ 116,
7704
+ 124,
7705
+ ],
7706
+ "type": "Identifier",
7707
+ },
7708
+ "kind": "r",
7709
+ "resolved": Object {
7710
+ "$ref": 0,
7711
+ },
7712
+ "writeExpr": undefined,
7713
+ },
7714
+ Object {
7715
+ "$id": 7,
7716
+ "from": Object {
7717
+ "$ref": 8,
7718
+ },
7719
+ "identifier": Object {
7720
+ "name": "computed2",
7721
+ "range": Array [
7722
+ 155,
7723
+ 164,
7724
+ ],
7725
+ "type": "Identifier",
7726
+ },
7727
+ "kind": "r",
7728
+ "resolved": Object {
7729
+ "$ref": 1,
7730
+ },
7731
+ "writeExpr": undefined,
7732
+ },
7733
+ ],
7734
+ "throughReferences": Array [
7735
+ Object {
7736
+ "$ref": 6,
7737
+ },
7738
+ Object {
7739
+ "$ref": 7,
7740
+ },
7741
+ ],
7696
7742
"type": "class",
7697
7743
"upperScope": Object {
7698
- "$ref": 3 ,
7744
+ "$ref": 9 ,
7699
7745
},
7700
7746
"variableMap": Object {
7701
7747
"Foo": Object {
7702
- "$ref": 1 ,
7748
+ "$ref": 5 ,
7703
7749
},
7704
7750
},
7705
7751
"variableScope": Object {
7706
- "$ref": 3 ,
7752
+ "$ref": 9 ,
7707
7753
},
7708
7754
"variables": Array [
7709
7755
Object {
7710
- "$id": 1 ,
7756
+ "$id": 5 ,
7711
7757
"defs": Array [
7712
7758
Object {
7713
7759
"name": Object {
7714
7760
"name": "Foo",
7715
7761
"range": Array [
7716
- 6 ,
7717
- 9 ,
7762
+ 57 ,
7763
+ 60 ,
7718
7764
],
7719
7765
"type": "Identifier",
7720
7766
},
7721
7767
"node": Object {
7722
7768
"range": Array [
7723
- 0 ,
7724
- 63 ,
7769
+ 51 ,
7770
+ 218 ,
7725
7771
],
7726
7772
"type": "ClassDeclaration",
7727
7773
},
@@ -7734,54 +7780,217 @@ Object {
7734
7780
Object {
7735
7781
"name": "Foo",
7736
7782
"range": Array [
7737
- 6 ,
7738
- 9 ,
7783
+ 57 ,
7784
+ 60 ,
7739
7785
],
7740
7786
"type": "Identifier",
7741
7787
},
7742
7788
],
7743
7789
"name": "Foo",
7744
7790
"references": Array [],
7745
7791
"scope": Object {
7746
- "$ref": 2 ,
7792
+ "$ref": 8 ,
7747
7793
},
7748
7794
},
7749
7795
],
7750
7796
},
7751
7797
],
7752
7798
"functionExpressionScope": false,
7753
7799
"isStrict": true,
7754
- "references": Array [],
7800
+ "references": Array [
7801
+ Object {
7802
+ "$id": 3,
7803
+ "from": Object {
7804
+ "$ref": 9,
7805
+ },
7806
+ "identifier": Object {
7807
+ "name": "computed",
7808
+ "range": Array [
7809
+ 6,
7810
+ 14,
7811
+ ],
7812
+ "type": "Identifier",
7813
+ },
7814
+ "kind": "w",
7815
+ "resolved": Object {
7816
+ "$ref": 0,
7817
+ },
7818
+ "writeExpr": Object {
7819
+ "range": Array [
7820
+ 17,
7821
+ 23,
7822
+ ],
7823
+ "type": "Literal",
7824
+ },
7825
+ },
7826
+ Object {
7827
+ "$id": 4,
7828
+ "from": Object {
7829
+ "$ref": 9,
7830
+ },
7831
+ "identifier": Object {
7832
+ "name": "computed2",
7833
+ "range": Array [
7834
+ 31,
7835
+ 40,
7836
+ ],
7837
+ "type": "Identifier",
7838
+ },
7839
+ "kind": "w",
7840
+ "resolved": Object {
7841
+ "$ref": 1,
7842
+ },
7843
+ "writeExpr": Object {
7844
+ "range": Array [
7845
+ 43,
7846
+ 49,
7847
+ ],
7848
+ "type": "Literal",
7849
+ },
7850
+ },
7851
+ ],
7755
7852
"throughReferences": Array [],
7756
7853
"type": "module",
7757
7854
"upperScope": Object {
7758
- "$ref": 4 ,
7855
+ "$ref": 10 ,
7759
7856
},
7760
7857
"variableMap": Object {
7761
7858
"Foo": Object {
7859
+ "$ref": 2,
7860
+ },
7861
+ "computed": Object {
7762
7862
"$ref": 0,
7763
7863
},
7864
+ "computed2": Object {
7865
+ "$ref": 1,
7866
+ },
7764
7867
},
7765
7868
"variableScope": Object {
7766
- "$ref": 3 ,
7869
+ "$ref": 9 ,
7767
7870
},
7768
7871
"variables": Array [
7769
7872
Object {
7770
7873
"$id": 0,
7771
7874
"defs": Array [
7772
7875
Object {
7773
7876
"name": Object {
7774
- "name": "Foo ",
7877
+ "name": "computed ",
7775
7878
"range": Array [
7776
7879
6,
7777
- 9 ,
7880
+ 14 ,
7778
7881
],
7779
7882
"type": "Identifier",
7780
7883
},
7781
7884
"node": Object {
7885
+ "range": Array [
7886
+ 6,
7887
+ 23,
7888
+ ],
7889
+ "type": "VariableDeclarator",
7890
+ },
7891
+ "parent": Object {
7782
7892
"range": Array [
7783
7893
0,
7784
- 63,
7894
+ 24,
7895
+ ],
7896
+ "type": "VariableDeclaration",
7897
+ },
7898
+ "type": "Variable",
7899
+ },
7900
+ ],
7901
+ "eslintUsed": undefined,
7902
+ "identifiers": Array [
7903
+ Object {
7904
+ "name": "computed",
7905
+ "range": Array [
7906
+ 6,
7907
+ 14,
7908
+ ],
7909
+ "type": "Identifier",
7910
+ },
7911
+ ],
7912
+ "name": "computed",
7913
+ "references": Array [
7914
+ Object {
7915
+ "$ref": 3,
7916
+ },
7917
+ Object {
7918
+ "$ref": 6,
7919
+ },
7920
+ ],
7921
+ "scope": Object {
7922
+ "$ref": 9,
7923
+ },
7924
+ },
7925
+ Object {
7926
+ "$id": 1,
7927
+ "defs": Array [
7928
+ Object {
7929
+ "name": Object {
7930
+ "name": "computed2",
7931
+ "range": Array [
7932
+ 31,
7933
+ 40,
7934
+ ],
7935
+ "type": "Identifier",
7936
+ },
7937
+ "node": Object {
7938
+ "range": Array [
7939
+ 31,
7940
+ 49,
7941
+ ],
7942
+ "type": "VariableDeclarator",
7943
+ },
7944
+ "parent": Object {
7945
+ "range": Array [
7946
+ 25,
7947
+ 50,
7948
+ ],
7949
+ "type": "VariableDeclaration",
7950
+ },
7951
+ "type": "Variable",
7952
+ },
7953
+ ],
7954
+ "eslintUsed": undefined,
7955
+ "identifiers": Array [
7956
+ Object {
7957
+ "name": "computed2",
7958
+ "range": Array [
7959
+ 31,
7960
+ 40,
7961
+ ],
7962
+ "type": "Identifier",
7963
+ },
7964
+ ],
7965
+ "name": "computed2",
7966
+ "references": Array [
7967
+ Object {
7968
+ "$ref": 4,
7969
+ },
7970
+ Object {
7971
+ "$ref": 7,
7972
+ },
7973
+ ],
7974
+ "scope": Object {
7975
+ "$ref": 9,
7976
+ },
7977
+ },
7978
+ Object {
7979
+ "$id": 2,
7980
+ "defs": Array [
7981
+ Object {
7982
+ "name": Object {
7983
+ "name": "Foo",
7984
+ "range": Array [
7985
+ 57,
7986
+ 60,
7987
+ ],
7988
+ "type": "Identifier",
7989
+ },
7990
+ "node": Object {
7991
+ "range": Array [
7992
+ 51,
7993
+ 218,
7785
7994
],
7786
7995
"type": "ClassDeclaration",
7787
7996
},
@@ -7794,16 +8003,16 @@ Object {
7794
8003
Object {
7795
8004
"name": "Foo",
7796
8005
"range": Array [
7797
- 6 ,
7798
- 9 ,
8006
+ 57 ,
8007
+ 60 ,
7799
8008
],
7800
8009
"type": "Identifier",
7801
8010
},
7802
8011
],
7803
8012
"name": "Foo",
7804
8013
"references": Array [],
7805
8014
"scope": Object {
7806
- "$ref": 3 ,
8015
+ "$ref": 9 ,
7807
8016
},
7808
8017
},
7809
8018
],
@@ -7817,7 +8026,7 @@ Object {
7817
8026
"upperScope": null,
7818
8027
"variableMap": Object {},
7819
8028
"variableScope": Object {
7820
- "$ref": 4 ,
8029
+ "$ref": 10 ,
7821
8030
},
7822
8031
"variables": Array [],
7823
8032
}
0 commit comments