We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Version Used: 3.7.0
Steps to Reproduce:
Run the following code:
var type = SyntaxFactory.ParseTypeName("int[]"); var omittedExpression = type.DescendantNodes().OfType<OmittedArraySizeExpressionSyntax>().Single(); Console.WriteLine(type.FindNode(omittedExpression.FullSpan, getInnermostNodeForTie: true).Kind());
Expected Behavior: The code prints OmittedArraySizeExpression.
OmittedArraySizeExpression
Actual Behavior: The code prints ArrayRankSpecifier.
ArrayRankSpecifier
Presumably, the issue is that the width of the OmittedArraySizeExpression node is zero, i.e. its FullSpan is [4..4).
FullSpan
[4..4)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version Used: 3.7.0
Steps to Reproduce:
Run the following code:
Expected Behavior: The code prints
OmittedArraySizeExpression
.Actual Behavior: The code prints
ArrayRankSpecifier
.Presumably, the issue is that the width of the
OmittedArraySizeExpression
node is zero, i.e. itsFullSpan
is[4..4)
.The text was updated successfully, but these errors were encountered: