Don't include trailing ubiquitous tokens as children when reducing
This commit is contained in:
parent
64e56f5acc
commit
863cabc827
13 changed files with 286 additions and 149 deletions
11
spec/fixtures/corpus/javascript/literals.txt
vendored
11
spec/fixtures/corpus/javascript/literals.txt
vendored
|
|
@ -63,9 +63,10 @@ var thing = {
|
|||
// this is a property.
|
||||
// its value is a function.
|
||||
key: function(x /* this is a parameter */) {
|
||||
|
||||
// this is a statement
|
||||
doStuff();
|
||||
// this is one statement
|
||||
one();
|
||||
// this is another statement
|
||||
two();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -80,8 +81,10 @@ var thing = {
|
|||
(comment)
|
||||
(comment)
|
||||
(pair (identifier) (function_expression
|
||||
(formal_parameters (identifier) (comment))
|
||||
(formal_parameters (identifier)) (comment)
|
||||
(statement_block
|
||||
(comment)
|
||||
(expression_statement (function_call (identifier) (arguments)))
|
||||
(comment)
|
||||
(expression_statement (function_call (identifier) (arguments))))))))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue