Skip to content

Commit 96d526f

Browse files
committed
add signature pattern tests and fix formatter bugs
1 parent 537a4a1 commit 96d526f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Sources/UCF/Codelinks/Grammar/UCF.TypePattern.swift

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,22 @@ extension UCF.TypePattern
8787

8888
input.format(source: source, into: &string)
8989
}
90-
string.append("->")
90+
string.append(")->")
9191
output.format(source: source, into: &string)
9292

9393
case .nominal(let path):
94+
var first:Bool = true
9495
for (component, generics):(Range<String.Index>, [UCF.TypePattern]) in path
9596
{
97+
if first
98+
{
99+
first = false
100+
}
101+
else
102+
{
103+
string.append(".")
104+
}
105+
96106
string += source[component]
97107

98108
if generics.isEmpty

0 commit comments

Comments
 (0)