mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixit for brace-to-paren for object initializers
This commit is contained in:
parent
535045c48a
commit
10421d99ca
4 changed files with 38 additions and 7 deletions
|
@ -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, '|');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue