Skip to content

for_statement init node #44

@xixiaofinland

Description

@xixiaofinland

in for_statement, it support these two init node scenarios:

field("init", $.local_variable_declaration),
seq(commaJoined(field("init", $.expression)), ";")

So there can be multiple init: Expression nodes, but this is not parsable in jorje: PA site sample code

public class Me {
  {
    for ('hoho', 'haha'; i < 3;) {
      System.debug(i);
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions