Skip to content

Commit

Permalink
Cleaned up syntax naming
Browse files Browse the repository at this point in the history
  • Loading branch information
LPeter1997 committed Oct 31, 2024
1 parent 883abbe commit 1990d06
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/Draco.Compiler/Internal/Syntax/Syntax.xml
Original file line number Diff line number Diff line change
Expand Up @@ -516,9 +516,9 @@
The this parameter at the first place in a parameter list.
</Documentation>

<Field Name="ThisToken" Type="SyntaxToken">
<Field Name="This" Type="SyntaxToken">
<Documentation>
The this keyword, representing the type instance.
The 'this' keyword.
</Documentation>
<Token Kind="KeywordThis" />
</Field>
Expand Down Expand Up @@ -687,9 +687,9 @@
<Token Kind="KeywordPublic" />
</Field>

<Field Name="GlobalKeyword" Type="SyntaxToken?">
<Field Name="GlobalModifier" Type="SyntaxToken?">
<Documentation>
The optional global keyword that mark this variable as a global.
The optional global modifier that marks this variable as a global (static).
</Documentation>

<Token Kind="KeywordGlobal"/>
Expand Down Expand Up @@ -1384,13 +1384,13 @@
The expression referencing the receiver of a member function.
</Documentation>

<Field Name="Keyword" Type="SyntaxToken">
<Field Name="This" Type="SyntaxToken">
<Documentation>
The this keyword.
The 'this' keyword.
</Documentation>

<Token Kind="KeywordThis"/>
</Field>

</Node>

<Node Name="GroupingExpressionSyntax" Base="ExpressionSyntax">
Expand Down
3 changes: 2 additions & 1 deletion src/Draco.SourceGeneration/TemplateUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ internal static class TemplateUtils
"operator",
"object",
"bool",
"string"
"string",
"this",
];

/// <summary>
Expand Down

0 comments on commit 1990d06

Please sign in to comment.