Skip to content

Remove Anonymous constructor from DotProtoIdentifier#294

Open
riz0id wants to merge 6 commits intomasterfrom
riz0id/remove-anonymous-identifier
Open

Remove Anonymous constructor from DotProtoIdentifier#294
riz0id wants to merge 6 commits intomasterfrom
riz0id/remove-anonymous-identifier

Conversation

@riz0id
Copy link
Collaborator

@riz0id riz0id commented Nov 4, 2025

This PR makes changes to the protobuf AST in order to remove some constructions which don't map to any meaningful protobuf syntax. Additionally, this PR will attempt to refactor how DotProtoIdentifier is defined so that it is no longer a recursive type, but a record with fields for enclosing file path, qualifiers, and the identifier symbol.

@riz0id riz0id self-assigned this Nov 4, 2025
default-extensions:
BlockArguments ExplicitNamespaces DeriveDataTypeable DeriveGeneric
ImportQualifiedPost ViewPatterns
ImportQualifiedPost PatternSynonyms ViewPatterns
Copy link
Collaborator

@j6carey j6carey Nov 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to go to v0.10.0 at least because of the AST changes.

import Data.Data (Data)
import Data.Int (Int32)
import qualified Data.List.NonEmpty as NE
import Data.List.NonEmpty (NonEmpty (..))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless and until we change the import style (which I'd be happy to do), we should probably keep the current indentation style.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants