Ben Langmuir
50eeeb7430
[index] Add 'call' and 'isDynamic' roles
2016-04-29 19:04:25 -07:00
Ben Langmuir
1b1320b9f1
[index] Thread through SymbolRoleSet as a generalization of "bool isRef"
...
As a first step toward having more detailed "role" information, thread
through a SymbolRole bitset. For now it just contains the existing ref
vs. definition status.
2016-04-29 19:04:24 -07:00
Ben Langmuir
5523266715
[index] Remove unreachable materializeForSet case in indexer
...
We already had it marked unreachable in SourceKit, so lift that up into
the libIndex and remove the unnecessary enum case.
2016-04-28 16:51:03 -07:00
Ben Langmuir
e977d4bd54
[index] Remove import.sourcefile kind from indexing
...
We don't support importing source files in source code, and they only
showed up in the index under failure conditions.
2016-04-28 16:51:01 -07:00
Ben Langmuir
8f17b13f61
[index] Cache USR and name for decls
...
We were calculating these for every decl-occurrence, but we really only
need them once per decl.
2016-04-25 13:29:27 -07:00
Ben Langmuir
8dad7f7803
[index] Split the indexModule entry point for indexSourceFile NFC
...
Having a single interface for source files and modules and having to
pass in a buffer id was a crappy API. This splits the interface to take
either a Module or a SourceFile and handles the buffer id stuff
internally.
2016-04-15 16:27:30 -07:00
Ben Langmuir
ad269b0e1f
[index] Move core indexing code out of SourceKit
...
Leaving only the SourceKit-specific code (e.g. UID generation) behind in
SourceKit.
rdar://problem/22348041
2016-04-14 13:13:54 -07:00