Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Top level comment generates wrong real rule #80

Open
hfhbd opened this issue Jan 25, 2023 · 0 comments
Open

Top level comment generates wrong real rule #80

hfhbd opened this issue Jan 25, 2023 · 0 comments

Comments

@hfhbd
Copy link
Collaborator

hfhbd commented Jan 25, 2023

// https://www.ibm.com/docs/en/i/7.1?topic=statements-select-into
select_into_clause ::= INTO host_variable ( COMMA host_variable ) * {
  pin = 1
}

Results into this api:

+public abstract interface class app/softwork/sqldelight/db2dialect/grammar/psi/Db2BindExprReal : com/alecstrong/sql/psi/core/psi/SqlBindExpr {
+}
+

-	public static final field BIND_EXPR Lcom/intellij/psi/tree/IElementType;
+	public static final field BIND_EXPR_REAL Lcom/intellij/psi/tree/IElementType;

+	public fun visitBindExprReal (Lapp/softwork/sqldelight/db2dialect/grammar/psi/Db2BindExprReal;)V
 
+public class app/softwork/sqldelight/db2dialect/grammar/psi/impl/Db2BindExprRealImpl : com/alecstrong/sql/psi/core/psi/impl/SqlBindExprImpl, app/softwork/sqldelight/db2dialect/grammar/psi/Db2BindExprReal {
+	public fun <init> (Lcom/intellij/lang/ASTNode;)V
+	public fun accept (Lapp/softwork/sqldelight/db2dialect/grammar/psi/Db2Visitor;)V
+	public fun accept (Lcom/intellij/psi/PsiElementVisitor;)V
+}
+

Workaround: Move the comment into the rule

select_into_clause ::= INTO host_variable ( COMMA host_variable ) * {
  // https://www.ibm.com/docs/en/i/7.1?topic=statements-select-into
  pin = 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant