@@ -93,7 +93,8 @@ extension AST.FunctionDeclaration: Compilable {
|
||||
sourceLocation: function_declaration_node.toSourceLocation(),
|
||||
withError: "Missing function declaration component")))
|
||||
|
||||
let maybe_function_name = AST.Identifier.CompileExpression(node: current_node!, withContext: context)
|
||||
let maybe_function_name = AST.Identifier.CompileExpression(
|
||||
node: current_node!, withContext: context)
|
||||
guard case .Ok(let function_name) = maybe_function_name else {
|
||||
return .Error(maybe_function_name.error()!)
|
||||
}
|
||||
@@ -476,9 +477,11 @@ extension AST.Control: Compilable {
|
||||
))
|
||||
}
|
||||
|
||||
return .Ok(AST.Control(
|
||||
named: control_name as! AST.Identifier, withParameters: control_parameters, withTable: tables[0],
|
||||
withActions: AST.Actions(withActions: actions), withApply: apply))
|
||||
return .Ok(
|
||||
AST.Control(
|
||||
named: control_name as! AST.Identifier, withParameters: control_parameters,
|
||||
withTable: tables[0],
|
||||
withActions: AST.Actions(withActions: actions), withApply: apply))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user