use of org.opensolaris.opengrok.analysis.CtagsReader in project OpenGrok by OpenGrok.
the class GolangXrefTest method getTagsDefinitions.
private Definitions getTagsDefinitions() throws IOException {
InputStream res = getClass().getClassLoader().getResourceAsStream("org/opensolaris/opengrok/analysis/golang/sampletags");
assertNotNull("though sampletags should stream,", res);
BufferedReader in = new BufferedReader(new InputStreamReader(res, "UTF-8"));
CtagsReader rdr = new CtagsReader();
String line;
while ((line = in.readLine()) != null) {
rdr.readLine(line);
}
return rdr.getDefinitions();
}
use of org.opensolaris.opengrok.analysis.CtagsReader in project OpenGrok by OpenGrok.
the class JsonXrefTest method getTagsDefinitions.
private Definitions getTagsDefinitions() throws IOException {
InputStream res = getClass().getClassLoader().getResourceAsStream("org/opensolaris/opengrok/analysis/json/sampletags");
assertNotNull("though sampletags should stream,", res);
BufferedReader in = new BufferedReader(new InputStreamReader(res, "UTF-8"));
CtagsReader rdr = new CtagsReader();
String line;
while ((line = in.readLine()) != null) {
rdr.readLine(line);
}
return rdr.getDefinitions();
}
use of org.opensolaris.opengrok.analysis.CtagsReader in project OpenGrok by OpenGrok.
the class KotlinXrefTest method getTagsDefinitions.
private Definitions getTagsDefinitions() throws IOException {
InputStream res = getClass().getClassLoader().getResourceAsStream("org/opensolaris/opengrok/analysis/kotlin/sampletags");
assertNotNull("though sampletags should stream,", res);
BufferedReader in = new BufferedReader(new InputStreamReader(res, "UTF-8"));
CtagsReader rdr = new CtagsReader();
String line;
while ((line = in.readLine()) != null) {
rdr.readLine(line);
}
return rdr.getDefinitions();
}
use of org.opensolaris.opengrok.analysis.CtagsReader in project OpenGrok by OpenGrok.
the class PoshXrefTest method getTagsDefinitions.
private Definitions getTagsDefinitions() throws IOException {
InputStream res = getClass().getClassLoader().getResourceAsStream("org/opensolaris/opengrok/analysis/powershell/sampletags");
assertNotNull("though sampletags should stream,", res);
BufferedReader in = new BufferedReader(new InputStreamReader(res, "UTF-8"));
CtagsReader rdr = new CtagsReader();
String line;
while ((line = in.readLine()) != null) {
rdr.readLine(line);
}
return rdr.getDefinitions();
}
use of org.opensolaris.opengrok.analysis.CtagsReader in project OpenGrok by OpenGrok.
the class RubyXrefTest method getTagsDefinitions.
private Definitions getTagsDefinitions() throws IOException {
InputStream res = getClass().getClassLoader().getResourceAsStream("org/opensolaris/opengrok/analysis/ruby/sampletags");
assertNotNull("though sampletags should stream,", res);
BufferedReader in = new BufferedReader(new InputStreamReader(res, "UTF-8"));
CtagsReader rdr = new CtagsReader();
String line;
while ((line = in.readLine()) != null) {
rdr.readLine(line);
}
return rdr.getDefinitions();
}
Aggregations