File tree Expand file tree Collapse file tree 2 files changed +13
-74
lines changed Expand file tree Collapse file tree 2 files changed +13
-74
lines changed Original file line number Diff line number Diff line change @@ -65,58 +65,26 @@ Program {
6565 " name" : " CONSTANT" ,
6666 },
6767 " value" : String {
68- " isDoubleQuote" : true ,
68+ " isDoubleQuote" : false ,
6969 " kind" : " string" ,
7070 " leadingComments" : [
7171 CommentLine {
7272 " kind" : " commentline" ,
73- " offset" : 165 ,
74- " value" : " // comment 4
75- " ,
76- },
77- CommentLine {
78- " kind" : " commentline" ,
79- " offset" : 200 ,
80- " value" : " // comment 5
73+ " offset" : 75 ,
74+ " value" : " // Comment
8175" ,
8276 },
8377 ],
84- " raw" : " " Hello world ! " " ,
78+ " raw" : " 'string' " ,
8579 " unicode" : false ,
86- " value" : " Hello world! " ,
80+ " value" : " string " ,
8781 },
8882 },
8983 ],
9084 " final" : false ,
9185 " kind" : " classconstant" ,
92- " leadingComments" : [
93- CommentLine {
94- " kind" : " commentline" ,
95- " offset" : 122 ,
96- " value" : " // comment 3
97- " ,
98- },
99- ],
10086 " nullable" : false ,
101- " type" : TypeReference {
102- " kind" : " typereference" ,
103- " leadingComments" : [
104- CommentLine {
105- " kind" : " commentline" ,
106- " offset" : 41 ,
107- " value" : " // comment 1
108- " ,
109- },
110- CommentLine {
111- " kind" : " commentline" ,
112- " offset" : 81 ,
113- " value" : " // comment 2
114- " ,
115- },
116- ],
117- " name" : " string" ,
118- " raw" : " string" ,
119- },
87+ " type" : null ,
12088 " visibility" : " public" ,
12189 },
12290 ],
@@ -136,32 +104,8 @@ Program {
136104 " comments" : [
137105 CommentLine {
138106 " kind" : " commentline" ,
139- " offset" : 41 ,
140- " value" : " // comment 1
141- " ,
142- },
143- CommentLine {
144- " kind" : " commentline" ,
145- " offset" : 81 ,
146- " value" : " // comment 2
147- " ,
148- },
149- CommentLine {
150- " kind" : " commentline" ,
151- " offset" : 122 ,
152- " value" : " // comment 3
153- " ,
154- },
155- CommentLine {
156- " kind" : " commentline" ,
157- " offset" : 165 ,
158- " value" : " // comment 4
159- " ,
160- },
161- CommentLine {
162- " kind" : " commentline" ,
163- " offset" : 200 ,
164- " value" : " // comment 5
107+ " offset" : 75 ,
108+ " value" : " // Comment
165109" ,
166110 },
167111 ],
Original file line number Diff line number Diff line change @@ -79,17 +79,12 @@ describe("classconstant", () => {
7979 expect (
8080 parser . parseEval (
8181 `class Foo {
82- public
83- // comment 1
84- const
85- // comment 2
86- string
87- // comment 3
88- CONSTANT
89- // comment 4
82+ public
83+ const
84+ CONSTANT
85+ // Comment
9086 =
91- // comment 5
92- "Hello world!";
87+ 'string';
9388 }` ,
9489 { parser : { version : 803 , extractDoc : true } } ,
9590 ) ,
You can’t perform that action at this time.
0 commit comments