@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
54 lines • 1.53 kB
TypeScript
/**
* @import { Site, Word } from "@helios-lang/compiler-utils"
* @typedef {import("../codegen/index.js").Definitions} Definitions
* @typedef {import("../typecheck/index.js").EvalEntity} EvalEntity
*/
/**
* Each field in `import {...} from <ModuleName>` is given a separate ImportFromStatement
*/
export class ImportFromStatement extends Statement {
/**
* @param {Site} site
* @param {Word} name
* @param {Word} origName
* @param {Word} moduleName
*/
constructor(site: Site, name: Word, origName: Word, moduleName: Word);
/**
* @private
* @readonly
* @type {Word}
*/
private readonly _origName;
/**
* @private
* @readonly
* @type {Word}
*/
private readonly _moduleName;
/**
* @type {Word}
*/
get moduleName(): Word;
/**
* @type {string}
*/
get origPath(): string;
/**
* @private
* @returns {boolean}
*/
private isBuiltinNamespace;
/**
* @param {ModuleScope} scope
* @returns {EvalEntity | undefined}
*/
evalInternal(scope: ModuleScope): EvalEntity | undefined;
}
export type Definitions = import("../codegen/index.js").Definitions;
export type EvalEntity = import("../typecheck/index.js").EvalEntity;
import { Statement } from "./Statement.js";
import type { Word } from "@helios-lang/compiler-utils";
import { ModuleScope } from "../scopes/index.js";
import type { Site } from "@helios-lang/compiler-utils";
//# sourceMappingURL=ImportFromStatement.d.ts.map