Skip to content

Commit 9017257

Browse files
committed
ST6RI-921 Added binding in feature ref expr, even if in filter expr.
1 parent ac6b4fe commit 9017257

1 file changed

Lines changed: 6 additions & 14 deletions

File tree

org.omg.sysml/src/org/omg/sysml/adapter/FeatureReferenceExpressionAdapter.java

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*******************************************************************************
22
* SysML 2 Pilot Implementation
3-
* Copyright (c) 2021, 2022 Model Driven Solutions, Inc.
3+
* Copyright (c) 2021, 2022, 2026 Model Driven Solutions, Inc.
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU Lesser General Public License as published by
@@ -63,19 +63,11 @@ protected boolean isInFilterExpression() {
6363
* @satisfies checkFeatureReferenceExpressionBindingConnector
6464
*/
6565
protected void addReferenceConnector() {
66-
/*
67-
* TODO: Update checkFeatureReferenceExpressionBindingConnector?
68-
*
69-
* OCL does not include !isInFilterExpression check.
70-
*
71-
*/
72-
if (!isInFilterExpression()) {
73-
FeatureReferenceExpression target = getTarget();
74-
Feature referent = target.getReferent();
75-
Feature result = target.getResult();
76-
if (referent != null && result != null) {
77-
addBindingConnector(referent, result);
78-
}
66+
FeatureReferenceExpression target = getTarget();
67+
Feature referent = target.getReferent();
68+
Feature result = target.getResult();
69+
if (referent != null && result != null) {
70+
addBindingConnector(referent, result);
7971
}
8072
}
8173

0 commit comments

Comments
 (0)