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
cca981d3
Commit
cca981d3
authored
1 year ago
by
Loïc Correnson
Committed by
David Bühler
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
[ivette] print descr in ASTview
parent
e7af8e05
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
ivette/src/frama-c/kernel/ASTinfo.tsx
+3
-6
3 additions, 6 deletions
ivette/src/frama-c/kernel/ASTinfo.tsx
with
3 additions
and
6 deletions
ivette/src/frama-c/kernel/ASTinfo.tsx
+
3
−
6
View file @
cca981d3
...
@@ -27,7 +27,6 @@
...
@@ -27,7 +27,6 @@
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
*
as
Dome
from
'
dome
'
;
import
*
as
Dome
from
'
dome
'
;
import
{
classes
}
from
'
dome/misc/utils
'
;
import
{
classes
}
from
'
dome/misc/utils
'
;
import
*
as
Server
from
'
frama-c/server
'
;
import
*
as
States
from
'
frama-c/states
'
;
import
*
as
States
from
'
frama-c/states
'
;
import
*
as
DATA
from
'
frama-c/kernel/api/data
'
;
import
*
as
DATA
from
'
frama-c/kernel/api/data
'
;
import
*
as
AST
from
'
frama-c/kernel/api/ast
'
;
import
*
as
AST
from
'
frama-c/kernel/api/ast
'
;
...
@@ -143,9 +142,7 @@ function MarkInfos(props: InfoSectionProps): JSX.Element {
...
@@ -143,9 +142,7 @@ function MarkInfos(props: InfoSectionProps): JSX.Element {
const
foreign
=
!!
scope
&&
fct
!==
scope
;
const
foreign
=
!!
scope
&&
fct
!==
scope
;
const
[
unfold
,
setUnfold
]
=
React
.
useState
(
true
);
const
[
unfold
,
setUnfold
]
=
React
.
useState
(
true
);
const
[
expand
,
setExpand
]
=
React
.
useState
(
false
);
const
[
expand
,
setExpand
]
=
React
.
useState
(
false
);
const
req
=
React
.
useMemo
(()
=>
const
markerFields
=
States
.
useRequest
(
AST
.
getInformation
,
marker
)
??
[];
Server
.
send
(
AST
.
getInformation
,
marker
),
[
marker
]);
const
{
result
:
markerFields
=
[]
}
=
Dome
.
usePromise
(
req
);
const
isScrolled
=
marker
===
scrolled
;
const
isScrolled
=
marker
===
scrolled
;
const
isHovered
=
marker
===
hovered
;
const
isHovered
=
marker
===
hovered
;
const
isSelected
=
marker
===
selected
;
const
isSelected
=
marker
===
selected
;
...
@@ -153,7 +150,7 @@ function MarkInfos(props: InfoSectionProps): JSX.Element {
...
@@ -153,7 +150,7 @@ function MarkInfos(props: InfoSectionProps): JSX.Element {
isSelected
&&
'
selected
'
,
isSelected
&&
'
selected
'
,
isHovered
&&
'
hovered
'
,
isHovered
&&
'
hovered
'
,
);
);
const
{
labelKind
,
titleKind
,
name
,
descr
}
=
attrs
;
const
{
labelKind
,
titleKind
,
descr
}
=
attrs
;
const
filtered
=
markerFields
.
filter
((
fd
)
=>
!
excluded
.
includes
(
fd
.
id
));
const
filtered
=
markerFields
.
filter
((
fd
)
=>
!
excluded
.
includes
(
fd
.
id
));
const
hasMore
=
filtered
.
length
<
markerFields
.
length
;
const
hasMore
=
filtered
.
length
<
markerFields
.
length
;
const
displayed
=
expand
?
markerFields
:
filtered
;
const
displayed
=
expand
?
markerFields
:
filtered
;
...
@@ -208,7 +205,7 @@ function MarkInfos(props: InfoSectionProps): JSX.Element {
...
@@ -208,7 +205,7 @@ function MarkInfos(props: InfoSectionProps): JSX.Element {
<
Code
key
=
"NAME"
className
=
"astinfo-markercode"
>
<
Code
key
=
"NAME"
className
=
"astinfo-markercode"
>
<
span
className
=
"astinfo-markerkind"
title
=
{
titleKind
}
>
<
span
className
=
"astinfo-markerkind"
title
=
{
titleKind
}
>
{
labelKind
}
{
labelKind
}
</
span
>
{
name
}
</
span
>
{
descr
}
</
Code
>
</
Code
>
<
Code
key
=
"SCOPE"
className
=
""
display
=
{
foreign
}
>
<
Code
key
=
"SCOPE"
className
=
""
display
=
{
foreign
}
>
[in:
{
scope
}
]
[in:
{
scope
}
]
...
...
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