@helios-lang/compiler
Version:
Helios is a Domain Specific Language that compiles to Plutus-Core (i.e. Cardano on-chain validator scripts). Helios is a non-Haskell alternative to Plutus. With this library you can compile Helios scripts and build Cardano transactions, all you need to bu
57 lines • 1.53 kB
TypeScript
/**
* @import { Word } from "@helios-lang/compiler-utils"
* @typedef {import("@helios-lang/ir").SourceMappedStringI} SourceMappedStringI
* @typedef {import("../typecheck/index.js").EvalEntity} EvalEntity
*/
/**
* Struct field (part of a literal struct constructor)
*/
export class StructLiteralField {
/**
* @param {Word | undefined} name
* @param {Expr} value
*/
constructor(name: Word | undefined, value: Expr);
/**
* @private
* @readonly
* @type {Word | undefined}
*/
private readonly _name;
/**
* @private
* @readonly
* @type {Expr}
*/
private readonly _value;
/**
* @type {Word}
*/
get name(): Word;
get site(): import("@helios-lang/compiler-utils").Site;
/**
* @param {Scope} scope
* @returns {EvalEntity}
*/
eval(scope: Scope): EvalEntity;
/**
* @returns {boolean}
*/
isNamed(): boolean;
/**
* @param {ToIRContext} ctx
* @returns {SourceMappedStringI}
*/
toIR(ctx: ToIRContext): SourceMappedStringI;
/**
* @returns {string}
*/
toString(): string;
}
export type SourceMappedStringI = import("@helios-lang/ir").SourceMappedStringI;
export type EvalEntity = import("../typecheck/index.js").EvalEntity;
import type { Word } from "@helios-lang/compiler-utils";
import { Scope } from "../scopes/index.js";
import { ToIRContext } from "../codegen/index.js";
import { Expr } from "./Expr.js";
//# sourceMappingURL=StructLiteralField.d.ts.map