-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preserve string delimiter in type printing. #60729
base: main
Are you sure you want to change the base?
Changes from 3 commits
2906dea
275f6b9
638ceea
b8d575a
1f2c52c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ declare namespace demoNS { | |
>f : Symbol(f, Decl(demo.d.ts, 0, 26)) | ||
} | ||
declare module 'demoModule' { | ||
>'demoModule' : Symbol("demoModule", Decl(demo.d.ts, 2, 1)) | ||
>'demoModule' : Symbol('demoModule', Decl(demo.d.ts, 2, 1)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm surprised to see symbol baselines change; were we inconsistent with these before? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Symbol printing is involved in type printing and error printing. I applied the 'preserve source code delimiters in everything except errors' to the symbol printing too. This does mean that the delimiters are now preserved in symbol baselines where they previously were not. Were they always replaced before? Don't think so. Some error messages used symbol printing for the property names and we can see in error baselines changes that some of those kept the |
||
|
||
import alias = demoNS; | ||
>alias : Symbol(alias, Decl(demo.d.ts, 3, 29)) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.