@abaplint/core
Version:
abaplint - Core API
17 lines • 814 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SQLPath = void 0;
const combi_1 = require("../combi");
const tokens_1 = require("../../1_lexer/tokens");
const association_name_1 = require("./association_name");
const sql_cond_1 = require("./sql_cond");
class SQLPath extends combi_1.Expression {
getRunnable() {
// todo, only from version?
const condition = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.BracketLeftW), "ONE TO ONE WHERE", sql_cond_1.SQLCond, (0, combi_1.tok)(tokens_1.WBracketRight));
const ret = (0, combi_1.seq)(association_name_1.AssociationName, (0, combi_1.optPrio)(condition), (0, combi_1.tok)(tokens_1.Dash), (0, combi_1.regex)(/\w+/));
return ret;
}
}
exports.SQLPath = SQLPath;
//# sourceMappingURL=sql_path.js.map