dotnet/roslyn
[Tests] These tests seem to check SyntaxToken inside of SyntaxNode
開放
#38,311 建立於 2019年8月27日
Area-CompilersBugTesthelp wanted
倉庫指標
- 星標
- (20,414 顆星)
- PR 合併指標
- (PR 指標待抓取)
描述
See https://github.com/dotnet/roslyn/blob/master/src/Compilers/Core/CodeAnalysisTest/CommonSyntaxTests.cs#L181-201
Names node, token and trivia suggest that this test was intended to test VisualBasicExtensions.Kind methods for SyntaxNode, SyntaxToken and SyntaxTrivia of C#. In fact, both first and second invocation test the same method Kind(this SyntaxToken token), because node is actually a SyntaxToken.
The same applies to VisualBasicSyntax_CSharpKind test as well.