Skip to content

Use syntaxkinds pattern in more places#63168

Merged
CyrusNajmabadi merged 6 commits intodotnet:mainfrom
CyrusNajmabadi:syntaxKinds
Aug 5, 2022
Merged

Use syntaxkinds pattern in more places#63168
CyrusNajmabadi merged 6 commits intodotnet:mainfrom
CyrusNajmabadi:syntaxKinds

Conversation

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

No description provided.

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner August 3, 2022 17:49
@ghost ghost added the Area-IDE label Aug 3, 2022
var token = root.FindToken(location.SourceSpan.Start, findInsideTrivia: true);

return syntaxFacts.IsGenericName(token.Parent) || syntaxFacts.IsIndexerMemberCRef(token.Parent)
return syntaxFacts.IsGenericName(token.Parent) || syntaxFacts.IsIndexerMemberCref(token.Parent)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Was a misspelling where the method name didn't match the kind name.

Public ReadOnly Property InterpolatedStringTextToken As Integer = SyntaxKind.InterpolatedStringTextToken Implements ISyntaxKinds.InterpolatedStringTextToken
Public ReadOnly Property QuestionToken As Integer = SyntaxKind.QuestionToken Implements ISyntaxKinds.QuestionToken
Public ReadOnly Property StringLiteralToken As Integer = SyntaxKind.StringLiteralToken Implements ISyntaxKinds.StringLiteralToken
Public ReadOnly Property SingleLineRawStringLiteralToken As Integer? = Nothing Implements ISyntaxKinds.SingleLineRawStringLiteralToken
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

= nothign is redundant.

@CyrusNajmabadi CyrusNajmabadi merged commit e1eeada into dotnet:main Aug 5, 2022
@ghost ghost added this to the Next milestone Aug 5, 2022
@CyrusNajmabadi CyrusNajmabadi deleted the syntaxKinds branch August 5, 2022 21:13
@dibarbet dibarbet modified the milestones: Next, 17.4 P2 Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants