Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jsexplain
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Verified Software
jsexplain
Commits
9fa67cf9
Commit
9fa67cf9
authored
9 years ago
by
Alan Schmitt
Browse files
Options
Downloads
Patches
Plain Diff
tiny case event change
parent
955b5e6f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
generator/js_of_ast.ml
+2
-3
2 additions, 3 deletions
generator/js_of_ast.ml
with
2 additions
and
3 deletions
generator/js_of_ast.ml
+
2
−
3
View file @
9fa67cf9
...
...
@@ -256,7 +256,7 @@ let generate_logged_case spat binders ctx newctx sbody need_break =
let
token
=
token_fresh
()
in
let
sintro
=
match
!
current_mode
with
|
Mode_line_token
->
""
|
Mode_line_token
->
token
|
Mode_logged
->
let
ids
=
List
.
map
fst
binders
in
let
mk_binding
x
=
...
...
@@ -274,8 +274,7 @@ let generate_logged_case spat binders ctx newctx sbody need_break =
|
Mode_unlogged
->
""
in
let
sbinders
=
ppf_match_binders
binders
in
(
Printf
.
sprintf
"@[<v 0>%s%s:@;<1 2>@[<v 0>%s%s%s%s@]@]"
(
match
!
current_mode
with
Mode_line_token
->
token
|
_
->
""
)
(
Printf
.
sprintf
"@[<v 0>%s:@;<1 2>@[<v 0>%s%s%s%s@]@]"
spat
sbinders
sintro
sbody
(
if
need_break
then
"@,break;"
else
""
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment