forked from phoedos/pmd
Store file name in data key
This commit is contained in:
@ -80,12 +80,9 @@ class Foo {
|
||||
}
|
||||
})
|
||||
|
||||
fun String.parseScala(): ASTSource {
|
||||
val ver = LanguageRegistry.getLanguage("Scala").defaultVersion.languageVersionHandler
|
||||
val parser = ver.getParser(ver.defaultParserOptions)
|
||||
fun String.parseScala(): ASTSource =
|
||||
ScalaParsingHelper.DEFAULT.parse(this, ":dummy")
|
||||
|
||||
return parser.parse(":dummy:", StringReader(this)) as ASTSource
|
||||
}
|
||||
|
||||
fun Node.assertBounds(bline: Int, bcol: Int, eline: Int, ecol: Int) {
|
||||
this::getBeginLine shouldBe bline
|
||||
|
Reference in New Issue
Block a user