Skip to content

Top level comment generates wrong real rule #80

@hfhbd

Description

@hfhbd
// 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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions