Skip to content

Fix type inferencing and syntax highlighting for lambdas with variable expression for parameter list #1000

@eric-milles

Description

@eric-milles

Consider the following:

List<String> list = ['a', 'e', 'i', 'o', 'u', 'y']
list = ['abc', 'def', 'ghi', 'xyz'].stream().filter(
  e -> list.stream().anyMatch(c -> e.contains(c))).toList()

The variable expressions "e" and "c" are missing name offsets, causing a breakdown in syntax highlighting. Also the type of each should be inferred as String, not Object.

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions