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 Length property to inline arrays #172

Merged
merged 1 commit into from
Mar 5, 2021

Conversation

jnm2
Copy link
Contributor

@jnm2 jnm2 commented Mar 3, 2021

Closes #169

@jnm2 jnm2 force-pushed the inline_array_length_property branch from f926686 to e8cd8f1 Compare March 3, 2021 21:40
Copy link
Member

@AArnott AArnott left a comment

Choose a reason for hiding this comment

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

Thanks!

Comment on lines +3183 to +3191
.WithLeadingTrivia(Trivia(DocumentationCommentTrivia(SyntaxKind.SingleLineDocumentationCommentTrivia).AddContent(
DocCommentStart,
XmlElement("summary", List(new XmlNodeSyntax[]
{
XmlText("Always "),
XmlElement("c", List(new XmlNodeSyntax[] { XmlText(lengthLiteralSyntax.Token.ValueText) })),
XmlText("."),
})),
DocCommentEnd))));
Copy link
Member

Choose a reason for hiding this comment

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

You might not need the doc comment once we make it a constant, since I think Intellisense will show the constant's value.
Also, the precedent for doc comments is to write it out mostly as a string literal and ask the OM to parse it, since as we see here, this is super-complicated code for a comment.

@AArnott AArnott merged commit 9ab2c0b into microsoft:main Mar 5, 2021
AArnott pushed a commit that referenced this pull request Sep 1, 2022
Bumps [Nullable](https://github.com/manuelroemer/Nullable) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/manuelroemer/Nullable/releases)
- [Changelog](https://github.com/manuelroemer/Nullable/blob/master/CHANGELOG.md)
- [Commits](https://github.com/manuelroemer/Nullable/commits)

---
updated-dependencies:
- dependency-name: Nullable
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.

Length property on inline arrays
2 participants