Skip to content

Commit fb88126

Browse files
committed
local
1 parent 09c7783 commit fb88126

4 files changed

Lines changed: 25 additions & 1 deletion

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ gen-hs2
66
gen-cpp2
77
glean.cabal
88
glean/hs/Glean/RTS/Bytecode/Gen
9+
glean/schema/cpp
910
glean/schema/hs
1011
glean/schema/thrift
1112
glean/schema/v[0-9]*
13+
glean/lang/clang/schema.h
1214
glean/lang/java-lsif/tests/cases/xrefs/target
1315
hsthrift
1416
dump.lsif

cabal.project

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,15 @@ packages:
1111
hsthrift/http/thrift-http.cabal
1212
glean.cabal
1313
glean/lang/clang/glean-clang.cabal
14+
-- static-ls/static-ls.cabal
15+
tree-sitter-simple/*
16+
tasty-expect
1417

1518
optional-packages:
1619
hsthrift/folly-clib/folly-clib.cabal
1720

21+
import: https://www.stackage.org/lts-21.21/cabal.config
22+
1823
tests: True
1924

2025
-- necessary to use a haskeline <0.8 with GHCs that ship with base >= 4.14
@@ -32,3 +37,6 @@ package glean
3237

3338
package thrift-tests
3439
flags: -fbthrift
40+
41+
program-options
42+
ghc-options: -fwrite-ide-info

glean/glass/tools/Glean/Glass/Test/DemoClient.hs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,18 @@ runFindRefs sym = do
220220

221221
-- List unique definition symbols
222222
pprDefs :: [DefinitionSymbolX] -> [Text]
223-
pprDefs = map (unSymbolId . definitionSymbolX_sym)
223+
pprDefs = map showDef
224+
where
225+
showDef def =
226+
Text.unlines (unSymbolId (definitionSymbolX_sym def) : map (" " <>) attrs)
227+
where
228+
attrs =
229+
[ sig |
230+
KeyedAttribute {
231+
keyedAttribute_key = "symbolSignature",
232+
keyedAttribute_attribute = Attribute_aString sig } <-
233+
unAttributeList (definitionSymbolX_attributes def)
234+
]
224235

225236
pprLocationRange :: LocationRange -> Text
226237
pprLocationRange LocationRange{..} =

glean/lang/haskell/HieIndexer/Index.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ import Glean.Util.Range
9696
Haddock's Interface type has all the ASTs for the declarations
9797
in addition to the Hie.
9898
99+
- index imports
100+
- modules in the export list should be refs
101+
99102
- map Name to exportedness?
100103
101104
- exclude generated names in a cleaner way

0 commit comments

Comments
 (0)