Skip to content

Null-safe call #857

@lars-reimann

Description

@lars-reimann

Is your feature request related to a problem?

Similar to null-safe member accesses, we might want to call an expression if it is not null and return null otherwise.

Desired solution

  • Null-safe calls, with a syntax similar to TypeScript: a?().
  • Move isNullSafe from SdsMemberAccess to SdsChainedExpression
  • Apply the current checks involving isNullSafe to all SdsChainedExpression

Possible alternatives (optional)

No response

Screenshots (optional)

No response

Additional Context (optional)

No response

Metadata

Metadata

Assignees

Labels

releasedIncluded in a release

Type

No type

Projects

Status

✔️ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions