Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Canceled after 0s
35 lines
814 B
Plaintext
35 lines
814 B
Plaintext
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.DefinitionBase = void 0;
|
|
const ID_1 = require("../ID");
|
|
const generator = (0, ID_1.createIdGenerator)();
|
|
class DefinitionBase {
|
|
/**
|
|
* A unique ID for this instance - primarily used to help debugging and testing
|
|
*/
|
|
$id = generator();
|
|
type;
|
|
/**
|
|
* The `Identifier` node of this definition
|
|
* @public
|
|
*/
|
|
name;
|
|
/**
|
|
* The enclosing node of the name.
|
|
* @public
|
|
*/
|
|
node;
|
|
/**
|
|
* the enclosing statement node of the identifier.
|
|
* @public
|
|
*/
|
|
parent;
|
|
constructor(type, name, node, parent) {
|
|
this.type = type;
|
|
this.name = name;
|
|
this.node = node;
|
|
this.parent = parent;
|
|
}
|
|
}
|
|
exports.DefinitionBase = DefinitionBase;
|