You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run the test CSharpCompletionCommandHandlerTests.LocalFunctionAttributeNamedPropertyCompletionCommitWithTab and wait for an assertion failure in SyntaxTreeExtensions.VerifySource.
The test attempts to apply this change and incrementally parse the result:
class MyAttribute : System.Attribute
{
public string Name { get; set; }
}
public class Goo
{
void M()
{
- [MyAttribute(Nam+ [MyAttribute(Name =
void local1() { }
}
}
Expected Behavior:
The full text of the CompilationUnitSyntax should match this original SyntaxTree text:
class MyAttribute : System.Attribute
{
public string Name { get; set; }
}
public class Goo
{
void M()
{
[MyAttribute(Name =
void local1() { }
}
}
Actual Behavior:
The full text of the CompilationUnitSyntax is this:
class MyAttribute : System.Attribute
{
public string Name { get; set; }
}
public class Goo
{
void M()
{
{ }
}
}
The text was updated successfully, but these errors were encountered:
Currently the incremental parser is not producing trees with the correct
text. However, this bug was introduced in the past and is failing now
that debug assertions are checked in builds.
See dotnet#47610
Version Used: 8adbb93
Steps to Reproduce:
Run the test
CSharpCompletionCommandHandlerTests.LocalFunctionAttributeNamedPropertyCompletionCommitWithTab
and wait for an assertion failure inSyntaxTreeExtensions.VerifySource
.The test attempts to apply this change and incrementally parse the result:
Expected Behavior:
The full text of the
CompilationUnitSyntax
should match this originalSyntaxTree
text:Actual Behavior:
The full text of the
CompilationUnitSyntax
is this:The text was updated successfully, but these errors were encountered: