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" )