in src/main/kotlin/jetbrains/buildServer/server/querylang/parser/QueryParser.kt [29:40]
fun parseWithErrors(input: String, withCollector: Boolean): MainQuery? {
val stream = CharStreams.fromString(input)
val parser = initParser(stream)
parser.removeErrorListeners()
val res = try {
parser.parse()
} catch (e: Exception) {
return null
}
validateQuery(res, withCollector)
return res
}