This mapping has 2 multi-map groups: several pairings are equally correct there. The code view shows one arbitrary valid pairing, not the only one.

Before

…lines 1–47 unchanged (47 lines)
48 test - check("{{b,c}}d", List("{b}d", "{c}d"))
49 }
50 test("malformed") {
51 val malformed = Seq("core.{compile", "core.{compile,test]")
52
53 malformed.foreach { m =>
54 val Result.Failure(error) = ExpandBraces.expandBraces(m): @unchecked
55 assert(error.contains("Parsing exception"))
56 }
57 }
58 test("dontExpand") {
59 test - check("core.compile", List("core.compile"))
60 test - check("{}.compile", List("{}.compile"))
61 test - check("{core}.compile", List("{core}.compile"))
…lines 62–75 unchanged (14 lines)

After

…lines 1–47 unchanged (47 lines)
48 test - check("{{b,c}}d", List("{b}d", "{c}d"))
49 }
50 test("malformed") {
51 val malformed = Seq("core.{compile", "core.{compile,test]")
52
53 malformed.foreach { m =>
54 val (failure: Result.Failure) = ExpandBraces.expandBraces(m): @unchecked
55 assert(failure.error.contains("Parsing exception"))
56 }
57 }
58 test("dontExpand") {
59 test - check("core.compile", List("core.compile"))
60 test - check("{}.compile", List("{}.compile"))
61 test - check("{core}.compile", List("{core}.compile"))
…lines 62–75 unchanged (14 lines)

Before

compilation_unit
package_clause
package "package"
package_identifier
identifier "mill"
. "."
identifier "resolve"
import_declaration
import "import"
identifier "mill"
. "."
identifier "api"
. "."
identifier "Result"
import_declaration
import "import"
identifier "utest"
. "."
namespace_wildcard
* "*"
object_definition
object "object"
identifier "ExpandBracesTests"
extends_clause
extends "extends"
type_identifier "TestSuite"
template_body
{ "{"
val_definition
val "val"
identifier "tests"
= "="
call_expression
identifier "Tests"
block
{ "{"
call_expression
call_expression
identifier "test"
arguments
( "("
string "\"expandBraces\""
) ")"
block
{ "{"
function_definition (+58 nodes collapsed)
infix_expression (+23 nodes collapsed)
infix_expression (+25 nodes collapsed)
infix_expression (+27 nodes collapsed)
call_expression (+156 nodes collapsed)
call_expression (+46 nodes collapsed)
call_expression
call_expression
identifier "test"
arguments
( "("
string "\"malformed\""
) ")"
block
{ "{"
val_definition
val "val"
identifier "malformed"
= "="
call_expression
identifier "Seq"
arguments
( "("
string "\"core.{compile\""
, ","
string "\"core.{compile,test]\""
) ")"
call_expression
field_expression
identifier "malformed"
. "."
identifier "foreach"
block
{ "{"
lambda_expression
identifier "m"
=> "=>"
indented_block
val_definition
val "val"
case_class_pattern
stable_type_identifier
identifier "Result"
. "."
type_identifier "Failure"
( "("
identifier "error"
) ")"
= "="
ascription_expression
call_expression
field_expression
identifier "ExpandBraces"
. "."
identifier "expandBraces"
arguments
( "("
identifier "m"
) ")"
: ":"
annotation
@ "@"
type_identifier "unchecked"
call_expression
identifier "assert"
arguments
( "("
call_expression
field_expression any 1:2
identifier "error"
. "." any 1:2
identifier "contains"
arguments
( "("
string "\"Parsing exception\""
) ")"
) ")"
} "}"
} "}"
call_expression (+58 nodes collapsed)
call_expression (+57 nodes collapsed)
} "}"
} "}"
} "}"

After

compilation_unit
package_clause
package "package"
package_identifier
identifier "mill"
. "."
identifier "resolve"
import_declaration
import "import"
identifier "mill"
. "."
identifier "api"
. "."
identifier "Result"
import_declaration
import "import"
identifier "utest"
. "."
namespace_wildcard
* "*"
object_definition
object "object"
identifier "ExpandBracesTests"
extends_clause
extends "extends"
type_identifier "TestSuite"
template_body
{ "{"
val_definition
val "val"
identifier "tests"
= "="
call_expression
identifier "Tests"
block
{ "{"
call_expression
call_expression
identifier "test"
arguments
( "("
string "\"expandBraces\""
) ")"
block
{ "{"
function_definition (+58 nodes collapsed)
infix_expression (+23 nodes collapsed)
infix_expression (+25 nodes collapsed)
infix_expression (+27 nodes collapsed)
call_expression (+156 nodes collapsed)
call_expression (+46 nodes collapsed)
call_expression
call_expression
identifier "test"
arguments
( "("
string "\"malformed\""
) ")"
block
{ "{"
val_definition
val "val"
identifier "malformed"
= "="
call_expression
identifier "Seq"
arguments
( "("
string "\"core.{compile\""
, ","
string "\"core.{compile,test]\""
) ")"
call_expression
field_expression
identifier "malformed"
. "."
identifier "foreach"
block
{ "{"
lambda_expression
identifier "m"
=> "=>"
indented_block
val_definition
val "val"
tuple_pattern
( "("
typed_pattern
identifier "failure"
: ":"
stable_type_identifier
identifier "Result"
. "."
type_identifier "Failure"
) ")"
= "="
ascription_expression
call_expression
field_expression
identifier "ExpandBraces"
. "."
identifier "expandBraces"
arguments
( "("
identifier "m"
) ")"
: ":"
annotation
@ "@"
type_identifier "unchecked"
call_expression
identifier "assert"
arguments
( "("
call_expression
field_expression any 1:2
field_expression any 1:2
identifier "failure"
. "." any 1:2
identifier "error"
. "." any 1:2
identifier "contains"
arguments
( "("
string "\"Parsing exception\""
) ")"
) ")"
} "}"
} "}"
call_expression (+58 nodes collapsed)
call_expression (+57 nodes collapsed)
} "}"
} "}"
} "}"