Files
test-repo/tests
Joseph Frazier c863cbeac8 Translate cursor relative to nearest node, not SourceElement (#1989)
* Add test demonstrating SourceElement-relative cursor translation

See https://github.com/prettier/prettier/issues/1981#issuecomment-306326739

* Translate cursor relative to nearest node, not SourceElement

This partially address https://github.com/prettier/prettier/issues/1981

See https://github.com/prettier/prettier/issues/1981#issuecomment-306326739

* Add test demonstrating incorrect cursor translation

Since the `cursorOffset` option (introduced in #1637) works by tracking
the cursor position relative to an AST node (rather than a CST token),
it can produce incorrect results.

See https://github.com/prettier/prettier/issues/1981
2017-06-05 18:51:53 -07:00
..
2017-05-24 10:52:12 -07:00
2017-05-27 13:20:19 -07:00
2017-05-24 10:52:12 -07:00
2017-05-24 10:52:12 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 17:26:44 -07:00
2017-05-25 16:27:04 -07:00
2017-05-25 17:00:36 -07:00
2017-06-02 15:50:43 -07:00
2017-05-05 21:39:11 -07:00
2017-06-02 14:27:27 -07:00
2017-06-02 15:44:50 -07:00