Skip to content

Improve ASTGenError messages #68352

Open
Open
@ahoppen

Description

@ahoppen

We should make a couple of improvements to the error messages of the ASTGenError types.

  • The error messages should be single-line
  • The error messages should tell the user to file a bug report since this is an internal compiler inconsistency
  • The error messages should be somewhat actionable, e.g. UnexpectedTokenKindError should tell the developer which token kinds are acceptable.

Metadata

Metadata

Assignees

Labels

ASTGenArea → compiler: The ASTGen module, which translates SwiftSyntax trees to the C++ ASTcompilerThe Swift compiler itself

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions