r25867 - Language Server - Locations - Try (fia/pull/209']#209) * ValidScriptDataWithLocationTests * he

Github Bot

Poster of Commits
Language Server - Locations - Try (#209)

* ValidScriptDataWithLocationTests

* helper method

* include xtext.xbase.lib during tests

not needed for the tests to succeed.
HOWEVER, if a test including a Location/Range/Position FAILS, it needs
xtext/xbase/lib/util/ToStringBuilder to print the error,
otherwise the error is a NoClassDefFoundError, making the failed test incomprehensible.

* give a toString to ScriptData

* tweak assertLocationEquals
Range.equals(Object) checks for the exact class, so we need to make sure
we don't submit it a Token

* spotless...

* Also prepare Evaluable

This PR is very much ready and waiting for review.
It's just that I'm making further PRs on my side in the meantime,
and am sending content shared between many of them this way.

* Spotless

* Try locations

* Description of the location in the test

Co-authored-by: Jamie Adams <82782908+jaadams5@users.noreply.github.com>

View on Github
 
Back
Top