Make Formatter Happy

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-05-29 17:37:42 -04:00
parent 3ee1eab2f8
commit 6882a32858
2 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -386,4 +386,5 @@ extension Node {
} }
@attached(member, names: named(CompileStatement)) @attached(member, names: named(CompileStatement))
public macro deriveCompilableStatement() = #externalMacro(module: "Macros", type: "DeriveCompilableStatement") public macro deriveCompilableStatement() =
#externalMacro(module: "Macros", type: "DeriveCompilableStatement")
+4 -3
View File
@@ -37,17 +37,18 @@ extension TransitionStatement: Compilable {
return .Error( return .Error(
ErrorWithLocation( ErrorWithLocation(
sourceLocation: node.toSourceLocation(), 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 { guard let stmts = context.lexical_context_statements else {
return .Error( return .Error(
ErrorWithLocation( ErrorWithLocation(
sourceLocation: node.toSourceLocation(), 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, P4Statement>( #RequireNodeType<Node, P4Statement>(
node: node, type: "parserTransitionStatement", nice_type_name: "parser transition statement" node: node, type: "parserTransitionStatement", nice_type_name: "parser transition statement"
) )