mirror of
https://github.com/fluencelabs/aqua.git
synced 2024-12-04 22:50:18 +00:00
parent
878990a837
commit
1e636cc076
@ -61,7 +61,15 @@ object TokenLocation {
|
||||
}
|
||||
|
||||
@JSExportAll
|
||||
case class ErrorInfo(start: Int, end: Int, message: String, location: UndefOr[String])
|
||||
case class ErrorInfo(
|
||||
start: Int,
|
||||
end: Int,
|
||||
message: String,
|
||||
location: UndefOr[String]
|
||||
) {
|
||||
// Used to distinguish from WarningInfo in TS
|
||||
val infoType: String = "error"
|
||||
}
|
||||
|
||||
object ErrorInfo {
|
||||
|
||||
@ -77,7 +85,15 @@ object ErrorInfo {
|
||||
}
|
||||
|
||||
@JSExportAll
|
||||
case class WarningInfo(start: Int, end: Int, message: String, location: UndefOr[String])
|
||||
case class WarningInfo(
|
||||
start: Int,
|
||||
end: Int,
|
||||
message: String,
|
||||
location: UndefOr[String]
|
||||
) {
|
||||
// Used to distinguish from ErrorInfo in TS
|
||||
val infoType: String = "warning"
|
||||
}
|
||||
|
||||
object WarningInfo {
|
||||
|
||||
|
@ -17,6 +17,7 @@ export interface TokenImport {
|
||||
}
|
||||
|
||||
export interface ErrorInfo {
|
||||
infoType: "error",
|
||||
start: number,
|
||||
end: number,
|
||||
message: string,
|
||||
@ -24,6 +25,7 @@ export interface ErrorInfo {
|
||||
}
|
||||
|
||||
export interface WarningInfo {
|
||||
infoType: "warning",
|
||||
start: number,
|
||||
end: number,
|
||||
message: string,
|
||||
|
Loading…
Reference in New Issue
Block a user