@@ -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, P4Statement>(
|
||||
node: node, type: "parserTransitionStatement", nice_type_name: "parser transition statement"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user