Fix build

This commit is contained in:
Clément Fournier
2022-04-03 00:52:12 +02:00
parent 3d022c5d1f
commit 27962debc0
2 changed files with 2 additions and 18 deletions

View File

@@ -97,14 +97,8 @@ fun assertSuppressed(report: Report, size: Int): List<Report.SuppressedViolation
/** Checks the coordinates of this node. */
fun Node.assertPosition(bline: Int, bcol: Int, eline: Int, ecol: Int) {
reportLocation.apply {
{
this. // todo rename to getStartLine
getStartLine()
} shouldBe bline
{
this. // todo rename to getStartLine
getStartColumn()
} shouldBe bcol
this::getStartLine shouldBe bline
this::getStartColumn shouldBe bcol
this::getEndLine shouldBe eline
this::getEndColumn shouldBe ecol
}