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
Cloogle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Cloogle
Cloogle
Commits
82273358
Verified
Commit
82273358
authored
Dec 11, 2018
by
Camil Staps
🚀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates for change to {#Index}
parent
56b15eb7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
Cloogle/DB.dcl
Cloogle/DB.dcl
+1
-0
Cloogle/DB.icl
Cloogle/DB.icl
+5
-0
Cloogle/Search.icl
Cloogle/Search.icl
+5
-5
No files found.
Cloogle/DB.dcl
View file @
82273358
...
...
@@ -270,6 +270,7 @@ writeTypeTree :: !*CloogleDB !*File -> *(*CloogleDB, *File)
getIndex
::
!
Index
!*
CloogleDB
->
*(
Entry
CloogleEntry
Annotation
,
*
CloogleDB
)
getIndices
::
![
Index
]
!*
CloogleDB
->
*([
Entry
CloogleEntry
Annotation
],
*
CloogleDB
)
getIndices`
::
!{#
Index
}
!*
CloogleDB
->
*([
Entry
CloogleEntry
Annotation
],
*
CloogleDB
)
filterDB
::
(
CloogleEntry
->
Bool
)
!*
CloogleDB
->
*
CloogleDB
excludeCore
::
!*
CloogleDB
->
*
CloogleDB
...
...
Cloogle/DB.icl
View file @
82273358
...
...
@@ -347,6 +347,11 @@ getIndices idxs wrap=:{db}
#
(
es
,
db
)
=
'
Database
.
Native
'.
getIndices
idxs
db
=
(
es
,
{
wrap
&
db
=
db
})
getIndices`
::
!{#
Index
}
!*
CloogleDB
->
*([
Entry
CloogleEntry
Annotation
],
*
CloogleDB
)
getIndices`
idxs
wrap
=:{
db
}
#
(
es
,
db
)
=
'
Database
.
Native
'.
getIndices`
idxs
db
=
(
es
,
{
wrap
&
db
=
db
})
filterDB
::
(
CloogleEntry
->
Bool
)
!*
CloogleDB
->
*
CloogleDB
filterDB
f
db
=
{
db
&
db
=
'
Database
.
Native
'.
search
Intersect
(\
v
->
(
f
v
,
[]))
db
.
db
}
...
...
Cloogle/Search.icl
View file @
82273358
...
...
@@ -193,7 +193,7 @@ makeResult orgsearchtype allsyns usedsyns (entry, annots) db
// Derivations
#
(
derivs
,
db
)
=
case
fe
.
fe_derivations
of
Nothing
->
(
Nothing
,
db
)
Just
ds
->
appFst
Just
$
getIndices
ds
db
Just
ds
->
appFst
Just
$
getIndices
`
ds
db
=
(
Just
$
FunctionResult
(
{
general
&
distance
=
distance
entry
annots
...
...
@@ -234,8 +234,8 @@ makeResult orgsearchtype allsyns usedsyns (entry, annots) db
|
entry
=:
(
TypeDefEntry
_)
#
(
TypeDefEntry
tde
)
=
entry
#
(
insts
,
db
)
=
getIndices
tde
.
tde_instances
db
#
(
derivs
,
db
)
=
getIndices
tde
.
tde_derivations
db
#
(
insts
,
db
)
=
getIndices
`
tde
.
tde_instances
db
#
(
derivs
,
db
)
=
getIndices
`
tde
.
tde_derivations
db
=
(
Just
$
TypeResult
(
{
general
&
documentation
=
docDescription
=<<
tde
.
tde_doc
...
...
@@ -262,8 +262,8 @@ makeResult orgsearchtype allsyns usedsyns (entry, annots) db
|
entry
=:
(
ClassEntry
_)
#
(
ClassEntry
ce
)
=
entry
#
(
ies
,
db
)
=
getIndices
ce
.
ce_instances
db
#
(
mems
,
db
)
=
getIndices
ce
.
ce_members
db
#
(
ies
,
db
)
=
getIndices
`
ce
.
ce_instances
db
#
(
mems
,
db
)
=
getIndices
`
ce
.
ce_members
db
=
(
Just
$
ClassResult
(
{
general
&
documentation
=
docDescription
=<<
ce
.
ce_documentation
...
...
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