sbt.internal.langserver.PublishDiagnosticsParams.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protocol_2.12 Show documentation
Show all versions of protocol_2.12 Show documentation
sbt is an interactive build tool
The newest version!
/**
* This code is generated using [[https://www.scala-sbt.org/contraband/ sbt-contraband]].
*/
// DO NOT EDIT MANUALLY
package sbt.internal.langserver
/**
* Diagnostics notification are sent from the server to the client to signal results of validation runs.
* @param uri The URI for which diagnostic information is reported.
* @param diagnostics An array of diagnostic information items.
*/
final class PublishDiagnosticsParams private (
val uri: String,
val diagnostics: Vector[sbt.internal.langserver.Diagnostic]) extends Serializable {
override def equals(o: Any): Boolean = this.eq(o.asInstanceOf[AnyRef]) || (o match {
case x: PublishDiagnosticsParams => (this.uri == x.uri) && (this.diagnostics == x.diagnostics)
case _ => false
})
override def hashCode: Int = {
37 * (37 * (37 * (17 + "sbt.internal.langserver.PublishDiagnosticsParams".##) + uri.##) + diagnostics.##)
}
override def toString: String = {
"PublishDiagnosticsParams(" + uri + ", " + diagnostics + ")"
}
private[this] def copy(uri: String = uri, diagnostics: Vector[sbt.internal.langserver.Diagnostic] = diagnostics): PublishDiagnosticsParams = {
new PublishDiagnosticsParams(uri, diagnostics)
}
def withUri(uri: String): PublishDiagnosticsParams = {
copy(uri = uri)
}
def withDiagnostics(diagnostics: Vector[sbt.internal.langserver.Diagnostic]): PublishDiagnosticsParams = {
copy(diagnostics = diagnostics)
}
}
object PublishDiagnosticsParams {
def apply(uri: String, diagnostics: Vector[sbt.internal.langserver.Diagnostic]): PublishDiagnosticsParams = new PublishDiagnosticsParams(uri, diagnostics)
}