Commit 0f729389 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Detect errors in the interface view

If the interface view defines context parameters that have no associated
type (asn1 type or Timer) they are still silently saved by the GUI,
resulting in a badly formed AADL file. It is now detected and reported
by kazoo
parent 79e32ded
......@@ -722,6 +722,11 @@ package body TASTE.Interface_View is
(if Prefix'Length > 0 then "." else "") & Name;
Terminal_Fn : Taste_Terminal_Function;
begin
if No (CI) then
raise Interface_Error
with "Element " & Next_Prefix & " is not properly defined";
end if;
case Get_Category_Of_Component (CI) is
when CC_System =>
if Present (AIN.Subcomponents (CI)) then
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment