Skip to content
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

Add type hints for collection expressions #74051

Merged
merged 6 commits into from
Jun 21, 2024

Conversation

akhera99
Copy link
Member

Fixes: #72250

image

@akhera99 akhera99 requested a review from a team as a code owner June 18, 2024 18:42
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Jun 18, 2024
@CyrusNajmabadi
Copy link
Member

Awesome! Can you show a picture of the options?

if (IsValidType(type))
{
var span = new TextSpan(collectionExpression.OpenBracketToken.SpanStart, 0);
return new(type, span, new TextChange(span, " " + type.ToDisplayString(s_minimalTypeStyle)), leadingSpace: true);
Copy link
Member

Choose a reason for hiding this comment

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

Why the extra space?

Copy link
Member Author

Choose a reason for hiding this comment

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

you're right, unnecessary

@akhera99
Copy link
Member Author

Awesome! Can you show a picture of the options?

image

@akhera99 akhera99 enabled auto-merge (squash) June 18, 2024 20:10
@akhera99 akhera99 merged commit 639174a into dotnet:main Jun 21, 2024
25 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Jun 21, 2024
@jjonescz jjonescz modified the milestones: Next, 17.11 P3 Jun 24, 2024
333fred added a commit to 333fred/roslyn that referenced this pull request Jun 24, 2024
* upstream/main:
  [main] Update dependencies from dotnet/arcade (dotnet#74099)
  Remove warning for `yield return` in `lock` (dotnet#74024)
  [release/dev17.10] Update dependencies from dotnet/arcade (dotnet#74113)
  On the fly docs - add telemetry regarding documentation comments (dotnet#74088)
  Query for the COM service provider instead of direct cast
  Add type hints for collection expressions (dotnet#74051)
  Align implementation with latest LDM decisions around invocations in presence of dynamic arguments. (dotnet#74097)
  Avoid allocations in AbstractSyntaxIndex<>.GetIndexAsync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

type hints for collection expressions
3 participants