Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
pub
frama-c
Commits
1a185ff5
Commit
1a185ff5
authored
3 years ago
by
David Bühler
Browse files
Options
Downloads
Patches
Plain Diff
[ivette] Minor simplifications.
parent
c9d7561a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ivette/src/frama-c/kernel/ASTinfo.tsx
+1
-1
1 addition, 1 deletion
ivette/src/frama-c/kernel/ASTinfo.tsx
ivette/src/frama-c/richtext.tsx
+2
-4
2 additions, 4 deletions
ivette/src/frama-c/richtext.tsx
src/plugins/server/kernel_ast.mli
+3
-4
3 additions, 4 deletions
src/plugins/server/kernel_ast.mli
with
6 additions
and
9 deletions
ivette/src/frama-c/kernel/ASTinfo.tsx
+
1
−
1
View file @
1a185ff5
...
...
@@ -269,8 +269,8 @@ function openFilter(
filter
:
string
,
onChange
:
(
f
:
string
)
=>
void
,
):
void
{
const
fs
=
filter
.
split
(
'
:
'
);
const
menuItems
=
infos
.
map
((
info
)
=>
{
const
fs
=
filter
.
split
(
'
:
'
);
const
checked
=
!
fs
.
some
((
m
)
=>
m
===
info
.
id
);
const
onClick
=
():
void
=>
{
const
newFs
=
...
...
This diff is collapsed.
Click to expand it.
ivette/src/frama-c/richtext.tsx
+
2
−
4
View file @
1a185ff5
...
...
@@ -53,17 +53,15 @@ export function printTextWithTags(
options
?:
DomeBuffers
.
MarkerProps
,
):
void
{
if
(
Array
.
isArray
(
text
))
{
let
marker
=
false
;
const
tag
=
text
[
0
];
if
(
typeof
(
tag
)
===
'
string
'
)
{
const
marker
=
typeof
(
tag
)
===
'
string
'
;
if
(
marker
)
{
buffer
.
openTextMarker
({
id
:
tag
,
...
options
??
{}
});
marker
=
true
;
}
for
(
let
k
=
marker
?
1
:
0
;
k
<
text
.
length
;
k
++
)
{
printTextWithTags
(
buffer
,
text
[
k
],
options
);
}
if
(
marker
)
{
marker
=
false
;
buffer
.
closeTextMarker
();
}
}
else
if
(
typeof
text
===
'
string
'
)
{
...
...
This diff is collapsed.
Click to expand it.
src/plugins/server/kernel_ast.mli
+
3
−
4
View file @
1a185ff5
...
...
@@ -72,12 +72,11 @@ sig
Registers a marker information printer.
Identifier [id] shall be unique.
Label [label] shall be very short.
Description shall succintly describe the kind of information.
Description shall succin
c
tly describe the kind of information.
If the optional [enable] function is provided, the information printer is
only used when [enable ()] returns true.
The printer is allowed to raise [Not_found] exception,
which is interpreted as there is no information of this kind for
the localizable.
The printer is allowed to raise [Not_found] exception when there is no
information for the localizable.
*)
val
register
:
id
:
string
->
label
:
string
->
title
:
string
->
?
enable
:
(
unit
->
bool
)
->
...
...
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