Bug #5757

Prevent DnD monitor expression evaluation or inversion from failing with state property expressions where property names start with lower-case letters

Added by Tuukka Lehtonen about 2 years ago. Updated almost 2 years ago.

Status:ClosedStart date:2015-04-09
Priority:4Due date:2015-04-09
Assignee:Tuukka Lehtonen% Done:

100%

Category:User ComponentsSpent time:-
Target version:1.18.1
Release notes:Fixed DnD monitor expression (inverse) evaluation (parsing) to work also with properties whose name doesn't start with capital letters [A-Z] since in SCL all variable names must start with lower-case letters [a-z].
Tags: structural, monitor
Story points-
Velocity based estimate-
ReleaseSimantics 1.18.1Release relationshipAuto

Description

Current a user component type can have stateful properties whose value is defined by an expression.

These expression are e.g. A.fooBar where A is a component and fooBar is the name of its property.

Currently InvertBasicExpressionVisitor is not capable of handling these properly because it only expects to find expressions like A.FooBar where the property names always start with upper-case letters.

Associated revisions

Revision 31155
Added by Tuukka Lehtonen about 2 years ago

Fixed InvertBasicExpressionVisitor to understand expressions like A.fooBar, where property names start with lower-case letters.

Also added some extra robustness to MonitorExpressionVisitor multiplication evaluation for cases where values are not available.

refs #5757

Revision 31156
Added by Tuukka Lehtonen about 2 years ago

Merged trunk@31155 to branches/simantics-1.18 on 2015-04-09 for 1.18.1 release.

refs #5757

Revision 31323
Added by Tuukka Lehtonen almost 2 years ago

Removed print.

refs #5757

Revision 31324
Added by Tuukka Lehtonen almost 2 years ago

Redid r31323 in 1.18 branch for 1.18.2.

refs #5757

History

#1 Updated by Tuukka Lehtonen about 2 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

#2 Updated by Tuukka Lehtonen almost 2 years ago

  • Release notes set to Fixed DnD monitor expression (inverse) evaluation (parsing) to work also with properties whose name doesn't start with capital letters [A-Z] since in SCL all variable names must start with lower-case letters [a-z].

Also available in: Atom PDF