-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return decls in cases where there is no definition representative
Summary: For e.g. thrift service definitions, there's only a declaration token. These are still really useful to search for We've been filtering them out, but it was a bit too strict. Return the decl entity in the case the definition isn't there. An idea discussed with Michael Park to improve perf would be to select a representiative of the decl family (in the index) as the search result. We can't do that sort of selection yet. Reviewed By: phlalx Differential Revision: D48143928 fbshipit-source-id: 82325b676e1b63509a26c77ef2987ccc1e01b286
- Loading branch information
1 parent
5c0a5ec
commit 628c42c
Showing
250 changed files
with
34,074 additions
and
2,231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 74 additions & 2 deletions
76
glean/glass/test/regression/tests/cpp/searchSymbol_enum.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,79 @@ | ||
[ | ||
"@generated", | ||
{ | ||
"symbolDetails": [], | ||
"symbols": [] | ||
"symbolDetails": [ | ||
{ | ||
"comments": [], | ||
"contains_relation": { | ||
"firstChild": "nondeterministic", | ||
"firstParent": "nondeterministic", | ||
"hasMoreChildren": false, | ||
"hasMoreParents": false | ||
}, | ||
"extends_relation": { | ||
"firstChild": "nondeterministic", | ||
"firstParent": "nondeterministic", | ||
"hasMoreChildren": false, | ||
"hasMoreParents": false | ||
}, | ||
"kind": 15, | ||
"language": 1, | ||
"location": { | ||
"filepath": "test.cpp", | ||
"range": { | ||
"columnBegin": 3, | ||
"columnEnd": 11, | ||
"lineBegin": 56, | ||
"lineEnd": 56 | ||
}, | ||
"repository": "test" | ||
}, | ||
"modifiers": [], | ||
"name": { | ||
"container": "h", | ||
"localName": "s" | ||
}, | ||
"pretty_comments": [], | ||
"repo_hash": "testhash", | ||
"sym": "test/cpp//h/s/.decl", | ||
"sym_location": { | ||
"filepath": "test.cpp", | ||
"range": { | ||
"columnBegin": 3, | ||
"columnEnd": 11, | ||
"lineBegin": 56, | ||
"lineEnd": 56 | ||
}, | ||
"repository": "test" | ||
}, | ||
"sym_other_locations": [], | ||
"type_xrefs": [] | ||
} | ||
], | ||
"symbols": [ | ||
{ | ||
"kind": 15, | ||
"language": 1, | ||
"location": { | ||
"filepath": "test.cpp", | ||
"range": { | ||
"columnBegin": 3, | ||
"columnEnd": 11, | ||
"lineBegin": 56, | ||
"lineEnd": 56 | ||
}, | ||
"repository": "test" | ||
}, | ||
"name": "s", | ||
"qname": { | ||
"container": "h", | ||
"localName": "s" | ||
}, | ||
"score": { | ||
"exactness": 0 | ||
}, | ||
"symbol": "test/cpp//h/s/.decl" | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.