Skip to content

Commit

Permalink
Update Syntax.xml from Roslyn release/dev17.12 branch (#9616)
Browse files Browse the repository at this point in the history
  • Loading branch information
costin-zaharia-sonarsource committed Aug 8, 2024
1 parent b26c926 commit 7511cd6
Showing 1 changed file with 49 additions and 8 deletions.
57 changes: 49 additions & 8 deletions analyzers/src/SonarAnalyzer.ShimLayer/Syntax.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->

<!--
<!--
To re-generate source from this file, run eng/generate-compiler-code.cmd
-->

Expand Down Expand Up @@ -1987,9 +1987,7 @@
<Kind Name="InterpolatedSingleLineRawStringStartToken"/>
<Kind Name="InterpolatedMultiLineRawStringStartToken"/>
<PropertyComment>
<summary>
The first part of an interpolated string, <c>$"</c> or <c>$@"</c> or <c>$"""</c>
</summary>
<summary>The first part of an interpolated string, <c>$"</c> or <c>$@"</c> or <c>$"""</c></summary>
</PropertyComment>
</Field>
<Field Name="Contents" Type="SyntaxList&lt;InterpolatedStringContentSyntax&gt;" >
Expand Down Expand Up @@ -2197,9 +2195,7 @@
<Field Name="OpenBraceToken" Type="SyntaxToken">
<Kind Name="OpenBraceToken"/>
<PropertyComment>
<summary>
This could be a single <c>{</c> or multiple in a row (in the case of an interpolation in a raw interpolated string).
</summary>
<summary>This could be a single <c>{</c> or multiple in a row (in the case of an interpolation in a raw interpolated string).</summary>
</PropertyComment>
</Field>
<Field Name="Expression" Type="ExpressionSyntax"/>
Expand Down Expand Up @@ -3742,6 +3738,47 @@
<Kind Name="DefaultKeyword"/>
</Field>
</Node>

<Node Name="AllowsConstraintClauseSyntax" Base="TypeParameterConstraintSyntax">
<TypeComment>
<summary>The allows type parameter constraint clause.</summary>
</TypeComment>
<Kind Name="AllowsConstraintClause"/>
<Field Name="AllowsKeyword" Type="SyntaxToken">
<Kind Name="AllowsKeyword"/>
</Field>
<Field Name="Constraints" Type="SeparatedSyntaxList&lt;AllowsConstraintSyntax&gt;" MinCount="1">
<PropertyComment>
<summary>Gets the constraints list.</summary>
</PropertyComment>
</Field>
</Node>

<AbstractNode Name="AllowsConstraintSyntax" Base="CSharpSyntaxNode">
<TypeComment>
<summary>Base type for allow constraint syntax.</summary>
</TypeComment>
</AbstractNode>

<Node Name="RefStructConstraintSyntax" Base="AllowsConstraintSyntax">
<TypeComment>
<summary>Ref struct constraint syntax.</summary>
</TypeComment>
<Kind Name="RefStructConstraint"/>
<Field Name="RefKeyword" Type="SyntaxToken">
<PropertyComment>
<summary>Gets the "ref" keyword.</summary>
</PropertyComment>
<Kind Name="RefKeyword"/>
</Field>
<Field Name="StructKeyword" Type="SyntaxToken">
<PropertyComment>
<summary>Gets the "struct" keyword.</summary>
</PropertyComment>
<Kind Name="StructKeyword"/>
</Field>
</Node>

<AbstractNode Name="BaseFieldDeclarationSyntax" Base="MemberDeclarationSyntax">
<Field Name="Declaration" Type="VariableDeclarationSyntax"/>
<Field Name="SemicolonToken" Type="SyntaxToken">
Expand Down Expand Up @@ -4523,7 +4560,8 @@
<TypeComment>
<summary>
An element of a BaseCrefParameterListSyntax.
Unlike a regular parameter, a cref parameter has only an optional ref or out keyword and a type -
Unlike a regular parameter, a cref parameter has only an optional ref, in, out keyword,
an optional readonly keyword, and a type -
there is no name and there are no attributes or other modifiers.
</summary>
</TypeComment>
Expand All @@ -4533,6 +4571,9 @@
<Kind Name="OutKeyword"/>
<Kind Name="InKeyword"/>
</Field>
<Field Name="ReadOnlyKeyword" Type="SyntaxToken" Optional="true">
<Kind Name="ReadOnlyKeyword"/>
</Field>
<Field Name="Type" Type="TypeSyntax"/>
</Node>
<AbstractNode Name="XmlNodeSyntax" Base="CSharpSyntaxNode">
Expand Down

0 comments on commit 7511cd6

Please sign in to comment.