From 902326c9b78cc9971164bcd328beee80c3f217b8 Mon Sep 17 00:00:00 2001 From: taozhi8833998 Date: Mon, 13 May 2024 17:32:24 +0800 Subject: [PATCH] fix: add getLocationObject function in redshift --- pegjs/redshift.pegjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pegjs/redshift.pegjs b/pegjs/redshift.pegjs index 24271db1..29d3b6cc 100644 --- a/pegjs/redshift.pegjs +++ b/pegjs/redshift.pegjs @@ -97,6 +97,10 @@ 'PERSIST_ONLY': true, }; + function getLocationObject() { + return options.includeLocations ? {loc: location()} : {} + } + function createUnaryExpr(op, e) { return { type: 'unary_expr',