Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clean-sapl
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
clean-and-itasks
clean-sapl
Commits
c8a770e1
Verified
Commit
c8a770e1
authored
Mar 29, 2019
by
Camil Staps
🚀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix incorrectly generated break statement outside switch
parent
940a006f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/Sapl/Target/JS/CodeGeneratorJS.icl
src/Sapl/Target/JS/CodeGeneratorJS.icl
+2
-2
No files found.
src/Sapl/Target/JS/CodeGeneratorJS.icl
View file @
c8a770e1
...
...
@@ -788,11 +788,11 @@ termCodeIf cond_expr true_expr false_expr s a
|
inline
cond_expr
&&
inline
true_expr
&&
inline
false_expr
&&
not
(
isJust
s
.
cs_intrfunc
&&
(
isTailRecursive
(
fromJust
s
.
cs_intrfunc
)
true_expr
||
isTailRecursive
(
fromJust
s
.
cs_intrfunc
)
false_expr
))
=
a
<++
"("
<++
forceTermCoder
cond_expr
{
s
&
cs_intrfunc
=
Nothing
}
<++
"?"
<++
forceTermCoder
true_expr
{
s
&
cs_incaseexpr
=
True
}
<++
":"
<++
forceTermCoder
false_expr
{
s
&
cs_incaseexpr
=
True
}
<++
")"
<++
forceTermCoder
true_expr
s
<++
":"
<++
forceTermCoder
false_expr
s
<++
")"
termCodeIf
cond_expr
texpr
fexpr
s
a
=
a
<++
"if("
<++
forceTermCoder
cond_expr
{
s
&
cs_intrfunc
=
Nothing
}
<++
"){"
<++
callWrapper
texpr
{
s
&
cs_incaseexpr
=
True
}
<++
"}else{"
<++
callWrapper
fexpr
{
s
&
cs_incaseexpr
=
True
}
<++
"}"
<++
callWrapper
texpr
s
<++
"}else{"
<++
callWrapper
fexpr
s
<++
"}"
generateJS
::
!
Flavour
!
Bool
!
String
!(
Maybe
ParserState
)
->
MaybeErrorString
(
StringAppender
,
ParserState
)
generateJS
f
tramp
saplsrc
mbPst
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment