| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
LGTM once the code completion change is reverted.
declarationHelper(mustBeType: true).addLexicalDeclarations(node);I believe that this is close to being right, but missing some details. I am working on a CL to support code completion when the primary-constructors feature is enabled, so it would be easiest for me if you reverted this change.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
declarationHelper(mustBeType: true).addLexicalDeclarations(node);I believe that this is close to being right, but missing some details. I am working on a CL to support code completion when the primary-constructors feature is enabled, so it would be easiest for me if you reverted this change.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
Changes to tests/language lgtm
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
DeCo. Build extension type primary constructors like regular ones.
Previously, the AST builder enforced strict constraints on extension
type primary constructors during parsing, often discarding or
transforming invalid parameters (e.g., multiple, optional, or named
parameters) to force a valid representation field structure. This
limited recovery and resulted in inaccurate element models for invalid
code.
This change updates the AST builder to parse and build elements for the
primary constructor's formal parameters exactly as written. The
validation logic ensuring a single, positional representation field has
been moved to `ErrorVerifier`.
To maintain the invariant that an extension type has a representation, a
synthetic "recovery" representation field is now added to the element
model if the parsed parameters do not provide a valid one.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |