1
1
mirror of https://github.com/github/semantic.git synced 2024-12-30 18:36:27 +03:00
semantic/test/fixtures/javascript/corpus/break.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))
(
{+(Continue
{+(Empty)+})+}
{-(Break
{-(Empty)-})-})
(Empty))
(Empty)
(Identifier))))