UNPKG

ts-flex-query

Version:
18 lines 557 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.VariableExpression = void 0; exports.variable = variable; class VariableExpression { constructor(dataType, symbol) { this.dataType = dataType; this.symbol = symbol; } evaluate(context) { return context.variables[this.symbol]; } } exports.VariableExpression = VariableExpression; function variable(dataType, semanticIdentifier) { return new VariableExpression(dataType, semanticIdentifier); } //# sourceMappingURL=variable.js.map