1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 06:11:49 +03:00
semantic/test/fixtures/javascript/corpus/continue.diffA-B.txt
Patrick Thomson eaa54a3230 Add strict-equality function.
TypeScript, JavaScript, and PHP support an === operator, which
corresponds to strict equality (usually the equality you want). I've
added a constructor to Comparison that takes care of this. Actually
implementing non-strict equality for the above languages will have to
wait until we can build behavior a la carte.

I chose not to add Ruby's case-equality operator, though it uses ===,
since the behavior is so different. (For example, a === a is not
always true over Ruby's ===).
2018-05-23 11:28:31 -04:00

24 lines
376 B
Plaintext

(Program
(For
(Assignment
(Identifier)
(Float))
(LessThan
(Identifier)
(Float))
(Update
(Identifier))
(
(If
(StrictEqual
(Identifier)
(Float))
(
{+(Break
{+(Empty)+})+}
{-(Continue
{-(Empty)-})-})
(Empty))
(Empty)
(Identifier))))