Skip to content

Commit bbc2a18

Browse files
jjuliamolinfacebook-github-bot
authored andcommitted
change symbol ids of derived preds
Summary: To make glass symbol search more consistent, each symbol_id will end in the qname Reviewed By: pepeiborra Differential Revision: D75953586 fbshipit-source-id: 2bbdf3d6bd59389e0daf0d6cc141b60b4ba1919b
1 parent 898ce20 commit bbc2a18

File tree

1 file changed

+1
-3
lines changed
  • glean/glass/Glean/Glass/SymbolId

1 file changed

+1
-3
lines changed

glean/glass/Glean/Glass/SymbolId/Angle.hs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ instance Symbol A.SchemaDecl_key where
5151
toSymbol A.SchemaDecl_key{..} = toSymbol schemaDecl_key_name
5252

5353
instance Symbol A.DerivingDecl_key where
54-
toSymbol (A.DerivingDecl_key n d) = do
55-
n' <- toSymbol n
56-
return $ n' ++ [Text.pack $ "_" ++ show d]
54+
toSymbol (A.DerivingDecl_key n _) = ("derived" :) <$> toSymbol n
5755

5856
instance Symbol A.Name where
5957
toSymbol k = do

0 commit comments

Comments
 (0)