Skip to content

Syntax support is not very good. #2

@XiaoJianXiaoXu

Description

@XiaoJianXiaoXu

For example,

//EXAMPLE 1:
let rectangle: CGRect = with(.init(x: 0, y: 0, width: 100, height: 100)) {
  $0 = $0.offsetBy(dx: 20, dy: 20)
  $0 = $0.insetBy(dx: 10, dy: 10)
}

Actual, it's better for syntax support.

let rectangle: CGRect = with(CGRect.init(x: 0, y: 0, width: 100, height: 100)) {
   $0 = $0.offsetBy(dx: 20, dy: 20)
   $0 = $0.insetBy(dx: 10, dy: 10)
}

Is there any way to support it?

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