File tree Expand file tree Collapse file tree 3 files changed +103019
-108030
lines changed Expand file tree Collapse file tree 3 files changed +103019
-108030
lines changed Original file line number Diff line number Diff line change @@ -65,3 +65,26 @@ function c() {return d}
65
65
(expression_statement
66
66
(function (identifier) (formal_parameters) (statement_block
67
67
(trailing_return_statement (identifier))))))
68
+
69
+ ==============================================
70
+ Multi-line chained expressions in var declarations
71
+ ==============================================
72
+
73
+ var a = new A()
74
+ .b({c: 'd'})
75
+ .e()
76
+
77
+ ---
78
+
79
+ (program
80
+ (var_declaration (var_assignment
81
+ (identifier)
82
+ (function_call
83
+ (member_access
84
+ (function_call
85
+ (member_access
86
+ (new_expression (function_call (identifier) (arguments)))
87
+ (identifier))
88
+ (arguments (object (pair (identifier) (string)))))
89
+ (identifier))
90
+ (arguments)))))
You can’t perform that action at this time.
0 commit comments