logic: show real code of signatures in tooltips

* added new location type
* refactored old recording code
* record signature locations for cxx functions and java methods
* added signature locations to sample project indexer tests
* ignore signature locations in ui
* signatures in tooltip with qualified name of the function/method
* added test for finding signature location of constructor with initializer list
This commit is contained in:
mlangkabel
2018-07-20 14:00:08 +02:00
parent 605d07688b
commit c6f9d8f92c
211 changed files with 19809 additions and 19293 deletions
@@ -68,6 +68,19 @@ public class JavaIndexerAstVisitorClient extends AstVisitorClient
access.getValue(), definitionKind.getValue());
}
@Override
public void recordSymbolWithLocationAndScopeAndSignature(
NameHierarchy symbolName, SymbolKind symbolKind, Range range,
Range scopeRange, Range signatureRange, AccessKind access, DefinitionKind definitionKind)
{
JavaIndexer.recordSymbolWithLocationAndScopeAndSignature(
m_address, symbolName.serialize(), symbolKind.getValue(),
range.begin.line, range.begin.column, range.end.line, range.end.column,
scopeRange.begin.line, scopeRange.begin.column, scopeRange.end.line, scopeRange.end.column,
signatureRange.begin.line, signatureRange.begin.column, signatureRange.end.line, signatureRange.end.column,
access.getValue(), definitionKind.getValue());
}
@Override
public void recordReference(
ReferenceKind referenceKind, NameHierarchy referencedName,