File tree Expand file tree Collapse file tree
glass/tools/Glean/Glass/Test Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66gen-cpp2
77glean.cabal
88glean /hs /Glean /RTS /Bytecode /Gen
9+ glean /schema /cpp
910glean /schema /hs
1011glean /schema /thrift
1112glean /schema /v [0-9 ]*
13+ glean /lang /clang /schema.h
1214glean /lang /java-lsif /tests /cases /xrefs /target
1315hsthrift
1416dump.lsif
Original file line number Diff line number Diff 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
1518optional-packages :
1619 hsthrift/folly-clib/folly-clib.cabal
1720
21+ import : https://www.stackage.org/lts-21.21/cabal.config
22+
1823tests : 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
3338package thrift-tests
3439 flags : -fbthrift
40+
41+ program-options
42+ ghc-options : -fwrite-ide-info
Original file line number Diff line number Diff line change @@ -220,7 +220,18 @@ runFindRefs sym = do
220220
221221-- List unique definition symbols
222222pprDefs :: [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
225236pprLocationRange :: LocationRange -> Text
226237pprLocationRange LocationRange {.. } =
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments