Skip to content

Conversation

@jakebailey
Copy link
Member

This moves all of the checker code into its own package, mainly to speed up Program compile time.

GetResolvedModule(currentSourceFile *ast.SourceFile, moduleReference string) *ast.SourceFile
}

type Host interface{}
Copy link
Member Author

Choose a reason for hiding this comment

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

This is empty because it's unused; will fixish.

@rbuckton
Copy link

I'll probably need to refactor #229 if this merges first.

@jakebailey
Copy link
Member Author

I'm going to wait for Anders to okay this since he probably has something in flight.

@ahejlsberg
Copy link
Member

Quick question: Are we following up with PRs to also create program and emitter packages?

@jakebailey
Copy link
Member Author

The latter is already in https://github.com/microsoft/typescript-go/tree/main/internal/printer; the emit code in the compiler package is just the stuff that does the looping, more or less.

We could move Program, though that would leave the compiler package empty. Maybe no compiler package is good?

@jakebailey
Copy link
Member Author

Yeah, after this PR, the compiler package is quite literally only Program related code.

@jakebailey
Copy link
Member Author

#232 shows what the rest of that movement would look like.

Copy link
Member

@ahejlsberg ahejlsberg left a comment

Choose a reason for hiding this comment

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

Approved once #233 gets merged.

@jakebailey
Copy link
Member Author

Merge with main worked, since git does understand this is a code move, very nice.

@jakebailey jakebailey merged commit fae85c0 into main Jan 15, 2025
14 checks passed
@jakebailey jakebailey deleted the jabaile/move-checker branch January 15, 2025 19:24
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.

7 participants