Skip to content

Regression in code completion after dart parser changes at r6305 #2484

Closed
@DartBot

Description

@DartBot

This issue was originally filed by [email protected]


Changes in r6305 to the parser to make it more resiliant have caused these 2 tests to fail in the editor. I have disabled them for the time being.

  public void disabledTestCommentSnippets036() throws Exception {
    test("t3() {var x=new List!1}", "1+List");
  }

  public void disabledTestCommentSnippets037() throws Exception {
    test("t3() {var x=new List.!1}", "1+from");
  }

I ran it on just the static analyzer and then had it print out the resulting code from the AST:

 t3() {var x=new List}
var after;

the AST to source prints:

t3() {
  var x = new List(null);
}
var after;

Before the change in 6503, the 'var after;' declaration would have been eaten. Maybe the type of node in this test has changed also.

Metadata

Metadata

Assignees

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