Make Formatter Happy

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-03-13 09:45:43 -04:00
parent 0b4db34177
commit 75f9f68349
6 changed files with 30 additions and 20 deletions
+7 -4
View File
@@ -27,7 +27,9 @@ public struct Program {
return Program.Compile(source, withGlobalTypes: .none)
}
public static func Compile(_ source: String, withGlobalTypes globalTypes: LexicalScopes?) -> Result<P4Lang.Program> {
public static func Compile(
_ source: String, withGlobalTypes globalTypes: LexicalScopes?
) -> Result<P4Lang.Program> {
let maybe_parser = ConfigureP4Parser()
guard case .Ok(let p) = maybe_parser else {
@@ -194,9 +196,10 @@ public struct Program {
}
// Any of the types that are in the top-level scope should go into the program!
program.types = Array(compilation_context.names.map() { (_, v) in
v
})
program.types = Array(
compilation_context.names.map { (_, v) in
v
})
return Result.Ok(program)
}
}