Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ protected AdaAnalyzer(FileAnalyzerFactory factory) {
* Gets a version number to be used to tag processed documents so that
* re-analysis can be re-done later if a stored version number is different
* from the current implementation.
* @return 20171218_00
* @return 20180208_00
*/
@Override
protected int getSpecializedVersionNo() {
return 20171218_00; // Edit comment above too!
return 20180208_00; // Edit comment above too!
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ protected CAnalyzer(FileAnalyzerFactory factory) {
* Gets a version number to be used to tag processed documents so that
* re-analysis can be re-done later if a stored version number is different
* from the current implementation.
* @return 20171218_00
* @return 20180208_00
*/
@Override
protected int getSpecializedVersionNo() {
return 20171218_00; // Edit comment above too!
return 20180208_00; // Edit comment above too!
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ protected CxxAnalyzer(FileAnalyzerFactory factory) {
* Gets a version number to be used to tag processed documents so that
* re-analysis can be re-done later if a stored version number is different
* from the current implementation.
* @return 20171218_00
* @return 20180208_00
*/
@Override
protected int getSpecializedVersionNo() {
return 20171218_00; // Edit comment above too!
return 20180208_00; // Edit comment above too!
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ protected ClojureAnalyzer(FileAnalyzerFactory factory) {
* Gets a version number to be used to tag processed documents so that
* re-analysis can be re-done later if a stored version number is different
* from the current implementation.
* @return 20171218_00
* @return 20180208_00
*/
@Override
protected int getSpecializedVersionNo() {
return 20171218_00; // Edit comment above too!
return 20180208_00; // Edit comment above too!
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ protected CSharpAnalyzer(FileAnalyzerFactory factory) {
* Gets a version number to be used to tag processed documents so that
* re-analysis can be re-done later if a stored version number is different
* from the current implementation.
* @return 20171218_00
* @return 20180208_00
*/
@Override
protected int getSpecializedVersionNo() {
return 20171218_00; // Edit comment above too!
return 20180208_00; // Edit comment above too!
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ protected EiffelAnalyzer(FileAnalyzerFactory factory) {
* Gets a version number to be used to tag processed documents so that
* re-analysis can be re-done later if a stored version number is different
* from the current implementation.
* @return 20171218_00
* @return 20180208_00
*/
@Override
protected int getSpecializedVersionNo() {
return 20171218_00; // Edit comment above too!
return 20180208_00; // Edit comment above too!
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ protected ErlangAnalyzer(FileAnalyzerFactory factory) {
* Gets a version number to be used to tag processed documents so that
* re-analysis can be re-done later if a stored version number is different
* from the current implementation.
* @return 20171218_00
* @return 20180208_00
*/
@Override
protected int getSpecializedVersionNo() {
return 20171218_00; // Edit comment above too!
return 20180208_00; // Edit comment above too!
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,18 @@ public class FortranAnalyzer extends AbstractSourceCodeAnalyzer {
super(factory, new JFlexTokenizer(new FortranSymbolTokenizer(
FileAnalyzer.dummyReader)));
}


/**
* Gets a version number to be used to tag processed documents so that
* re-analysis can be re-done later if a stored version number is different
* from the current implementation.
* @return 20180208_00
*/
@Override
protected int getSpecializedVersionNo() {
return 20180208_00; // Edit comment above too!
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

/**
* Creates a wrapped {@link FortranXref} instance.
* @param reader the data to produce xref for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ protected GolangAnalyzer(FileAnalyzerFactory factory) {
* Gets a version number to be used to tag processed documents so that
* re-analysis can be re-done later if a stored version number is different
* from the current implementation.
* @return 20171218_00
* @return 20180208_00
*/
@Override
protected int getSpecializedVersionNo() {
return 20171218_00; // Edit comment above too!
return 20180208_00; // Edit comment above too!
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ protected HaskellAnalyzer(FileAnalyzerFactory factory) {
* Gets a version number to be used to tag processed documents so that
* re-analysis can be re-done later if a stored version number is different
* from the current implementation.
* @return 20171218_00
* @return 20180208_00
*/
@Override
protected int getSpecializedVersionNo() {
return 20171218_00; // Edit comment above too!
return 20180208_00; // Edit comment above too!
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ protected JavaAnalyzer(FileAnalyzerFactory factory) {
* Gets a version number to be used to tag processed documents so that
* re-analysis can be re-done later if a stored version number is different
* from the current implementation.
* @return 20171218_00
* @return 20180208_00
*/
@Override
protected int getSpecializedVersionNo() {
return 20171218_00; // Edit comment above too!
return 20180208_00; // Edit comment above too!
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ protected JavaScriptAnalyzer(FileAnalyzerFactory factory) {
* Gets a version number to be used to tag processed documents so that
* re-analysis can be re-done later if a stored version number is different
* from the current implementation.
* @return 20180118_00
* @return 20180208_00
*/
@Override
protected int getSpecializedVersionNo() {
return 20180118_00; // Edit comment above too!
return 20180208_00; // Edit comment above too!
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ protected JsonAnalyzer(FileAnalyzerFactory factory) {
* Gets a version number to be used to tag processed documents so that
* re-analysis can be re-done later if a stored version number is different
* from the current implementation.
* @return 20171218_00
* @return 20180208_00
*/
@Override
protected int getSpecializedVersionNo() {
return 20171218_00; // Edit comment above too!
return 20180208_00; // Edit comment above too!
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ protected KotlinAnalyzer(FileAnalyzerFactory factory) {
* Gets a version number to be used to tag processed documents so that
* re-analysis can be re-done later if a stored version number is different
* from the current implementation.
* @return 20171218_00
* @return 20180208_00
*/
@Override
protected int getSpecializedVersionNo() {
return 20171218_00; // Edit comment above too!
return 20180208_00; // Edit comment above too!
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ protected LispAnalyzer(FileAnalyzerFactory factory) {
* Gets a version number to be used to tag processed documents so that
* re-analysis can be re-done later if a stored version number is different
* from the current implementation.
* @return 20171218_00
* @return 20180208_00
*/
@Override
protected int getSpecializedVersionNo() {
return 20171218_00; // Edit comment above too!
return 20180208_00; // Edit comment above too!
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ protected LuaAnalyzer(FileAnalyzerFactory factory) {
* Gets a version number to be used to tag processed documents so that
* re-analysis can be re-done later if a stored version number is different
* from the current implementation.
* @return 20171218_00
* @return 20180208_00
*/
@Override
protected int getSpecializedVersionNo() {
return 20171218_00; // Edit comment above too!
return 20180208_00; // Edit comment above too!
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ protected PascalAnalyzer(FileAnalyzerFactory factory) {
* Gets a version number to be used to tag processed documents so that
* re-analysis can be re-done later if a stored version number is different
* from the current implementation.
* @return 20180125_00
* @return 20180208_00
*/
@Override
protected int getSpecializedVersionNo() {
return 20180125_00; // Edit comment above too!
return 20180208_00; // Edit comment above too!
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ protected PerlAnalyzer(FileAnalyzerFactory factory) {
* Gets a version number to be used to tag processed documents so that
* re-analysis can be re-done later if a stored version number is different
* from the current implementation.
* @return 20171218_00
* @return 20180208_00
*/
@Override
protected int getSpecializedVersionNo() {
return 20171218_00; // Edit comment above too!
return 20180208_00; // Edit comment above too!
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ protected PhpAnalyzer(FileAnalyzerFactory factory) {
* Gets a version number to be used to tag processed documents so that
* re-analysis can be re-done later if a stored version number is different
* from the current implementation.
* @return 20171218_00
* @return 20180208_00
*/
@Override
protected int getSpecializedVersionNo() {
return 20171218_00; // Edit comment above too!
return 20180208_00; // Edit comment above too!
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ protected PlainAnalyzer(FileAnalyzerFactory factory,
* Gets a version number to be used to tag processed documents so that
* re-analysis can be re-done later if a stored version number is different
* from the current implementation.
* @return 20180112_00
* @return 20180208_00
*/
@Override
protected int getSpecializedVersionNo() {
return 20180112_00; // Edit comment above too!
return 20180208_00; // Edit comment above too!
}

/**
Expand Down Expand Up @@ -108,15 +108,18 @@ public void analyze(Document doc, StreamSource src, Writer xrefOut)
defs = ctags.doCtags(fullpath);
if (defs != null && defs.numberOfSymbols() > 0) {
tryAddingDefs(doc, defs, src, fullpath);
//this is to explicitly use appropriate analyzers tokenstream to workaround #1376 symbols search works like full text search
OGKTextField ref = new OGKTextField(QueryBuilder.REFS,
this.symbolTokenizer);
this.symbolTokenizer.setReader(getReader(src.getStream()));
doc.add(ref);
byte[] tags = defs.serialize();
doc.add(new StoredField(QueryBuilder.TAGS, tags));
}
}
/*
* This is to explicitly use appropriate analyzer's token stream to
* work around #1376: symbols search works like full text search.
*/
OGKTextField ref = new OGKTextField(QueryBuilder.REFS,
this.symbolTokenizer);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the new line break is not necessary here I think but that's not important

this.symbolTokenizer.setReader(getReader(src.getStream()));
doc.add(ref);

if (scopesEnabled && xrefOut == null) {
/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ protected PowershellAnalyzer(FileAnalyzerFactory factory) {
* Gets a version number to be used to tag processed documents so that
* re-analysis can be re-done later if a stored version number is different
* from the current implementation.
* @return 20171218_00
* @return 20180208_00
*/
@Override
protected int getSpecializedVersionNo() {
return 20171218_00; // Edit comment above too!
return 20180208_00; // Edit comment above too!
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ protected PythonAnalyzer(FileAnalyzerFactory factory) {
* Gets a version number to be used to tag processed documents so that
* re-analysis can be re-done later if a stored version number is different
* from the current implementation.
* @return 20171218_00
* @return 20180208_00
*/
@Override
protected int getSpecializedVersionNo() {
return 20171218_00; // Edit comment above too!
return 20180208_00; // Edit comment above too!
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ protected RubyAnalyzer(FileAnalyzerFactory factory) {
* Gets a version number to be used to tag processed documents so that
* re-analysis can be re-done later if a stored version number is different
* from the current implementation.
* @return 20171218_00
* @return 20180208_00
*/
@Override
protected int getSpecializedVersionNo() {
return 20171218_00; // Edit comment above too!
return 20180208_00; // Edit comment above too!
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ protected RustAnalyzer(FileAnalyzerFactory factory) {
* Gets a version number to be used to tag processed documents so that
* re-analysis can be re-done later if a stored version number is different
* from the current implementation.
* @return 20171218_00
* @return 20180208_00
*/
@Override
protected int getSpecializedVersionNo() {
return 20171218_00; // Edit comment above too!
return 20180208_00; // Edit comment above too!
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ protected ScalaAnalyzer(FileAnalyzerFactory factory) {
* Gets a version number to be used to tag processed documents so that
* re-analysis can be re-done later if a stored version number is different
* from the current implementation.
* @return 20171218_00
* @return 20180208_00
*/
@Override
protected int getSpecializedVersionNo() {
return 20171218_00; // Edit comment above too!
return 20180208_00; // Edit comment above too!
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ protected ShAnalyzer(FileAnalyzerFactory factory) {
* Gets a version number to be used to tag processed documents so that
* re-analysis can be re-done later if a stored version number is different
* from the current implementation.
* @return 20171218_00
* @return 20180208_00
*/
@Override
protected int getSpecializedVersionNo() {
return 20171218_00; // Edit comment above too!
return 20180208_00; // Edit comment above too!
}

/**
Expand Down
Loading