|
@@ -20,6 +20,7 @@ import org.yakindu.base.expressions.expressions.Expression;
|
|
|
import org.yakindu.base.expressions.expressions.FeatureCall;
|
|
|
import org.yakindu.base.expressions.inferrer.ExpressionsTypeInferrer;
|
|
|
import org.yakindu.base.types.Operation;
|
|
|
+import org.yakindu.base.types.Property;
|
|
|
import org.yakindu.base.types.Type;
|
|
|
import org.yakindu.sct.model.sgraph.Scope;
|
|
|
import org.yakindu.sct.model.stext.stext.ActiveStateReferenceExpression;
|
|
@@ -53,6 +54,13 @@ public class STextTypeInferrer extends ExpressionsTypeInferrer {
|
|
|
return inferTypeDispatch(type);
|
|
|
}
|
|
|
|
|
|
+ public Object infer(Property p){
|
|
|
+ Type type = inferTypeDispatch(p.getType());
|
|
|
+ assertNotType(type, VARIABLE_VOID_TYPE, getType(VOID));
|
|
|
+ return inferTypeDispatch(type);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
public Object infer(Operation e) {
|
|
|
return inferTypeDispatch(e.getType() != null ? e.getType() : getType(VOID));
|
|
|
}
|