From 6882a328589bea7b5e1482abe280afa80ea70369 Mon Sep 17 00:00:00 2001 From: Will Hawkins Date: Fri, 29 May 2026 17:37:42 -0400 Subject: [PATCH] Make Formatter Happy Signed-off-by: Will Hawkins --- Sources/P4Compiler/Common.swift | 3 ++- Sources/P4Compiler/SpecialCompilers.swift | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Sources/P4Compiler/Common.swift b/Sources/P4Compiler/Common.swift index 103770d..0c2d2cb 100644 --- a/Sources/P4Compiler/Common.swift +++ b/Sources/P4Compiler/Common.swift @@ -386,4 +386,5 @@ extension Node { } @attached(member, names: named(CompileStatement)) -public macro deriveCompilableStatement() = #externalMacro(module: "Macros", type: "DeriveCompilableStatement") \ No newline at end of file +public macro deriveCompilableStatement() = + #externalMacro(module: "Macros", type: "DeriveCompilableStatement") diff --git a/Sources/P4Compiler/SpecialCompilers.swift b/Sources/P4Compiler/SpecialCompilers.swift index 83f85ba..070360d 100644 --- a/Sources/P4Compiler/SpecialCompilers.swift +++ b/Sources/P4Compiler/SpecialCompilers.swift @@ -37,17 +37,18 @@ extension TransitionStatement: Compilable { return .Error( ErrorWithLocation( sourceLocation: node.toSourceLocation(), - withError: "Cannot parse a transition statement without the name of the containing state.")) + withError: "Cannot parse a transition statement without the name of the containing state." + )) } guard let stmts = context.lexical_context_statements else { return .Error( ErrorWithLocation( sourceLocation: node.toSourceLocation(), - withError: "Cannot parse a transition statement without statements of the containing state.")) + withError: + "Cannot parse a transition statement without statements of the containing state.")) } - #RequireNodeType( node: node, type: "parserTransitionStatement", nice_type_name: "parser transition statement" )