Skip to content

Conversation

@camchenry
Copy link
Member

@camchenry camchenry commented Jul 1, 2025

@github-actions github-actions bot added A-linter Area - Linter A-semantic Area - Semantic A-ast Area - AST A-ast-tools Area - AST tools A-formatter Area - Formatter C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Jul 1, 2025
Copy link
Member Author

camchenry commented Jul 1, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@codspeed-hq
Copy link

codspeed-hq bot commented Jul 1, 2025

CodSpeed Instrumentation Performance Report

Merging #11990 will not alter performance

Comparing 06-30-refactor_ast_remove_astkind_for_tstypename_ (754c05a) with main (3982963)

Summary

✅ 38 untouched benchmarks

@camchenry camchenry force-pushed the 06-30-refactor_ast_remove_astkind_for_tstypename_ branch from c417026 to d847a59 Compare July 1, 2025 04:06
@camchenry
Copy link
Member Author

There's a small issue in conformance with semantic. I'm not exactly sure why yet, looks like it has something to do with handling reference flags with TSImportType maybe.

@camchenry camchenry force-pushed the 06-30-refactor_ast_remove_astkind_for_tstypename_ branch 3 times, most recently from e5315c7 to 796152d Compare July 1, 2025 19:20
@camchenry camchenry marked this pull request as ready for review July 1, 2025 19:21
@camchenry camchenry force-pushed the 06-30-refactor_ast_remove_astkind_for_tstypename_ branch from 796152d to 62df760 Compare July 2, 2025 01:15
@camchenry camchenry force-pushed the 06-30-refactor_ast_remove_astkind_for_tstypename_ branch from 62df760 to fadbd93 Compare July 2, 2025 01:44
@Dunqing
Copy link
Member

Dunqing commented Jul 2, 2025

There's a small issue in conformance with semantic. I'm not exactly sure why yet, looks like it has something to do with handling reference flags with TSImportType maybe.

I just found out that the field qualifier of TSImportType is TSTypeName, so that there is an identifier reference. But this is wrong because TSImportType shouldn't have any reference.

pub struct TSImportType<'a> {
pub span: Span,
pub argument: TSType<'a>,
pub options: Option<Box<'a, ObjectExpression<'a>>>,
pub qualifier: Option<TSTypeName<'a>>,
pub type_arguments: Option<Box<'a, TSTypeParameterInstantiation<'a>>>,
}

type A = import("./a").b.c
                       ^ This is an identifier reference now.

Copy link
Member

@Dunqing Dunqing left a comment

Choose a reason for hiding this comment

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

Looks good. Since AstKind::TSTypeName has been removed, the prior handling of AstKind::TSTypeName in the Semantic can be simplified a lot. I will create a PR to do that in the follow-up.

@camchenry camchenry added the 0-merge Merge with Graphite Merge Queue label Jul 3, 2025
Copy link
Member Author

camchenry commented Jul 3, 2025

Merge activity

@graphite-app graphite-app bot force-pushed the 06-30-refactor_ast_remove_astkind_for_tstypename_ branch from fadbd93 to 754c05a Compare July 3, 2025 02:30
@graphite-app graphite-app bot merged commit 754c05a into main Jul 3, 2025
24 checks passed
@graphite-app graphite-app bot deleted the 06-30-refactor_ast_remove_astkind_for_tstypename_ branch July 3, 2025 02:37
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Jul 3, 2025
graphite-app bot pushed a commit that referenced this pull request Jul 3, 2025
…12043)

This PR is a follow-up to #11990. After `AstKind::TSTypeName` has been removed, a lot of prior handling of the kind can be removed. The semantic snapshot changes are expected, caused by #12042.
This was referenced Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ast Area - AST A-ast-tools Area - AST tools A-formatter Area - Formatter A-linter Area - Linter A-semantic Area - Semantic C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants