Skip to content

Conversation

Andarist
Copy link
Contributor

@Andarist Andarist commented Oct 5, 2025

Andarist and others added 4 commits October 5, 2025 14:28
get isTypeOnly(): boolean | undefined {
switch (this.kind) {
case SyntaxKind.ImportSpecifier:
case SyntaxKind.ImportClause:
Copy link
Member

Choose a reason for hiding this comment

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

Should this defer to phaseModifier in some way?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have added that at first but then concluded this should closely match up the defined AST shape and ImportClause doesn't have IsTypeOnly property anymore (in Strada it's deprecated). It could be handled here for convenience though. I'll defer (hehe) the decision to you and @andrewbranch

Copy link
Member

Choose a reason for hiding this comment

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

That's true, though that should come with an update to the ast package as well.

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