GitLab will be shut down on June 25 to move to a new facility. https://www.eclipsestatus.io/incidents/5ffy27gwcbx7

Commit 2840bbd2 authored by Miklos Magyari's avatar Miklos Magyari
Browse files

Null check and error report for missing values in assignments


Signed-off-by: Miklos Magyari's avatarMiklos Magyari <miklos.magyari@sigmatechnology.se>
parent 9d430554
......@@ -4696,10 +4696,14 @@ pr_SingleVarInstance[Type type, parameterEvaluationType eval, boolean isAbstract
i = pr_Identifier
( d = pr_ArrayDef { dimensions = $d.dimensions; })?
(
pr_AssignmentChar
ac = pr_AssignmentChar
templ = pr_TemplateBody {
initValTemplate = $templ.template;
initValTemplate.setLocation(getLocation( $templ.start, $templ.stop ));
initValTemplate = $templ.template;
if (initValTemplate != null) {
initValTemplate.setLocation(getLocation( $templ.start, $templ.stop ));
} else {
reportError("Missing value in assignment", $ac.start, $ac.stop);
}
}
)?
body = pr_PropertyBody[type, isAbstract, isFinal, isDeterministic, isInternal] { prop = $body.prop; }
......
Markdown is supported
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