1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Fixit for brace-to-paren for object initializers

This commit is contained in:
Brian Fiete 2020-08-29 11:29:13 -07:00
parent 535045c48a
commit 10421d99ca
4 changed files with 38 additions and 7 deletions

View file

@ -2277,6 +2277,16 @@ namespace IDE.ui
void ApplyFixit(String data)
{
int splitIdx = data.IndexOf('\x01');
if (splitIdx != -1)
{
String lhs = scope String(data, 0, splitIdx);
String rhs = scope String(data, splitIdx + 1);
ApplyFixit(lhs);
ApplyFixit(rhs);
return;
}
UndoBatchStart undoBatchStart = null;
var parts = String.StackSplit!(data, '|');