File tree Expand file tree Collapse file tree
src/org/omg/sysml/adapter
syntax-gen/org/omg/sysml/lang/sysml/impl Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -206,8 +206,14 @@ protected void computeValueConnector() {
206206 @ Override
207207 public void doTransform () {
208208 super .doTransform ();
209- if (UsageUtil .isVariant (getTarget ())) {
209+ Usage target = getTarget ();
210+ if (UsageUtil .isVariant (target )) {
210211 addImplicitFeaturingTypesIfNecessary ();
211212 }
213+
214+ // Note: This cannot be done in postProcess, because of mayTimeVary computation.
215+ if (target .isEnd () && mayTimeVary ()) {
216+ target .setIsConstant (true );
217+ }
212218 }
213219}
Original file line number Diff line number Diff line change @@ -1051,11 +1051,6 @@ public boolean isComposite() {
10511051 return UsageUtil .isComposite (this , isComposite );
10521052 }
10531053
1054- @ Override
1055- public boolean isConstant () {
1056- return isConstant || isEnd () && isMayTimeVary ();
1057- }
1058-
10591054 //
10601055
10611056 /**
You can’t perform that action at this time.
0 commit comments