@helios-lang/ir
Advanced tools
Comparing version 0.1.39 to 0.1.40
{ | ||
"name": "@helios-lang/ir", | ||
"version": "0.1.39", | ||
"version": "0.1.40", | ||
"description": "Helios-lang intermediate representation", | ||
@@ -38,3 +38,3 @@ "main": "src/index.js", | ||
"@helios-lang/type-utils": "^0.1.20", | ||
"@helios-lang/uplc": "^0.3.8" | ||
"@helios-lang/uplc": "^0.3.10" | ||
}, | ||
@@ -41,0 +41,0 @@ "scripts": { |
@@ -12,3 +12,3 @@ import { UplcError } from "@helios-lang/uplc" | ||
/** | ||
* Intermediate Representation error call (with optional literal error message) | ||
* Intermediate Representation error call | ||
* @internal | ||
@@ -25,14 +25,6 @@ * @implements {Expr} | ||
/** | ||
* @readonly | ||
* @type {string} | ||
*/ | ||
message | ||
/** | ||
* @param {Site} site | ||
* @param {string} message | ||
*/ | ||
constructor(site, message = "") { | ||
constructor(site) { | ||
this.site = site | ||
this.message = message | ||
} | ||
@@ -65,3 +57,3 @@ | ||
copy(notifyCopy) { | ||
const newExpr = new ErrorExpr(this.site, this.message) | ||
const newExpr = new ErrorExpr(this.site) | ||
@@ -77,4 +69,4 @@ notifyCopy(this, newExpr) | ||
toUplc() { | ||
return new UplcError(this.message, this.site) | ||
return new UplcError(this.site) | ||
} | ||
} |
@@ -72,4 +72,4 @@ import { UplcConst } from "@helios-lang/uplc" | ||
toUplc() { | ||
return new UplcConst(this.value) | ||
return new UplcConst(this.value, this.site) | ||
} | ||
} |
import { None } from "@helios-lang/type-utils" | ||
import { UplcUnit, builtinsV2 } from "@helios-lang/uplc" | ||
import { | ||
ByteArrayData, | ||
ConstrData, | ||
IntData, | ||
ListData, | ||
MapData, | ||
UplcBool, | ||
UplcByteArray, | ||
UplcDataValue, | ||
UplcInt, | ||
UplcList, | ||
UplcString, | ||
UplcUnit, | ||
builtinsV2 | ||
} from "@helios-lang/uplc" | ||
import { | ||
Analysis, | ||
@@ -19,0 +5,0 @@ Analyzer, |
@@ -89,3 +89,3 @@ import { | ||
let [raw, sourceMap] = | ||
typeof ir == "string" ? [ir, new Map()] : ir.toStringWithSourceMap() | ||
typeof ir == "string" ? [ir, undefined] : ir.toStringWithSourceMap() | ||
@@ -92,0 +92,0 @@ const src = new Source(raw) |
@@ -8,3 +8,3 @@ /** | ||
/** | ||
* Intermediate Representation error call (with optional literal error message) | ||
* Intermediate Representation error call | ||
* @internal | ||
@@ -16,5 +16,4 @@ * @implements {Expr} | ||
* @param {Site} site | ||
* @param {string} message | ||
*/ | ||
constructor(site: Site, message?: string); | ||
constructor(site: Site); | ||
/** | ||
@@ -26,7 +25,2 @@ * @readonly | ||
/** | ||
* @readonly | ||
* @type {string} | ||
*/ | ||
readonly message: string; | ||
/** | ||
* @type {number} | ||
@@ -33,0 +27,0 @@ */ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
470581
13560
Updated@helios-lang/uplc@^0.3.10