Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 72c947e

Browse files
perostOpenModelica-Hudson
authored andcommitted
[NF] Fix ExpOrigin.isSingleExpression.
Belonging to [master]: - #3012 - OpenModelica/OpenModelica-testsuite#1152
1 parent b8d7e26 commit 72c947e

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

Compiler/NFFrontEnd/NFTyping.mo

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -123,20 +123,20 @@ package ExpOrigin
123123
constant Type LHS = intBitLShift(1, 4); // On left hand side of equality/assignment.
124124
constant Type RHS = intBitLShift(1, 5); // On right hand side of equality/assignment.
125125
constant Type WHEN = intBitLShift(1, 6); // In when equation/statement.
126-
constant Type FOR = intBitLShift(1, 7); // In a for loop.
127-
constant Type IF = intBitLShift(1, 8); // In an if equation/statement.
128-
constant Type WHILE = intBitLShift(1, 9); // In a while loop.
129-
constant Type NONEXPANDABLE = intBitLShift(1, 10); // In non-parameter if/for.
130-
constant Type ITERATION_RANGE = intBitLShift(1, 11); // In range used for iteration.
131-
constant Type DIMENSION = intBitLShift(1, 12); // In dimension.
132-
constant Type BINDING = intBitLShift(1, 13); // In binding.
133-
constant Type CONDITION = intBitLShift(1, 14); // In conditional expression.
134-
constant Type SUBSCRIPT = intBitLShift(1, 15); // In subscript.
135-
constant Type SUBEXPRESSION = intBitLShift(1, 16); // Part of a larger expression.
136-
constant Type CONNECT = intBitLShift(1, 17); // Part of connect argument.
137-
constant Type NOEVENT = intBitLShift(1, 18); // Part of noEvent argument.
138-
constant Type ASSERT = intBitLShift(1, 19); // Part of assert argument.
139-
constant Type CLOCKED = intBitLShift(1, 20); // Part of a clocked equation.
126+
constant Type CLOCKED = intBitLShift(1, 7); // Part of a clocked when equation.
127+
constant Type FOR = intBitLShift(1, 8); // In a for loop.
128+
constant Type IF = intBitLShift(1, 9); // In an if equation/statement.
129+
constant Type WHILE = intBitLShift(1, 10); // In a while loop.
130+
constant Type NONEXPANDABLE = intBitLShift(1, 11); // In non-parameter if/for.
131+
constant Type ITERATION_RANGE = intBitLShift(1, 12); // In range used for iteration.
132+
constant Type DIMENSION = intBitLShift(1, 13); // In dimension.
133+
constant Type BINDING = intBitLShift(1, 14); // In binding.
134+
constant Type CONDITION = intBitLShift(1, 15); // In conditional expression.
135+
constant Type SUBSCRIPT = intBitLShift(1, 16); // In subscript.
136+
constant Type SUBEXPRESSION = intBitLShift(1, 17); // Part of a larger expression.
137+
constant Type CONNECT = intBitLShift(1, 18); // Part of connect argument.
138+
constant Type NOEVENT = intBitLShift(1, 19); // Part of noEvent argument.
139+
constant Type ASSERT = intBitLShift(1, 20); // Part of assert argument.
140140

141141
// Combined flags:
142142
constant Type EQ_SUBEXPRESSION = intBitOr(EQUATION, SUBEXPRESSION);

0 commit comments

Comments
 (0)